PDA

View Full Version : Drop downs displaying in top left of screen



claire.knight
07-29-2005, 01:58 PM
Hi

Can someone please help a novice!! I have used http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm on several sites with no problem but have now encountered a problem where the sub menus display in the top left of the screen when I have a horizontal menu. I did have this once before on a vertical drop down and could not work out why it did not work so just started again from scratch. My site is on an Intranet unfortunately.

Any help very very gratefully received!

Thanks
Claire

var NoOffFirstLineMenus=7; // Number of first level items
var LowBgColor='#00659c'; // Background color when mouse is not over
var LowSubBgColor='315D84'; // Background color when mouse is not over on subs
var HighBgColor='c6c3c6'; // Background color when mouse is over
var HighSubBgColor='#c6c3c6'; // Background color when mouse is over on subs
var FontLowColor='white'; // Font color when mouse is not over
var FontSubLowColor='white'; // Font color subs when mouse is not over
var FontHighColor='315D84'; // Font color when mouse is over
var FontSubHighColor='315D84'; // Font color subs when mouse is over
var BorderColor=''; // Border color
var BorderSubColor=''; // Border color for subs
var BorderWidth=3; // Border width
var BorderBtwnElmnts=1; // Border between elements 1 or 0
var FontFamily="arial,comic sans ms,technical" // Font family menu items
var FontSize=10; // Font size menu items
var FontBold=1; // 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='center'; // Menu horizontal position 'left', 'center' or 'right'
var MenuVerticalCentered='top'; // Menu vertical position 'top', 'middle','bottom' or static
var ChildOverlap=0; // horizontal overlap child/ parent
var ChildVerticalOverlap=0; // vertical overlap child/ parent
var StartTop=100; // Menu offset x coordinate
var StartLeft=3; // 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=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=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=['images/tri.gif',7,10,'images/tridown.gif',10,5,'images/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","index.html","",0,20,60);

Menu2=new Array("FAQs","faq.html","",2,20,100);
Menu2_1=new Array("Background","faq.html#back","",0,20,100);
Menu2_2=new Array("Training","faq.html#train","",0,20,100);

Menu3=new Array("Timetable","plans.html","",0,20,100);

Menu4=new Array("Latest Update","update.html","",0,20,110);

Menu5=new Array("Training","training.html","",4,20,120);
Menu5_1=new Array("FAQs","faq.html#train","",0,20,120);
Menu5_2=new Array("Security Groups","groups.html","",0,20,120);
Menu5_3=new Array("Training Guides","guides.html","",0,20,150);
Menu5_4=new Array("Play area","playenviro.html","",0,20,150);

Menu6=new Array("Contact Us","contactus.html","",0,20,100);

Menu7=new Array("The Board","board.html","",0,20,100);