Drop down menu

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Thu Jun 16, 2005 8:15 am

Title Quick jump


MacroMedia JS code

Code: Select all

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>


html

Code: Select all

   <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
         <option value="some.html">LA LA</option>
         <option value="fafa.html">FA FA</option>
   </select>

Post Reply