Jump to content


Photo

Drop Down Redirection


  • Please log in to reply
1 reply to this topic

#1 Cloud9247

Cloud9247
  • Members
  • PipPip
  • Member
  • 20 posts
  • LocationMy Computer

Posted 22 August 2006 - 12:40 AM

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


Thanks

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 23 August 2006 - 11:22 PM

the javascript (place in the head section of your html)
replace the first &lt; with < - it thinks I'm trying to post 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>

the html...
<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>

follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users