PDA

View Full Version : A little help to save my slideshow Please!



Fancy
02-09-2008, 09:15 PM
Ultimate Fade-in Slideshow v1.5
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

I'm working within some very strict limitations (no choice but to use FrontPage to access the server displaying the WebPages and fadeshow), and I am very close to getting the page to pass w3c validation. This is required as part of the California Community College guidelines for WebPages. I do not want to give up the little fade show on my department's page within the college's website: http://www.grossmont.edu/earthsciences/ but I cannot work around the 5 remaining errors that the validator simply will not allow:

3 of 5 errors occur in this line of code pasted below: The errors states: end tag for element "DIV" which is not open.

document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div> </div>')

Error number 4 is similar but on this line:
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"> </div>')

And the final error is this one: end tag for element "A" which is not open
slideHTML='</a>'

I understand these are not true errors within the code and its working great, but I do have this requirement to pass the validation process and if there is no work-around, or fix for this, I have to remove the slideshow which we all enjoy. I have tried using a comment to call up the javascript as a src file but I'm having no success with that either. If anyone knows a way to solve this a whole bunch of us at the college would be very grateful! Its not always fun working with outdated software, and within the imposed restrictions...we just want our slideshow!

Thanks much!

Fancy
PS...I am so sorry about the smilies I dont know how to shut them off and the pasting of the code created them... bah! sucks to me new.

jscheuer1
02-09-2008, 09:32 PM
Those 'errors' can all be made to go away by escaping the / with a \. Like so:


<\/div>

Fancy
02-10-2008, 02:04 AM
You have no clue how many hours I spent trying to solve that little problem just to keep my slideshow! Thank you so much! :) <--intentional smilie face