Cloud9247 Posted August 22, 2006 Share Posted August 22, 2006 Can someone help me, I need to make a drop down redirection menu with the <select> and <option> tags, please help. Thanks Link to comment https://forums.phpfreaks.com/topic/18255-drop-down-redirection/ Share on other sites More sharing options...
ToonMariner Posted August 23, 2006 Share Posted August 23, 2006 the javascript (place in the head section of your html)replace the first < with < - it thinks I'm trying to post code!!!!![code]<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] Link to comment https://forums.phpfreaks.com/topic/18255-drop-down-redirection/#findComment-79618 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.