Need Help!

Discussion in 'Software' started by thebutterfly, Feb 7, 2006.

  1. thebutterfly

    thebutterfly Private E-2

    Hey There,

    So I am now reminded why I do not use pre-made template systems. I need to support a website that used the old Halo Left Nav system - it has a javascript error that modzilla says is on line 35. I am looking and looking and cannot see where the problem is.

    The script (line 35 in purple)
    Code:
    <script type="text/javascript">
    <!--
    var time = 3000;
    var numofitems = 7;
    
    //menu constructor
    function menu(allitems,thisitem,startstate){ 
      callname= "gl"+thisitem;
      divname="subglobal"+thisitem;  
      this.numberofmenuitems = 7;
      this.caller = document.getElementById(callname);
      this.thediv = document.getElementById(divname);
      this.thediv.style.visibility = startstate;
    }
    
    //menu methods
    function ehandler(event,theobj){
      for (var i=1; i<= theobj.numberofmenuitems; i++){
        var shutdiv =eval( "menuitem"+i+".thediv");
        shutdiv.style.visibility="hidden";
      }
      theobj.thediv.style.visibility="visible";
    }
    				
    function closesubnav(event){
      if ((event.clientY <48)||(event.clientY > 107)){
        for (var i=1; i<= numofitems; i++){
       [COLOR="Purple"] var shutdiv =eval('menuitem'+i+'.thediv');[/COLOR]      shutdiv.style.visibility='hidden';
        }
      }
    }
    // -->
    </script>
    the web address: http://greatbaylimo.com/ - the problem is on all the pages. Anyone know what's up w/ it?

    THANKS!
     
  2. Raits

    Raits Private E-2

    I don't quite understand what the javascript code is supposed to hide/make visible again?
     
  3. thebutterfly

    thebutterfly Private E-2

    The image behind the text is what becomes highlighted.
     
  4. Raits

    Raits Private E-2

    Where exactly, behind what text? Behind the menu links?
     
  5. thebutterfly

    thebutterfly Private E-2

    I believe it is the image (a gradiant of white) behind the text of the menu items that is what is hidden/made visiable. The error is "menuitem1 is not defined" but I see menu item 1 in the code.
     
  6. Raits

    Raits Private E-2

    No, if you remove all the javascript the gradien still works and you don't have the error -> clicky.
     
  7. thebutterfly

    thebutterfly Private E-2

    You're WONDERFUL! Thank you. I cant believe I looked for everything else but that. THANK YOU SO MUCH
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds