Click to See Complete Forum and Search --> : User Map Drop Down Menu within framed page?


DJ111
01-04-2003, 12:04 PM
I'm trying to use an Image Map to create a drop down menu. This I have done and seems to work ok. It can be viewed here:
http://www.hinckleyunitedfc.co.uk/trial/menu_main.html

However when I place it into a framed page so as to appear, er, seamless(?) it drops down behind the main window frame instead of infront it. That can be viewed here:
http://www.hinckleyunitedfc.co.uk/trial/tempindex.html

The idea is that I'm trying to save space on the page. I could increase the size of the frame the user map is in but that would defeat the object of using the drop down menu. The easy way out is to place the user map with the drop down into every page that loads into the main window and get away with the frame alltogether. However that would mean placing the coding into every page and if I needed to alter the menu, I would have to edit every page.

I tried an inline frame sourced to an external HTML page (which meant I would only have to edit the external page), but that also had the drop down appear behind the main window frame. Joy!

I could use the object tag but that dosn't work in all browsers.

Does anyone know if there is any code or script I can use to make the drop down appear over the main window frame?

pyro
01-04-2003, 12:12 PM
Originally posted by DJ111
The easy way out is to place the user map with the drop down into every page that loads into the main window and get away with the frame alltogether. However that would mean placing the coding into every page and if I needed to alter the menu, I would have to edit every page.
Not if you used PHP or SSI. I explain in this thread http://forums.webdeveloper.com/showthread.php?s=&threadid=1781

DJ111
01-04-2003, 12:21 PM
Yeah, my server supports SSI and PHP , but I have the cheapest package available as my site is very very non profit hobbie amateur stuff. Upgrading to SSI and PHP support costs more money, which the missus has already taken care of!

Is there any kind of code to make elements of one frame ie a drop down menu, appear over the top of another frame, and still be within the budget of amateur cheapskates like me?

pyro
01-04-2003, 12:30 PM
Originally posted by DJ111
Upgrading to SSI and PHP support costs more money, which the missus has already taken care of!LOL :D
Originally posted by DJ111
[B]Is there any kind of code to make elements of one frame ie a drop down menu, appear over the top of another frame[B]Well, I have seen it done before, and I'm guessing what you need to do it with top.framename. For instance if you want to write to a different frame you'd do this. top.framename.document.write ('test');

DJ111
01-04-2003, 12:42 PM
I'm very sorry, I must've given you the impression that I actually knew what I was writing about.:rolleyes:

Can you explain (in words that monkeys like me can understand, no really I am stupid ;) ) how exactly I use the top.framename in the coding? :confused:

pyro
01-04-2003, 01:31 PM
Originally posted by DJ111
Can you explain (in words that monkeys like me can understand, no really I am stupid ;) ) how exactly I use the top.framename in the coding? :confused: Unfortunatly, this meathod would get quite complex, you may be better of switching to a different menu, one that already supports the use of frames. An extremely customizable one can be found here. http://javascript.internet.com/navigation/toolbar-menu.html

DJ111
01-04-2003, 03:32 PM
Yeah, I saw that earlier when I've been looking for a new drop down menu to use. That uses an external script file, and I couldn't find it! Either I really am that stupid or they've hid it on purpose just to make me look more stupid than i already am.:rolleyes:

Anyway, I'm rambling, complex it may be, but short of finding that script for the tool bar menu you suggested, I think I'm going to have to carry on regardless.

If it's possible and you have the time could you try and explain it to me. If it's too much to ask and takes up too much of your time then fair enough just tell me to get lost. Which shouldn't be too hard just put a magnet on my head. :D

pyro
01-04-2003, 04:35 PM
Ahh, yes, I forgot. javascript.internet.com doesn't seem to like to post the code you need. Here it is. I'd recommend using this code, becuase like I said before, changing elements between frames gets quite complex.

DJ111
01-04-2003, 06:21 PM
Ta very much for your help, I'll give it a try