View Full Version : 'object expected' error

01-15-2003, 02:26 PM
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.:rolleyes:

01-15-2003, 03:06 PM
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

01-15-2003, 08:19 PM
i have discovered it and now i saw that u suggested the same...

cheers mate :thumbsup: