-- 作者:kunlin
-- 发布时间:6/15/2008 8:26:00 PM
-- 大家请帮忙
怎样插入FLASH幻灯片代码才能符合W3C的标准呢,下面是一段FLASH幻灯片代码: <script type="text/javascript"> imgUrl1="images/3.jpg"; imgUrl2="images/2.jpg"; imgUrl3="images/7.jpg"; imgUrl4="images/4.jpg"; imgUrl5="images/5.jpg"; var focus_width=164 var focus_height=306 var swf_height = focus_height var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5 document.write('<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+focus_width+'" height="'+swf_height+'">'); document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="images/focus.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#F0F0F0" />'); document.write('<param name="menu" value="false" /><param name="wmode" value="opaque" />'); document.write('<param name="FlashVars" value="pics='+pics+'&borderwidth='+focus_width+'&borderheight='+focus_height+'" />'); document.write('</object>'); </script> 在验证标准时,红色哪一行提示错误,不能通过,错误为:document type does not allow element "object" here
|