Drop down menu

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

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

Post by Oleg Butuzov » 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

Who is online

Users browsing this forum: No registered users and 1 guest