- Create Account

popup menus in frames - help needed!

Forums > Cascading Popup Menus: Help > popup menus in frames - help needed!
Author
Message

1) joel Group: Guests
IP: 91.110.--.--
Hello!
I use an old version of the popup menu (from the javascript source) on my site, and I want to update to this new (jaw-dropping!) version.
The site's in frames, the entire menu system is contained and displayed in the top frame, and all of the links are called to the main frame (well.. most of them, there's the odd blank and parent), like this-
http://www.ernieball.co.uk/new
As the menu doesn't need to display across frames, can I just use the single frame version in the top frame and add 'target' attributes on the links?
Or do i need to use the 'frameset' version simply because there are frames involved?
I basically want it to look like it does now, (maybe with some nice fading, animation and rollover images...) with an auto centre.
Any and all help gratefully recieved!
Cheers
joel

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
Please don't use frames if you can help it -- they somewhat went out with the 90s :).

If  you are not using frames, I recommend you use the FreeStyle Menu script from this site, it's very easy.

If you are using frames, you'll need the cross-frame version of the Cascading Popup Menu script if you want items in one frame and menus in another.

- Angus.

3) molendijk Group: Members
Posts: 78 Joined: 29 Nov 2005 Location: The Netherlands (Groningen) IP: 84.86.--.--
You can use the single-frame version in a frameset.
The trick is to have in index.html:
- a full-size iframe loading the frameset;
- the scripts and the css.
In pop_data.js, you would load files in the content's frame with this:
addItem('Sometext', 'frames[0].location.href="somefile.html"', 'js:');

In a site like Joel's, this would yield something like http://molendijk.110mb.com/cascade.
(2 active links: file1 & file2))
---
Arie Molendijk.
Arie.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.