Flyout Menus from Dynamic Drive...

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
 
T

Thomas A. Rowe

Have you contact the author of the script?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================
 
J

Jon

What might the author say? There's no way for any script to allow divs to
cross frame boundaries - this is a limitation of browsers rather than script
authors. Might be easier to just tell the guy that rather than telling him
to write the author.

Jon
Microsoft MVP - FP


Thomas A. Rowe said:
Have you contact the author of the script?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================


Jim said:
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)pare
nt.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
 
T

Thomas A. Rowe

Exactly what you just said!

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================


Jon said:
What might the author say? There's no way for any script to allow divs to
cross frame boundaries - this is a limitation of browsers rather than script
authors. Might be easier to just tell the guy that rather than telling him
to write the author.

Jon
Microsoft MVP - FP


Thomas A. Rowe said:
Have you contact the author of the script?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
onload="javascript:{if(parent.frames[0]&&parent.frames['MyFrameOne'].Go)pare
nt.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top