Hi
The Menu doesn't work properly when I have 2 frame and the Menu popup
frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.
Here is the code I'm using:
FrameSet -------------------------------------------------------
<html>
<head>
<title>Your Title</title>
</head>
<frameset rows="20%,*" framespacing='0 ' frameborder='1' border=0>
<frame frameborder='1' framespacing='0 ' src="1.html" noresize
scrolling='no' name="MyFrameOn e"></frame>
<frame frameborder='1' framespacing='0 ' src="2.html"
name="MyFrameTw o"></frame>
</frameset>
</html>
1.html -------------------------------------------------------------------
<html>
<head>your header html</head>
<body bgcolor="blue">
Frame 1
<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.j s'></script>
</body>
</html>
2.html ----------------------------------------------------------------
<html>
<body
onload="javascr ipt:{if(parent. frames[0]&&parent.fra mes['MyFrameOne'].Go)parent.fram es['MyFrameOne'].Go()}"
bgcolor="red">
Frame 2
</body>
</html>
exmplmenu_var.j s --------------------------------------------------------
var NoOffFirstLineM enus=5; // Number of first level items
var LowBgColor='#D5 D9FE'; // Background color when mouse is not
over
var LowSubBgColor=' #D5D9FE'; // Background color when mouse is not
over on subs
var HighBgColor='bl ack'; // Background color when mouse is over
var HighSubBgColor= 'black'; // Background color when mouse is over
on subs
var FontLowColor='n avy'; // Font color when mouse is not over
var FontSubLowColor ='navy'; // Font color subs when mouse is not
over
var FontHighColor=' white'; // Font color when mouse is over
var FontSubHighColo r='white'; // Font color subs when mouse is over
var BorderColor='na vy'; // Border color
var BorderSubColor= 'navy'; // Border color for subs
var BorderWidth=1; // Border width
var BorderBtwnElmnt s=1; // Border between elements 1 or 0
var FontFamily="ari al,comic sans ms,technical" // Font family menu
items
var FontSize=8; // Font size menu items
var FontBold=0; // Bold menu items 1 or 0
var FontItalic=0; // Italic menu items 1 or 0
var MenuTextCentere d='left'; // Item text position 'left', 'center'
or 'right'
var MenuCentered='l eft'; // Menu horizontal position 'left',
'center' or 'right'
var MenuVerticalCen tered='top'; // Menu vertial position 'top',
'middle','botto m' or static
var ChildOverlap=.2 ; // horizontal overlap child/ parent
var ChildVerticalOv erlap=.2; // vertical overlap child/ parent
var StartTop=16; // Menu offset x coordinate
var StartLeft=0; // Menu offset y coordinate
var VerCorrect=0; // Multiple frames y correction
var HorCorrect=0; // Multiple frames x correction
var LeftPaddng=3; // Left padding
var TopPaddng=2; // Top padding
var FirstLineHorizo ntal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR
VERTICAL
var MenuFramesVerti cal=0; // Frames in cols or rows 1 or 0
var DissapearDelay= 1000; // delay before menu folds in
var TakeOverBgColor =1; // Menu frame takes over background color
subitem frame
var FirstLineFrame= 'MyFrameOne'; // Frame where first level appears
var SecLineFrame='M yFrameTwo'; // Frame where sub levels appear
var DocTargetFrame= 'MyFrameTwo'; // Frame where target documents
appear
var TargetLoc='myMe nu'; // span id for relative positioning
var HideTop=0; // Hide first level when loading new document 1 or
0
var MenuWrap=1; // enables/ disables menu wrap 1 or 0
var RightToLeft=0; // enables/ disables right to left unfold 1 or
0
var UnfoldsOnClick= 0; // Level 1 unfolds onclick/ onmouseover
var WebMasterCheck= 0; // menu tree checking on or off 1 or 0
var ShowArrow=1; // Uses arrow gifs when 1
var KeepHilite=1; // Keep selected path highligthed
var Arrws=['tri.gif',5,10, 'tridown.gif',1 0,5,'trileft.gi f',5,10]; //
Arrow source, width and height
Any idea ?
Elad
The Menu doesn't work properly when I have 2 frame and the Menu popup
frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.
Here is the code I'm using:
FrameSet -------------------------------------------------------
<html>
<head>
<title>Your Title</title>
</head>
<frameset rows="20%,*" framespacing='0 ' frameborder='1' border=0>
<frame frameborder='1' framespacing='0 ' src="1.html" noresize
scrolling='no' name="MyFrameOn e"></frame>
<frame frameborder='1' framespacing='0 ' src="2.html"
name="MyFrameTw o"></frame>
</frameset>
</html>
1.html -------------------------------------------------------------------
<html>
<head>your header html</head>
<body bgcolor="blue">
Frame 1
<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.j s'></script>
</body>
</html>
2.html ----------------------------------------------------------------
<html>
<body
onload="javascr ipt:{if(parent. frames[0]&&parent.fra mes['MyFrameOne'].Go)parent.fram es['MyFrameOne'].Go()}"
bgcolor="red">
Frame 2
</body>
</html>
exmplmenu_var.j s --------------------------------------------------------
var NoOffFirstLineM enus=5; // Number of first level items
var LowBgColor='#D5 D9FE'; // Background color when mouse is not
over
var LowSubBgColor=' #D5D9FE'; // Background color when mouse is not
over on subs
var HighBgColor='bl ack'; // Background color when mouse is over
var HighSubBgColor= 'black'; // Background color when mouse is over
on subs
var FontLowColor='n avy'; // Font color when mouse is not over
var FontSubLowColor ='navy'; // Font color subs when mouse is not
over
var FontHighColor=' white'; // Font color when mouse is over
var FontSubHighColo r='white'; // Font color subs when mouse is over
var BorderColor='na vy'; // Border color
var BorderSubColor= 'navy'; // Border color for subs
var BorderWidth=1; // Border width
var BorderBtwnElmnt s=1; // Border between elements 1 or 0
var FontFamily="ari al,comic sans ms,technical" // Font family menu
items
var FontSize=8; // Font size menu items
var FontBold=0; // Bold menu items 1 or 0
var FontItalic=0; // Italic menu items 1 or 0
var MenuTextCentere d='left'; // Item text position 'left', 'center'
or 'right'
var MenuCentered='l eft'; // Menu horizontal position 'left',
'center' or 'right'
var MenuVerticalCen tered='top'; // Menu vertial position 'top',
'middle','botto m' or static
var ChildOverlap=.2 ; // horizontal overlap child/ parent
var ChildVerticalOv erlap=.2; // vertical overlap child/ parent
var StartTop=16; // Menu offset x coordinate
var StartLeft=0; // Menu offset y coordinate
var VerCorrect=0; // Multiple frames y correction
var HorCorrect=0; // Multiple frames x correction
var LeftPaddng=3; // Left padding
var TopPaddng=2; // Top padding
var FirstLineHorizo ntal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR
VERTICAL
var MenuFramesVerti cal=0; // Frames in cols or rows 1 or 0
var DissapearDelay= 1000; // delay before menu folds in
var TakeOverBgColor =1; // Menu frame takes over background color
subitem frame
var FirstLineFrame= 'MyFrameOne'; // Frame where first level appears
var SecLineFrame='M yFrameTwo'; // Frame where sub levels appear
var DocTargetFrame= 'MyFrameTwo'; // Frame where target documents
appear
var TargetLoc='myMe nu'; // span id for relative positioning
var HideTop=0; // Hide first level when loading new document 1 or
0
var MenuWrap=1; // enables/ disables menu wrap 1 or 0
var RightToLeft=0; // enables/ disables right to left unfold 1 or
0
var UnfoldsOnClick= 0; // Level 1 unfolds onclick/ onmouseover
var WebMasterCheck= 0; // menu tree checking on or off 1 or 0
var ShowArrow=1; // Uses arrow gifs when 1
var KeepHilite=1; // Keep selected path highligthed
var Arrws=['tri.gif',5,10, 'tridown.gif',1 0,5,'trileft.gi f',5,10]; //
Arrow source, width and height
Any idea ?
Elad
Comment