<small id="60cm0"></small>
<small id="60cm0"></small>
<small id="60cm0"><wbr id="60cm0"></wbr></small>
<small id="60cm0"></small>
<div id="60cm0"></div><small id="60cm0"><div id="60cm0"></div></small>
<div id="60cm0"></div><div id="60cm0"><button id="60cm0"></button></div>
行業動態
flash自動適應分辨率、flash自適應分辨率
發布日期:2012-12-29 閱讀次數:3451 字體大?。?a href="javascript:;" onclick="ChangeFontSize('content',16)">大

采用JS的方式使網頁中的flash自動適應分辨率、flash自適應分辨率代碼如下

JavaScript代碼
  1. <script type="text/javascript" language="JavaScript">  
  2. e = true;  
  3. var myWidth = 0, myHeight = 0;  
  4. iftypeof( window.innerWidth ) == 'number' ) {  
  5. myWidth = window.innerWidth;  
  6. myHeight = window.innerHeight;  
  7. else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {  
  8. myWidth = document.documentElement.clientWidth;  
  9. myHeight = document.documentElement.clientHeight;  
  10. else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {  
  11. myWidth = document.body.clientWidth;  
  12. myHeight = document.body.clientHeight;  
  13. }  
  14. if (myWidth<800){  
  15. myWidth=800;  
  16. }  
  17. if (myHeight<580){  
  18. myHeight=580;  
  19. }  
  20.   
  21. myWidth=myWidth-10;  
  22. myHeight=myHeight-10;  
  23. document.write('<OBJECT id="flashMovie" data="http://shss.zhiga.com/content/shss/uploadfiles/ydy.swf?myWidth='+ myWidth +'&myHeight='+ myHeight +'" type="application/x-shockwave-flash" WIDTH="'+ myWidth + '" HEIGHT="' + myHeight + '">');  
  24. document.write('<PARAM NAME=movie VALUE="http://shss.zhiga.com/content/shss/uploadfiles/ydy.swf?myWidth='+ myWidth +'&myHeight='+ myHeight +'">');  
  25. document.write('<PARAM NAME="FlashVars" VALUE="allowResize='+e+'" />');  
  26. document.write('<PARAM NAME=quality VALUE=high>');  
  27. document.write('<param name="BGCOLOR" value="#d3d3d3" />');  
  28. document.write('<EMBED src="http://shss.zhiga.com/content/shss/uploadfiles/ydy.swf?myWidth='+ myWidth +'&myHeight='+ myHeight +'" quality=high bgcolor="#d3d3d3"  WIDTH="'+ myWidth + '" HEIGHT="' + myHeight + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');  
  29. document.write('</OBJECT>');  
  30. </script>  

 

a曰本va欧美va视频|国产剧情顶级私人订制失踪|狠狠久久亚洲欧美专区|久久99热精品深田咏美|亚洲国产一区二区三区
<small id="60cm0"></small>
<small id="60cm0"></small>
<small id="60cm0"><wbr id="60cm0"></wbr></small>
<small id="60cm0"></small>
<div id="60cm0"></div><small id="60cm0"><div id="60cm0"></div></small>
<div id="60cm0"></div><div id="60cm0"><button id="60cm0"></button></div>