J
Jim
Hello all.
I've downloaded some code from Dynamic Drive that is supposed to allow
me to create a dropdown/flyout menu. Although the code works great,
I'm having an issue making it cross a frame, which it's supposedly
capable of.
I've followed their directions to a T, but can't get it to work (menu
pops up in one window, but doesn't cross the frame boundary).
Step 1: Create a frameset with ROWS:
<html>
<head>
<title>Your Title</title>
</head>
<frameset rows="150,*" framespacing='0' frameborder='0' border=0>
<frame frameborder='0' framespacing='0' src="MyNavigation.htm"
noresize scrolling='no' name="MyFrameOne"></frame>
<frame frameborder='0' framespacing='0' src="MyMain.htm"
name="MyFrameTwo"></frame>
</frameset>
</html>
Step 2: Add the below script in the <BODY> of MyframeOne, immediately
following the tag: (So, do they mean the body of the HTML page
displayed in MyFrameOne or do they want me to create <body> tags
inside the <frame> tag for MyFrameOne?)
<html>
<head>your header html</head>
<body>
<script type='text/javascript'>
//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
function Go(){return}</script>
<script type='text/javascript' src='exmplmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
your html
</body>
</html>
Step 3: Then, add the below code inside the <BODY> tag itself of
MyFrameTwo, as follows: (Again, do they mean the body of the HTML
page displayed in MyFrameTwo or do they want me to create <body> tags
inside the <frame> tag for MyFrameTwo?)
<body onload="javascript:{if(parent.frames[0]&&parent.frames['MyFrameOne'].Go)parent.frames['MyFrameOne'].Go()}">
your html
</body>
Either way, can't get it to work... any help would be appreciated.
The files can be downloaded from
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
Jim
I've downloaded some code from Dynamic Drive that is supposed to allow
me to create a dropdown/flyout menu. Although the code works great,
I'm having an issue making it cross a frame, which it's supposedly
capable of.
I've followed their directions to a T, but can't get it to work (menu
pops up in one window, but doesn't cross the frame boundary).
Step 1: Create a frameset with ROWS:
<html>
<head>
<title>Your Title</title>
</head>
<frameset rows="150,*" framespacing='0' frameborder='0' border=0>
<frame frameborder='0' framespacing='0' src="MyNavigation.htm"
noresize scrolling='no' name="MyFrameOne"></frame>
<frame frameborder='0' framespacing='0' src="MyMain.htm"
name="MyFrameTwo"></frame>
</frameset>
</html>
Step 2: Add the below script in the <BODY> of MyframeOne, immediately
following the tag: (So, do they mean the body of the HTML page
displayed in MyFrameOne or do they want me to create <body> tags
inside the <frame> tag for MyFrameOne?)
<html>
<head>your header html</head>
<body>
<script type='text/javascript'>
//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
function Go(){return}</script>
<script type='text/javascript' src='exmplmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
your html
</body>
</html>
Step 3: Then, add the below code inside the <BODY> tag itself of
MyFrameTwo, as follows: (Again, do they mean the body of the HTML
page displayed in MyFrameTwo or do they want me to create <body> tags
inside the <frame> tag for MyFrameTwo?)
<body onload="javascript:{if(parent.frames[0]&&parent.frames['MyFrameOne'].Go)parent.frames['MyFrameOne'].Go()}">
your html
</body>
Either way, can't get it to work... any help would be appreciated.
The files can be downloaded from
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
Jim