Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2003
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy 'object expected' error

    mm_menu_0115121908_0.addMenuItem("on", " document.images["image1"].src = "me.gif" ");

    When i try this javascript it gives and object expected error but i couldn't find where the error is.

    Can anyone see where i did the mistake?

    ps= i used this js for swapping the image if on option is selected from the menu.

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Surrey, UK
    Posts
    119
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your quotes don't seem to match logically. I'd guess if you try this:
    mm_menu_0115121908_0.addMenuItem("on", " document.images['image1'].src = 'me.gif' ");
    Be careful of double quotes within double quotes

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    i have discovered it and now i saw that u suggested the same...

    cheers mate


  •  

    Posting Permissions

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