View Full Version : JavaScript Search Engine - Drop Down Menu???

Dec 5th, 2006, 05:03 PM
I was wondering if anyone could point me in the right direction,

I am trying to use a JavaScript search engine for my website as this is most convenient for me, however all the scripts that I have come across only have the standard search box, I would like to add several drop down selection menus to the search also. I can easily add the HTML into where I want them but I am struggling to actual incorporate them into the search.

Would anyone be able to help me or point me in the right direction? Below is the original search box that the script was written for:

<form method=get action="javascript:void(0)" onsubmit="search(this); return false;">
<tr><td><input type=text name=srchval value="">
<input type=submit value="Search"></td></tr>

And the start of the JavaScript is:

function search(frm) {
win = window.open("","","scrollbars");
txt = frm.srchval.value.split(" ");
txt = frm.drop1.value.split("who");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {

Dec 6th, 2006, 05:24 AM
Try this website:


I think this is what you are looking for, but if not, it should at least give you some options or ideas to get what you need.

Hope this helps

Imperial Spider