Hi,
It feels like I'm going around in circles and hope there's someone here who can help me out.
I have a site with a frameset (menu and main) and fly out menus in the menu frame that "fly out" in the main frame.
I need to determine what file is loaded in the menu frame in order to call the correct menu script.
In my head I have a vision of how it would look but I'm so new to javascript I don't know how to code it correctly. Here is my "vision" of the script to put on the pages loaded in the main frame:
function whichMenuIsLoaded() {
if (parent.menu="menu1.html") then
mmLoadMenusA();
else
mmLoadMenusB();
}
Would be really happy for any hints on this matter.
Thanks
Glenn
It feels like I'm going around in circles and hope there's someone here who can help me out.
I have a site with a frameset (menu and main) and fly out menus in the menu frame that "fly out" in the main frame.
I need to determine what file is loaded in the menu frame in order to call the correct menu script.
In my head I have a vision of how it would look but I'm so new to javascript I don't know how to code it correctly. Here is my "vision" of the script to put on the pages loaded in the main frame:
function whichMenuIsLoaded() {
if (parent.menu="menu1.html") then
mmLoadMenusA();
else
mmLoadMenusB();
}
Would be really happy for any hints on this matter.
Thanks
Glenn