PDA

View Full Version : menu in top frame, sub menu in main frame



kenh
04-21-2006, 03:58 PM
I am trying to find a horizontal menu that I can position on lower edge of top frame, and display submenu's in main frame. Above the menu's I have got a Flash object I can't get sub menu's to display over that either. I tried using HVmenu because that is supposed to work accross two frames but I couldn't get that woking either. :(

jscheuer1
04-21-2006, 06:17 PM
See:

http://www.dynamicdrive.com/forums/showthread.php?t=320


Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Please post a link to the page on your site that contains the problematic script so we can check it out.

kenh
04-21-2006, 06:41 PM
I haven't got it online yet I am still waiting for the domain name to be transfered to the host. The code from the example is
Add the below script in the <BODY> of MyframeOne, immediately following the tag:

<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>
(Where MyFrameOne is the name of the navigation frame.)
ii) Then, add the below code inside the <BODY> tag itself of MyFrameTwo, as follows:

<html>
<head>your header html</head>
<body onload="javascript:{if(parent.frames[0]&&parent.frames['MyFrameOne'].Go)parent.frames['MyFrameOne'].Go()}">
your html
</body>
</html>
(Where MyFrameOne is the name of the navigation frame.)