SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Invalid argument.. Bleh!

    There's something about this that I can't quite figure out. Help me, Javascript Gurus!


    // 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("Return to Ship","index.html","",0,20,138);

    Menu2=new Array("Captain\'s Log","rules.html","",0);

    Menu3=new Array("Member\'s Cove","","",2,20,150);
    Menu3_1=new Array("Tell a Shipmate","shipmate.html","",0);
    Menu3_2=new Array("Abandon Ship","logout.html","",0);

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Theres nothing wrong with the code you have showed us...
    What are you having a problem with?

    PHP Code:
          menu1   = new Array('Return to Ship''index.html'''020138);
          
    menu2   = new Array('Captain\'s Log''rules.html'''0);
          
    menu3   = new Array('Members Cove''' ,''220150);
          
    menu3_1 = new Array('Tell a Shipmate''shipmate.html'''0);
          
    menu3_2 = new Array('Abandon Ship''logout.html'''0); 

  3. #3
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hrm. Well, I have this script called HVMenu (from DynamicDrive.com) and I'm trying to customize it to fit a client's site. When I preview it in my browser it gives me the message "Invalid Argument"

  4. #4
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I ran this code and got no errors.

    The only thing that I can think of has to do with your optional arguements. You have this:

    Menu1=new Array("Return to Ship","index.html","",0,20,138);
    Menu2=new Array("Captain\'s Log","rules.html","",0);

    Have you tried including empty stubs for your optional arguements? Something like:

    Menu2=new Array("Captain\'s Log","rules.html","",0,0,0);
    or
    Menu2=new Array("Captain\'s Log","rules.html","",0,"","");

    See if that does 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
  •