View Full Version : HC Menu and Mozilla positioning trouble

12-16-2004, 02:51 AM
Hi to all, I have a DHTML script : (and I know I might not get help on this as I read the forum rules - but thought I would give it a shot)

Here is the script I got from dynamic drive:
HV Menu v5.411- by Ger Versluis

I saw where there is a HV Menu v5.5 but when I downloaded the file the components were still v5.411...

It works perfectly in IE, but the menu is not positioned in Mozilla...it is all the way to the left...

here is the link:


View it in Mozilla and IE and you will see what I am talking about...
I would greatly appreciate someone's help on this....

thanks for dynamic drive supplying great scripts...
judy in so cal

12-16-2004, 04:37 AM
it was because i did not have "Frameset" in the:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" >

I had Transitional...so it now works in Mozilla like it is suppossed to with the above...


12-16-2004, 11:15 PM
do you think you could possibly post a .txt version of your scripts? I'm using the same menu. You seem to have your menu working really well, and I want to see If I messed something up when I configured my scripts.

12-16-2004, 11:29 PM
Here is the html code:

<TABLE cellSpacing=0 cellPadding=0 width=800 border=0 align="center"> <tr>
<td><div id='MenuPos' style='position:relative; width:800; height:18;'><img src='dot_clear.gif' width='800' height='18'></div></td>

and here is the .js file:

var NoOffFirstLineMenus=6; // Number of first level items
var LowBgColor='#808080'; // Background color when mouse is not over
var LowSubBgColor='#C0C0C0'; // Background color when mouse is not over on subs
var HighBgColor='#C0C0C0'; // Background color when mouse is over
var HighSubBgColor='#E4E4E4'; // Background color when mouse is over on subs
var FontLowColor='white'; // Font color when mouse is not over
var FontSubLowColor='black'; // Font color subs when mouse is not over
var FontHighColor='800000'; // Font color when mouse is over
var FontSubHighColor='800000'; // 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=8; // Font size menu items
var FontBold=0; // Bold menu items 1 or 0
var FontItalic=0; // Italic menu items 1 or 0
var MenuTextCentered='center'; // Item text position 'left', 'center' or 'right'
var MenuCentered='left'; // Menu horizontal position 'left', 'center' or 'right'
var MenuVerticalCentered='top'; // 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=3; // Left padding
var TopPaddng=2; // Top padding
var FirstLineHorizontal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
var MenuFramesVertical=1; // Frames in cols or rows 1 or 0
var DissapearDelay=500; // delay before menu folds in
var TakeOverBgColor=1; // Menu frame takes over background color subitem frame
var FirstLineFrame='navig'; // Frame where first level appears
var SecLineFrame='space'; // Frame where sub levels appear
var DocTargetFrame='space'; // Frame where target documents appear
var TargetLoc='MenuPos'; // 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',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("About Us","","",3,18,132);
Menu1_1=new Array("Our Vision","aboutus.html","",0,18,132);
Menu1_2=new Array("Our Staff","staff.html","",0,18,132);
Menu1_3=new Array("Our Facility","facilities.html","",0,18,132);
Menu2=new Array("Services","","",6,18,133);
Menu2_1=new Array("Collision Repair","collrepair.html","",0,18,133);
Menu2_2=new Array("Insurance Assistance","insurance.html","",0,18,133);
Menu2_3=new Array("Insurance Listings","insurancelistings.html","",0,18,133);
Menu2_4=new Array("Estimates","estimates.html","",0,18,133);
Menu2_5=new Array("Towing and Rental","towrent.html","",0,18,133);
Menu2_6=new Array("Repair in Progress","progress.html","",0,18,133);
Menu3=new Array("Warranties","","",2,18,133);
Menu3_1=new Array("Shop","shopwarranty.html","",0,18,133);
Menu3_2=new Array("DuPont","dupont.html","",0,18,133);
Menu4=new Array("Collision Counseling","collision.html","",0,18,160);
Menu5=new Array("FAQs","","",2,18,100);
Menu5_1=new Array("Basic FAQs","faqs.html","",0,18,100);
Menu5_2=new Array("Repair FAQs","repairfaqs.html","",0,18,100);
Menu6=new Array("Contact Us","contact.html","",0,18,135);