Web Analytics Made Easy -
StatCounter Add FirstLineMenus - CodingForum


No announcement yet.

Add FirstLineMenus

  • Filter
  • Time
  • Show
Clear All
new posts

  • Add FirstLineMenus

    cant seem to get more than 5 first line menus..can someone advise me of what all needs changed to do so?
    Bobby Sullivan

  • #2
    which script are you referring to?...


    • #3

      Bobby Sullivan


      • #4
        here's an instruction on creating menu tree:

        or if you cannot get your code to work, then post it here. we'll troubleshoot for you.


        • #5

          Yes...But when I cahnge (var NoOffFirstLineMenus=5) to (var NoOffFirstLineMenus=7 ) and then add my menu6 and menu7 i get error and nothing works
          Bobby Sullivan


          • #6
            here it is, see if you can tell me why its not working

            var NoOffFirstLineMenus=7; // Number of first level items
            var LowBgColor='#0000FF'; // Background color when mouse is not over
            var LowSubBgColor='#0000FF'; // Background color when mouse is not over on subs
            var HighBgColor='#003399'; // Background color when mouse is over
            var HighSubBgColor='#003399'; // 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='yellow'; // Font color when mouse is over
            var FontSubHighColor='yellow'; // Font color subs when mouse is over
            var BorderColor='#003399'; // Border color
            var BorderSubColor='#003399'; // 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='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=134; // Menu offset x coordinate
            var StartLeft=1; // 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=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=1; // Uses arrow gifs when 1
            var KeepHilite=1; // Keep selected path highligthed
            var Arrws=['http://www.cableboxtv.com/cablehut/tri.gif',5,10,'http://www.cableboxtv.com/cablehut/tridown.gif',10,5,'http://www.cableboxtv.com/cablehut/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("Welcome","http://www.cableboxtv.com/welcomes-you.html","",0,20,138);

            Menu2=new Array("Home","http://www.cableboxtv.com/","",0);

            Menu3=new Array("Disclaimer","http://www.cableboxtv.com/disclaimer.html","",0);

            Menu4=new Array("Support","","",2);
            Menu4_1=new Array("Information","","",5,20,150);
            Menu4_1_1=new Array("30 Day Guarantee","http://www.cableboxtv.com/30day.html","",0,20,150);
            Menu4_1_2=new Array("Warranty Information","http://www.cableboxtv.com/warranty.html","",0);
            Menu4_1_3=new Array("Shipping Information","http://www.cableboxtv.com/shipping.html","",0);
            Menu4_1_4=new Array("Return Information","http://www.cableboxtv.com/gifs2/return.html","",0);
            Menu4_1_5=new Array("Payment Information","http://www.cableboxtv.com/paymentmethod.html","",2);
            Menu4_2=new Array("Help Topics","","",5);
            Menu4_2_1=new Array("FCC Information/Federal Laws!","http://www.cableboxtv.com/q&a.html","",0,20,200);
            Menu4_2_2=new Array("Frequently Askd Questions","http://www.cableboxtv.com/faq.html","",0);
            Menu4_2_3=new Array("Common Questions & Answers","http://www.cableboxtv.com/commonquestions.html","",0);
            Menu4_2_4=new Array("What Descrambler Do I Need?","http://www.cableboxtv.com/helpme.html","",0);
            Menu4_2_5=new Array("Privacy Policy","http://www.cableboxtv.com/policy.html","",0);

            Menu5=new Array("Products","","",8);
            Menu5_1=new Array("Universal Descramblers","http://www.cableboxtv.com/universal.html","",0,20,150);
            Menu5_2=new Array("General Instrument","http://www.cableboxtv.com/gi.html","",0);
            Menu5_3=new Array("Scientific Atlantic","http://www.cableboxtv.com/sa.html","",0);
            Menu5_4=new Array("Jerrold","http://www.cableboxtv.com/gi.html","",0);
            Menu5_5=new Array("Pioneer","http://www.cableboxtv.com/pioneer.html","",0);
            Menu5_6=new Array("Zenith","http://www.cableboxtv.com/zenith.html","",0);
            Menu5_7=new Array("Tocom","http://www.cableboxtv.com/tocom.html","",0);
            Menu5_8=new Array("Test Cubes","http://www.cableboxtv.com/testcubes.html","",0);

            Menu6=new Array("Digital Descramblers","http://www.cableboxtv.com/digital.html","",0,20,138);
            Menu6_1=new Array("Be One of the first to get ","http://www.dynamicdrive.com","",0,20,180);
            Menu6_2=new Array("JavaScript Kit","http://www.javascriptkit.com","",0);
            Menu6_3=new Array("Freewarejava","http://www.freewarejava.com","",0);
            Menu6_4=new Array("Web Review","http://www.webreview.com","",0);

            Menu7=new Array("Contact Us","javascript:top.location.href='blank.htm'","",2);
            Menu7_1=new Array("E-Mail Support","mailto:[email protected]","",0,20,140);
            Menu7_2=new Array("1-866-234-CABLE","","",0);
            Bobby Sullivan


            • #7
              this line:
              Menu4_1_4=new Array("Return Information","http://www.cableboxtv.com/gifs2/return.html","",0);
              Menu4_1_5=new Array("Payment Information","http://www.cableboxtv.com/paymentmethod.html","",2);
              Menu4_2=new Array("Help Topics","","",5);

              you specified that there is a 2 submenus but there's none(there should be 4_1_5_1 and 4_1_5_2. you will need to change the bold to "0"

              if you have windows os, install a script debugger(download from microsoft) and it will catch errors like you have there.


              • #8
                Thank you very much....
                Bobby Sullivan