it's giving me grief and unforunately i *have* to get the page to validate! So I hope someone will help.
I've currently got a bit of javascript to detect if the user has a good enough version and then display the movie, otherwise it shoudl just display a static image.
So far the relevant code is:
Code:
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='640' height='160' id='ftMc' align='middle'>");
document.write("<param name='allowScriptAccess' value='sameDomain'>");
document.write("<param name='movie' value='flashIntro.swf' >");
document.write("<param name='loop' value='false' >");
document.write("<param name='quality' value='high' >");
document.write("<param name='bgcolor' value='#fcd957' >");
document.write("<embed src='flashIntro.swf' loop='false' quality='high' name='ftMc' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
document.write("</object>");
The WC3 validator just insists on telling me that I have closed the OBJECT tag without opening it!
However, I took it out of the javascript bit, and I get even more errors - most of the EMBED tag attributes arent recognised for some reason.
Any help, suggestions or pointers would be greatly appreciated.
Cheers.