100 Web Space http://forum.100webspace.com/ |
|
Drop down menu http://forum.100webspace.com/viewtopic.php?f=4&t=1770 |
Page 1 of 1 |
Author: | zach [ Tue Jun 07, 2005 4:18 am ] |
Post subject: | Drop down menu |
You see I have a drop down menu in the left frame of my site and I was wondering how I could have it so instead of loading in that frame. I would like it to load the whole page completely I already tried TARGET="_top"> It didnt work |
Author: | FzM [ Tue Jun 07, 2005 6:20 am ] |
Post subject: | |
In your main webpage, the one where you declare your framesets, make sure to name each seperate frame. And then set the link's target to the name of the frame you wish the link to load in. Example index.html: Code: <frameset cols="26%,*"> <frame src="left.html" name="leftFrame"> <frame src="main.html" name="rightFrame" noresize> </frameset> Example left.html: Code: <a href="whatever.html" target="rightFrame">
|
Author: | rm249 [ Tue Jun 07, 2005 11:19 am ] |
Post subject: | |
You can also place this in the head tag of the left frame Code: <base target="rightframe">
|
Author: | zach [ Wed Jun 08, 2005 1:27 am ] |
Post subject: | Not what I meant |
What I meant was Code: <script Language="JavaScript"> function Handle(form) { var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } </script> And then something like this Code: <FORM name="form"> <select name="site" size=1 onChange="javascript:Handle()"> <option value="url" TARGET="_top"> All my websites <option value="url" TARGET="_top"> --------------- <option value="url" TARGET="_top">Whatever <option value="url" TARGET="_top"> Whatever </option> </select> </form> How would I get TARGET="_top" to work |
Author: | =cipher= [ Wed Jun 08, 2005 1:48 am ] |
Post subject: | |
Greetings, Wouldnt it be the target = the frame name? |
Author: | FzM [ Wed Jun 08, 2005 7:40 am ] |
Post subject: | |
=cipher= wrote: Greetings,
Wouldnt it be the target = the frame name? That's what RM and I both explained to him, he didn't understand. |
Author: | =cipher= [ Thu Jun 09, 2005 1:21 am ] |
Post subject: | |
yikes! I just wrote my own Drop Down Menu, fairly easy. You can see it here. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |