100 Web Space

Drop down menu
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:
<frameset cols="26%,*">
  <frame src="left.html" name="leftFrame">
  <frame src="main.html" name="rightFrame" noresize>

Example left.html:
<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 :D
<base target="rightframe">

Author:  zach [ Wed Jun 08, 2005 1:27 am ]
Post subject:  Not what I meant

What I meant was

<script Language="JavaScript">
function Handle(form)
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;

And then something like this


<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

How would I get TARGET="_top" to work

Author:  =cipher= [ Wed Jun 08, 2005 1:48 am ]
Post subject: 


Wouldnt it be the target = the frame name?

Author:  FzM [ Wed Jun 08, 2005 7:40 am ]
Post subject: 

=cipher= wrote:

Wouldnt it be the target = the frame name?

That's what RM and I both explained to him, he didn't understand. :roll:

Author:  =cipher= [ Thu Jun 09, 2005 1:21 am ]
Post subject: 

yikes! :shock:

I just wrote my own Drop Down Menu, fairly easy. You can see it here. :D

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group