jdhellkin
06-08-2003, 06:34 PM
Ok, I have been trying to get a flash slide show to be embedded in my page, but I also really want it to validate correctly (w3). I learned that using html would not get me anywhere at all, so then I tried using javascript. However, now when I go to validate it, it questions the following: document.write ('</EMBED>'); and document.write ('</OBJECT>'); (saying that the element is not open). Is there anyway I can fix this so it validates? Thanks a lot!!
Here is what I am using:
<SCRIPT type="text/javascript">
document.write
('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write
('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write
('WIDTH="580" HEIGHT="480" id="100" ALIGN="middle">');
document.write
('<PARAM NAME="movie" VALUE="100.swf">');
document.write
('<PARAM NAME="play" VALUE="false">');
document.write
('<PARAM NAME="loop" VALUE="false">');
document.write
('<PARAM NAME="quality" VALUE="best">');
document.write
('<PARAM NAME="bgcolor" VALUE="#000000">');
document.write
('<EMBED img src="100.swf" play="false" loop="false" quality="best" bgcolor="#000000" WIDTH="580" HEIGHT="480" NAME="100" ALIGN="middle"');
document.write
('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write
('</EMBED>');
document.write
('</OBJECT>');
</SCRIPT>
Here is what I am using:
<SCRIPT type="text/javascript">
document.write
('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write
('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write
('WIDTH="580" HEIGHT="480" id="100" ALIGN="middle">');
document.write
('<PARAM NAME="movie" VALUE="100.swf">');
document.write
('<PARAM NAME="play" VALUE="false">');
document.write
('<PARAM NAME="loop" VALUE="false">');
document.write
('<PARAM NAME="quality" VALUE="best">');
document.write
('<PARAM NAME="bgcolor" VALUE="#000000">');
document.write
('<EMBED img src="100.swf" play="false" loop="false" quality="best" bgcolor="#000000" WIDTH="580" HEIGHT="480" NAME="100" ALIGN="middle"');
document.write
('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write
('</EMBED>');
document.write
('</OBJECT>');
</SCRIPT>