FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

help on a drop down menu!! Please Read!!

 


mistuh griddlez
I need help!! how would i make a drop down (HTML) menu go over Iframes or other frames? Please I need help soon!!
Diebels
mistuh griddlez wrote:
I need help!! how would i make a drop down (HTML) menu go over Iframes or other frames? Please I need help soon!!

Hi, it+s quite simple...

here is the code to put in the <body> </body> section of your site:


<SCRIPT LANGUAGE="JavaScript">
<!--

function JumpTo(form)
{
i = form.elements[0].selectedIndex;
window.parent.frames['self'].location = form.elements[0].options[i].value;
}
//-->
</SCRIPT><FORM METHOD=POST ACTION="#" onSubmit="return false">
<SELECT>
<OPTION VALUE="link1.htm">Item1
<OPTION VALUE="link2.htm">Item2
<OPTION VALUE="link3.htm">Item3

</SELECT>
<INPUT TYPE=Submit NAME="Submit" VALUE="Go to" onClick="JumpTo(this.form)">
</FORM>

have fun with it...
mistuh griddlez
Thanks but one more question how would i get those links to go to the bottom frame named "bottom"?
uslhoops
Is this Drop down with Iframe looks like this one http://nllballers.com/files/ when you select from the drop down box it will show the Drop down buttons everytime
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.