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/
Step 1: Create frameset |
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> |
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> |
|
your html </body> </html> |
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> |
Two frames
|
Three frames
|