...

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



crisB
12-05-2006, 04: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>
</form>

And the start of the JavaScript is:

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

ImperialSpider
12-06-2006, 04:24 AM
Try this website:

http://www.javascriptkit.com/script/script2/triplecombo.shtml



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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum