PDA

View Full Version : HVMenu Problems - Please Help



taz002dev
03-01-2006, 10:49 PM
Script: DD Tab Menu
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

Hy | am having some problems with HVMenu.I am using it with two frames and accros frames too. That works fine but only once.Clicked second time it won't work anymore.
The menu is not working anymore after I click it once. It won't expand anymore. When you press refresh it works

What should I do? I understand html but i'm a newby in Javascript. Pardon my English also. I'm from Romania....
Thank you

taz002dev
03-08-2006, 05:20 PM
Cmon people nobody realy knows how to work out this problem. At least give me a reply...:you are an idiot and forget about this "wonderfull hv menu" We don't know how to fix it. move on and get a real menu.
Seriously now: I'm not the only one who's having problems like me: THERE IS ANOTHER POST THAT SAYS THE MENU WON'T WORK SECOND TIME. Here are my sources for the frames and menu:

Frames:

<html>
<head>
<title>Your Title</title>
</head>
<FRAMESET frameborder="yes" frameSpacing=0 rows=100,* >
<frame frameborder='1' framespacing='0' src="top.htm" noresize scrolling='no' name="topframe"></frame>
<frame frameborder='0' framespacing='0' src="main.htm" name="mainframe"></Frame>
</frameset>
<noframes></noframes>
</html>


MainFrame(second frame):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>tabel vanzare</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body onload="javascript:{if(parent.frames[0]&&parent.frames['topframe'].Go)parent.frames['topframe'].Go()}">

My content.

</body>
</html>


TopFrame
<html>
<head></head><body>test
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">


<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>
<noscript>Your browser does not support script</noscript>

top
</body>
</html>


exmplmenu_var.js

/***********************************************************************************
* (c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
* For info write to menus@burmees.nl *
* You may remove all comments for faster loading *
***********************************************************************************/

var NoOffFirstLineMenus=5; // Number of first level items
var LowBgColor='#CCCCCC'; // Background color when mouse is not over
var LowSubBgColor='#CCCCCC'; // Background color when mouse is not over on subs
var HighBgColor='lightblue'; // Background color when mouse is over
var HighSubBgColor='lightblue'; // Background color when mouse is over on subs
var FontLowColor='black'; // Font color when mouse is not over
var FontSubLowColor='black'; // Font color subs when mouse is not over
var FontHighColor='blue'; // Font color when mouse is over
var FontSubHighColor='blue'; // Font color subs when mouse is over
var BorderColor='black'; // Border color
var BorderSubColor='black'; // Border color for subs
var BorderWidth=1; // Border width
var BorderBtwnElmnts=1; // Border between elements 1 or 0
var FontFamily="arial,comic sans ms,technical" // Font family menu items
var FontSize=9; // Font size menu items
var FontBold=1; // Bold menu items 1 or 0
var FontItalic=0; // Italic menu items 1 or 0
var MenuTextCentered='left'; // Item text position 'left', 'center' or 'right'
var MenuCentered='center'; // Menu horizontal position 'left', 'center' or 'right'
var MenuVerticalCentered='middle'; // Menu vertical position 'top', 'middle','bottom' or static
var ChildOverlap=.2; // horizontal overlap child/ parent
var ChildVerticalOverlap=.2; // vertical overlap child/ parent
var StartTop=0; // 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=10; // Left padding
var TopPaddng=0; // Top padding
var FirstLineHorizontal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
var MenuFramesVertical=0; // Frames in cols or rows 1 or 0
var DissapearDelay=1000; // delay before menu folds in
var TakeOverBgColor=0; // Menu frame takes over background color subitem frame
var FirstLineFrame='topframe'; // Frame where first level appears
var SecLineFrame='mainframe'; // Frame where sub levels appear
var DocTargetFrame='mainframe'; // Frame where target documents appear
var TargetLoc=''; // 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=0; // Keep selected path highligthed
var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10]; // Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
// MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
// For rollover images set "Text to show" to: "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array("Home","main/main.htm","",0,20,138);

Menu2=new Array("Parfumuri","main/main.htm","",3);
Menu2_1=new Array("Issey Miyake (Tester) -L'EAU D'ISSEY POUR HOMME","main/parfumuri/im.htm","",0,20,310);
Menu2_2=new Array("Calvin Klein (Tester) - Obsession (Men)","main/parfumuri/ck.htm","",0);
Menu2_3=new Array("Hugo Boss (Tester) - No. One (Men)","main/parfumuri/hb.htm","",0);



Menu3=new Array("Tricouri Nba","main/main.htm","",2);
Menu3_1=new Array("Unk NBA - No. 7 Chicago Bulls - GORDON","main/tricouri/unk.htm","",0,20,300);
Menu3_2=new Array("Jordan No. 23 - North Carolina 1982 Champions","main/tricouri/jordan.htm","",0);


Menu4=new Array("Kit INCARCATOR RAPID","main/main.htm","",1,0,150);
Menu4_1=new Array("Kit INCARCATOR RAPID-ACUMULATORI KONICA MINOLTA, NIKON, SONY","main/incarcator/inc.htm","",0,20,425);


Menu5=new Array("Contact","javascript:top.location.href='blank.htm'","",0,20,138);


and menu_.js

The same as the one downloaded from here.

Chippertje
03-09-2006, 02:10 PM
Hi there,

I'm having the exact same problem. Using frames, all works fine. Except it won't work after you've clicked on a menu item. Then you need to refresh. Please, someone, help us out.

Chippertje
03-09-2006, 04:03 PM
I found the solution! Put the following line in the body tag on EVERY page:

<body onload="javascript:{if(parent.frames[0]&&parent.frames['MyFrameOne'].Go)parent.frames['MyFrameOne'].Go();}">

Where MyFrameOne is the name of the frame where your menu is in.

Good luck.

uk_doctorj
03-16-2006, 04:42 PM
I was having the same problem, but I tried Chippertje's suggestion and it seems to have worked a treat. Nice one mate! Thanks very much!!