Results 1 to 6 of 6

Thread: Menu problem

  1. #1
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Menu problem

    I am trying to use one of ur menus. I customized them and everything works... except online. When I surf to my webpage I get the following error: "StartTop is not defined" and I cant see the menu (while I can see it off-line). What am I doing wrong?

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Which menu? Are you using multiple scripts?

    Refer to the forum stickies about how to lay out your post and then report back.
    A link is in bold red in my signature.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HV Menu v5.5

    I get the message: StartTop is not defined

    var M_StrtTp=StartTop,M_StrtLft=StartLeft;

    ....

    function ClcTrgt(){
    var TLoc=Nav4?FrstLoc.document.layers[TargetLoc]omYes?FrstLoc.document.getElementById(TargetLoc):FrstLoc.document.all[TargetLoc];
    StartTop=M_StrtTp;
    StartLeft=M_StrtLft;
    if(DomYes){
    while(TLoc){StartTop+=TLoc.offsetTop;StartLeft+=TLoc.offsetLeft;TLoc=TLoc.offsetParent}}
    else{ StartTop+=Nav4?TLoc.pageY:TLoc.offsetTop;StartLeft+=Nav4?TLoc.pageX:TLoc.offsetLeft}}



    Funny thing is, Offline it works fine
    Last edited by koenbosquet; 11-16-2004 at 01:44 PM. Reason: not in english...

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This may be because the menu.js (or similar) file can't be found by the script.
    Check your online paths.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Jan 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Script error start top is undefined

    Hi, I was having the same error message.

    I'm using Menubuilder and the webpage loads fine when on the local HD

    I have 2 java scripts

    The first hold the variable values and the second hold the functions.

    I copied the variable in to the script that hold the functions but I still get the error but at a different line number. This would imply that the script is being read.

    Any help would be welcome or if someone can tell me another program that I can use to create the menu.

    Thanks

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hi Niceguy:
    Unfortunately if you have 2 JavaScripts on the same page, that's most likely the cause of the problem- a script conflict. You'll need to try removing one of them to see if that changes anything.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •