Click to See Complete Forum and Search --> : Cascademenu and frames - possible?


Peter_662
10-20-2003, 05:01 AM
Hello.

I've been working with the "CascadeMenu" scprit for quite long time now, and really enjoy using it. It's easy and good looking.
The menu script I've downloaded from this site: http://javascript.internet.com/navigation/cascade-menu.html
I'm sure some of you know it, and since it comes with 3 files I won't post the script it self here.

However my question :
I've made a new layout to one of my sites, using a <iframe> for the part that is subject to change/different pages.
But I haven't been able to get the CascadeMenu working with the frame.
Well my only idea to get it working was a "TARGET=" within the [DIV] tag.
It's all to the same frame, so if it's possible to adjust in the scprit/js-file then fine with me.
Thanks in advance

/Peter

Peter_662
10-21-2003, 08:30 AM
I've looked a bit in to it my self.
Not that I got any bit closer so a solution, but, this is the part of the java-script, that changes pages.
So when the mouse is clicked, this part of the script will be exe'd:
function Do(obj)
{ var cmd = eval(obj).cmd
window.navigate(cmd) }

Does anyone have any idea if it is possible to link this command to a frame called "WEB"?

/Peter

Xin
10-21-2003, 12:36 PM
function Do(obj) {
var cmd = eval(obj).cmd;
WEB.location.href=cmd;
}

Peter_662
10-21-2003, 04:17 PM
It works! :D :p

Thank you SO much for the help!

/Peter