View Full Version : Script: Ultimate Fade-in slideshow (v1.5)

02-06-2006, 02:57 PM
Script: Ultimate Fade-in slideshow (v1.5)

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.


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


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


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


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,


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

02-06-2006, 08:33 PM
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: