100%Flash - xhtml1.0


/ Published in: HTML
Save to your folder(s)

FirefoxはHTML4.0以外のDOCTYPE宣言つけると100%表示のFlashが一部しか表示されないバグがあるそう。
参考サイト
http://uu-uu.com/blog/2006/10/flash_100another_htmllint.html


Copy this code and paste it in your HTML
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>sample</title>
  5. <script src="/pathto/AC_RunActiveContent.js" type="text/javascript"></script>
  6. <script src="/pathto/AC_ActiveX.js" type="text/javascript"></script>
  7. <style type="text/css">
  8. <!--
  9. body {
  10. margin:0;
  11. padding:0;
  12. position:absolute;
  13. width:100%;
  14. height:100%;
  15. }
  16. -->
  17.  
  18. </head>
  19. <script type="text/javascript">
  20. AC_FL_RunContent(
  21. 'codebase',
  22. 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
  23. 'width','100%',
  24. 'height','100%',
  25. 'src','filename',
  26. 'quality','high',
  27. 'pluginspage','http://www.macromedia.com/go/getflashplayer',
  28. 'wmode','opaque',
  29. 'movie','filename'
  30. ); //end AC code
  31. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="sample" align="middle">
  32. <param name="allowScriptAccess" value="sameDomain" />
  33. <param name="movie" value="sample.swf" />
  34. <param name="quality" value="high" />
  35. <embed src="sample.swf" quality="high" width="100%" height="100%" name="sample" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  36. </object>
  37. </body>
  38. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.