I have struggled for a few days looking up this problem and have now joined this forum hoping for an answer. The site I designed is w3c compliant yet the ie browser, both 6 & 7, display the following error in the bottom left: "Done but with errors on page". When I click the error message the detail is as follows: Line: 73 Char: 208 Error: Unterminated string constant URL: http://www.lasewing.com All indicators have lead to a javascript problem. Any help would increase the amount of time before I go bald. Thanks, Larry
the problem is on this line in the opening <body> tag <body onload="MM_preloadImages('img/front.jpg.','img/Husqvarna-Viking_logo02.jpg','img/singer_logo_01.gif','img/designer_diamond_fp.jpg','img/hv_right_mainpage.gif,',img/singer_right_mainpage.gif,',img/myembroideries.gif)"> change it with this <body onload="MM_preloadImages('img/front.jpg','img/Husqvarna-Viking_logo02.jpg','img/singer_logo_01.gif','img/designer_diamond_fp.jpg','img/hv_right_mainpage.gif','img/singer_right_mainpage.gif','img/myembroideries.gif')">
Thanks. I can't figure out what you did, but I copied the code and the error is gone. Much obliged! Larry
difference is here ,'img/hv_right_mainpage.gif[COLOR="red"],',[/COLOR]img/singer_right_mainpage.gif,' Code (markup): 'img/hv_right_mainpage.gif[COLOR="red"]','[/COLOR]img/singer_right_mainpage.gif' Code (markup):
I am a new member and signed into this forum because I am currently struggling with the same error. In the initial post, I found that the <body onload="MM_preloadImages('img/front.jpg.',' had the period imbedded after .jpg. And the correction pointed to the ' ' ' ' , ' fix. BUT, the period after the .jpg had been deleted also. I am curious....would the period after the jpg play into the error also. If so, is this the type of errors for which I should be looking to resolve my issue? Thank you in advance.
Not sure anyone is still following this thread - but here's to hoping.. I'm having a similiar issue: Script Error Line: 1, Char 52, Error Unterminated string constant, Code: 0, I'm not a real computer techy geek, would love to know how to fix this so I use my program to get some work done! Thanks..
honestly, i don't use that preloader, it is generated by Dreamweaver, you can just remove it. it doesn't give any big effect to the page that you are doing.. found this article that teaches how to preload images..
@ChicagoMom: It would produce an error (x.jpg. isn't a valid filename) but a different one, not "unterminated string". @shiffenberg: Post line 1 and we'll see. This isn't something abyone can get by guessing.