Below are installation instructions for inserting HVMenu in a
frames page, where the main menu resides in one frame, and the resulting
submenus drop down in another. For an example, see: http://www.burmees.nl/
Create frameset with coloms
|
<html> <head> <title>Your Title</title> </head>
<frameset cols="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> |
Create 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: Inserting necessary codes
i) 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.)
Two frames
Menu frame
menu start |
menu start |
menu start |
menu start |
|
Menu popup frame=document target frame.
Each document needs loader in <body>-tag.
menu rest |
menu rest |
menu rest |
menu rest |
|
|
Three frames
Menu frame
menu start |
menu start |
menu start |
menu start |
|
Menu popup frame
menu rest |
menu rest |
menu rest |
menu rest |
|
Document target frame
Documents don't need loader in <body>-tag. |
|
|