当前位置: 代码迷 >> HTML/CSS >> 请问啊这段FLASH幻灯片为什么只能在IE浏览器显示啊
  详细解决方案

请问啊这段FLASH幻灯片为什么只能在IE浏览器显示啊

热度:111   发布时间:2012-08-29 08:40:14.0
请教求助啊。。这段FLASH幻灯片为什么只能在IE浏览器显示啊?
09年的代码,
只能在IE里能正常显示,在CHROME等里是空白的,什么都显示不出来,只有网页背景。

谢谢了,祝程序员身体健康。

JScript code


<script type="text/javascript">
 var focus_width=234
 var focus_height=220
 var text_height=25
 var swf_height = focus_height+text_height
 //var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
 var pics="Upload/Pic/测试图片1.jpg|Upload/Pic/测试图片2.jpg|Upload/Pic/测试图片3.JPG"
 var links="Products.asp?Id=41|Products.asp?Id=42|Products.asp?Id=43"
 var texts="测试图片1|测试图片2|测试图片3"
 
 document.write('<object 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/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F5E2D3">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('</object>');
 </script>






------解决方案--------------------
HTML code

<script type="text/javascript">
 var focus_width=234
 var focus_height=220
 var text_height=25
 var swf_height = focus_height+text_height
 //var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
 var pics="Upload/Pic/测试图片1.jpg|Upload/Pic/测试图片2.jpg|Upload/Pic/测试图片3.JPG"
 var links="Products.asp?Id=41|Products.asp?Id=42|Products.asp?Id=43"
 var texts="测试图片1|测试图片2|测试图片3"
 
 document.write('<object 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/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F5E2D3">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('<embed src="images/focus1.swf" width="'+ focus_width +'" height="'+ swf_height +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"  type="application/x-shockwave-flash" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"></embed>');      
 document.write('</object>');
 </script> 
  相关解决方案