Sends the user to a specific URL based on the combined selections from two different pulldown menus. If the user only selects from one menu, they are still taken to that menu's corresponding page. Works great for sites navigation based on two seperate characteristics.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin site ="http://www.yaldex.com";// Do not include the final "/" function
combineMenus(frm,
menu1,
menu2){ with(frm){ str =
menu1.options[menu1.selectedIndex].value; str +=
menu2.options[menu2.selectedIndex].value; url =
site +"/"+
str +".html"; window.location.href=
url; }
} // End --> </script> <center> <formname=menufrm>
<selectname=menu1>
<optionvalue="">Make</option>
<optionvalue="Ford">Ford</option>
<optionvalue="Chevy">Chevy</option>
<optionvalue="Toyota">Toyota</option>
</select>