dcsimg
www.webdeveloper.com
Results 1 to 12 of 12

Thread: Keep getting error

  1. #1
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141

    Keep getting error

    Hey on my web site that i have created i keep getting an error and i think it has something to do with the preloading of the images.

    If anybody could help by having a wee look at the code it would be appreciated.

    Cheers
    Chris Sharkey

    MY SITE

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    I'm showing an unterminated string error on this line:

    <body onLoad="MM_preloadImages('images/1tv.jpg,images/2tv.jpg,images/3tv.jpg,
    images/tv.gif,images/4tv.jpg,images/5tv.jpg,images/6tv.jpg,images/7tv.jpg,images/8tv.jpg,images/17tv.jpg,images/9tv.jpg')" bgcolor="black" text="#ffaf00" link="#ffad00" vlink="#ffad00" alink="#ffad00" leftmargin="2px" rightmargin="2px">

  3. #3
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141
    Cheers for replying the bear may but as i dont know much about javascript what is an unterminated string please?


    Cheers again

  4. #4
    Join Date
    Jan 2004
    Location
    Washington DC
    Posts
    1,107

    Your string is breaking

    You can't break your onload event into 2 lines:

    <body onLoad="MM_preloadImages('images/1tv.jpg,images/2tv.jpg,images/3tv.jpg,images/tv.gif,images/4tv.jpg,images/5tv.jpg,images/6tv.jpg,images/7tv.jpg,images/8tv.jpg,images/17tv.jpg,images/9tv.jpg')" bgcolor="black" text="#ffaf00"
    link="#ffad00" vlink="#ffad00" alink="#ffad00" leftmargin="2px" rightmargin="2px">

  5. #5
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141
    Cheers for that it is very appreciated.

    Thanks again

  6. #6
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141
    Hey it wont let me fit it on one line? What do i do?

    Cheers

  7. #7
    Join Date
    Jan 2004
    Location
    Washington DC
    Posts
    1,107

    What is "it"?

    What is the "it" you are referring to?

  8. #8
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141
    It wont let me fit this ('images/1tv.jpg,images/2tv.jpg,images/3tv.jpg,images/tv.gif,images/4tv.jpg,images/5tv.jpg,images/6tv.jpg,images/7tv.jpg,images/8tv.jpg,images/17tv.jpg,images/9tv.jpg')" onto 1 line it keeps breaking up.

    Cheers

  9. #9
    Join Date
    Jan 2004
    Location
    Washington DC
    Posts
    1,107

    Again...

    Again, what is "it"? A web editor, notepad, Dreamweaver?

  10. #10
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141
    Sorry mate didnt understand you the first time. I am using just standard notepad.

    Cheers again

  11. #11
    Join Date
    Jan 2004
    Location
    Washington DC
    Posts
    1,107

    turn off word wrap

    turn off word wrap under "Format->Word Wrap"

  12. #12
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,141
    Cheers thats it working now.

    Thanks again
    Chris Sharkey

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles