Discussing Html . Code , Software , other
Moderators: macek, egami, gesf
by beatledean » Thu Jun 16, 2005 12:26 am
Does anyone have a working drop down menu code? Let me explain what I am looking for.
I want it to be a single drop down menu that automatically goes to the page when selected.
I want it to say something so that people know it is a drop down menu.
Ex. The drop down menu would say "Pick a list of cars". Then you click on it 5 names of cars drop down and when you put your mouse to it, it would go to that page.
I am looking for the exact code so that I can just put my own info in. Any code or a link to a page that clearly has a great example would be great.
I can try to swipe this code from other site that already do this but I am really concerned with having the proper formated code.
Thanks
Dean
-
beatledean
- New php-forum User

-
- Posts: 4
- Joined: Thu Jun 16, 2005 12:21 am
- Location: CA
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>
-
Oleg Butuzov
- Last Samuray

-
- Posts: 831
- Joined: Sun Jun 02, 2002 3:09 am
by beatledean » Fri Jun 17, 2005 9:52 am
Thank you very much for your help.
Dean
-
beatledean
- New php-forum User

-
- Posts: 4
- Joined: Thu Jun 16, 2005 12:21 am
- Location: CA
Return to HTML Basics
Who is online
Users browsing this forum: No registered users and 1 guest