PDA

View Full Version : HV Menu



dmwhipp
11-07-2007, 04:07 PM
1) Script Title: HV Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

3) Describe problem: Different background colors for each menu item

I would like to have each menu item have a different background color. Here is the site we are working on: http://floridacompact.org/ssc/

I have read the config file and it says the LowBgColor and HighBgColor can be overruled by a variable in the menu tree, but I cannot get it to work. If I add the # in front of the colors, the page shows an error and the menu doesn't display at all.

Below is the code I tried using:

/***********************************************************************************
* (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=10; // Number of first level items
var LowBgColor=''; // Background color when mouse is not over
var LowSubBgColor='#ffffff'; // Background color when mouse is not over on subs
var HighBgColor=''; // Background color when mouse is over
var HighSubBgColor='#424242'; // Background color when mouse is over on subs
var FontLowColor='#ffffff'; // Font color when mouse is not over
var FontSubLowColor='#78001c'; // Font color subs when mouse is not over
var FontHighColor='#539741'; // Font color when mouse is over
var FontSubHighColor='#ffffff'; // Font color subs when mouse is over
var BorderColor='#ffffff'; // Border color
var BorderSubColor='#000000'; // Border color for subs
var BorderWidth=2; // Border width
var BorderBtwnElmnts=1; // Border between elements 1 or 0
var FontFamily="verdana,arial" // Font family menu items
var FontSize=8; // 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='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=242; // Menu offset x coordinate
var StartLeft=53; // Menu offset y coordinate
var VerCorrect=0; // Multiple frames y correction
var HorCorrect=0; // Multiple frames x correction
var LeftPaddng=5; // Left padding
var TopPaddng=8; // Top padding
var FirstLineHorizontal=0; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
var MenuFramesVertical=1; // 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='navig'; // Frame where first level appears
var SecLineFrame='space'; // Frame where sub levels appear
var DocTargetFrame='space'; // 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=0; // 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("HOME","/~floridac/ssc/index.html","",0,30,176,000000,333333);

Menu2=new Array("REGISTRATION","/~floridac/ssc/temp.html","",0,30,176,800000,600000);

Menu3=new Array("SCHEDULE AT-A-GLANCE","/~floridac/ssc/temp.html","",0,30,176,222222,444444);

Menu4=new Array("FEATURED SPEAKERS","/~floridac/ssc/temp.html","",0,30,176,555555,777777);

Menu5=new Array("CALL FOR PRESENTERS","/~floridac/ssc/temp.html","",0,30,176,000000,999999);

Menu6=new Array("SHOWCASE","/~floridac/ssc/temp.html","",0,30,176,cccccc,dddddd);

Menu7=new Array("LODGING \x26 ACCOMMODATIONS","/~floridac/ssc/temp.html","",0,45,176,000000,333333);

Menu8=new Array("TRAVEL INFORMATION","/~floridac/ssc/temp.html","",0,30,176,000000,333333);

Menu9=new Array("LOCAL ATTRACTIONS","/~floridac/ssc/temp.html","",0,30,176,000000,333333);

Menu10=new Array("CONTACT US","/~floridac/ssc/temp.html","",0,30,176,000000,333333);








Thanks,
Deborah