Results 1 to 2 of 2

Thread: Script: Ultimate Fade-in slideshow (v1.5)

  1. #1
    Join Date
    Feb 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script: Ultimate Fade-in slideshow (v1.5)

    Script: Ultimate Fade-in slideshow (v1.5)
    http://www.dynamicdrive.com/dynamici...nslideshow.htm


    Hi lads!

    I recently added this slideshow to my index page (http://www.guillaumedelaby.com) but, for some reason, a download window pops up in IE (6.0) anytime I'm connecting to the website. Instead of displaying the homepage (and the slideshow), it is detected by IE as a downloadable file of an unidentified type. Everything works perfectly if I'm using my Firefox navigator, but I have to cancel twice or thrice this messy download alert in IE if I want my index page to be eventually shown properly. I used the w3c html validator to check my code, and I got these results (5 errors which I'm not able to correct myself):


    This page is not Valid HTML 4.01 Transitional!

    Below are the results of attempting to parse this document with an SGML parser.

    1. Error Line 52 column 390: end tag for element "DIV" which is not open.

    ...ckground-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occured in a script section of your document, you should probably read this FAQ entry.


    2. Error Line 52 column 621: end tag for element "DIV" which is not open.

    ...ckground-color:'+fadebgcolor+'"></div></div>')


    3. Error Line 52 column 627: end tag for element "DIV" which is not open.

    ...nd-color:'+fadebgcolor+'"></div></div>')


    4. Error Line 54 column 104: end tag for element "DIV" which is not open.

    ...rc="'+this.postimages[0].src+'"></div>')


    5. Error Line 94 column 15: end tag for element "A" which is not open.

    slideHTML+='</a>'


    Could any geek in here check my index (http://www.guillaumedelaby.com) and/or the code of my index.html? That would be a real help: I'm desperate! ;-)
    Thanks a lot,

    Guillaume

    P.S. Herewith is a copy of my code... Thanks a million again!
    ======================================================

  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

    All those errors are due to the validator thinking that code in the javascript is regular HTML code. Therefore, technically they are not true errors rather, artifacts of the validator's incomplete code parsing algorithms. They can still be easily resolved by escaping the / in those 'offending' closing tags, ex:

    Code:
    <\/div>
    - John
    ________________________

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

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
  •