Results 1 to 5 of 5

Thread: HV Menu with Javascript

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

    Angry HV Menu with Javascript

    I am having problems getting my window to open using javascript with the HV Menu. I keep getting a javascript expected ";" error. I have tried everything I can think of. Can anyone let me know what I'm missing? The normal link works in as a regular link on the page, but I can't seem to get it to work in the HV Menu.
    This is the Menu item:

    Menu5=new Array("NextWheels Online","javascript:{void(0); OnClick='window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm';'miniwin';'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0, resizable=0, width=789, height=569,top=0,left=0'';} ","",0,30,100);

    This is what it looks like as a normal link on the page.

    <p align="center"><a href="javascript:void(0)" onClick="window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=789,height=569,top=0,left=0')">
    <strong><font size="3" face="Verdana, Arial, Helvetica, sans-serif"><em>*Your NextWheels Online*</em> </font></strong></a></p>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    Menu5=new Array("NextWheels Online","javascript:window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm';'miniwin';'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0, resizable=0, width=789, height=569,top=0,left=0')","",0,30,100);
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John Thank you for your reply.

    I'm still getting the - Error:Expected ')' Any other suggests?

    Nancy

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Ooops, that's what I get for copying your work and not looking closely enough at it or testing it after I 'fixed' it. This works fine here:
    Code:
    Menu5=new Array("NextWheels Online","javascript:window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0, resizable=0, width=789, height=569,top=0,left=0')","",0,30,100);
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    Default

    John Thank you Thank you Thank you

    Nancy

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
  •