Jump to content

Archived

This topic is now archived and is closed to further replies.

Cloud9247

Drop Down Redirection

Recommended Posts

Can someone help me, I need to make a drop down redirection menu with the <select> and <option> tags, please help.


Thanks

Share this post


Link to post
Share on other sites
the javascript (place in the head section of your html)
replace the first &lt; with < - it thinks I'm trying to post code!!!!!
[code]
&lt;script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
[/code]

the html...
[code]
<form name="form1">
<select name="redirector" onChange="MM_jumpMenu('parent',this,0)">
<option value=""></option>
<option value="http://www.here.com">link1</option>
<option value="http://www.there.com">link2</option>
</select>
</form>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.