Posted By

daisuke103 on 12/25/08


Tagged

js textmate asflashhtmlscriptswfembed


Versions (?)

JS フルFlashで指定の位置でサイドバーを出す


 / Published in: Other
 

  1. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <title>xxxxxxxxx</title>
  5. <style type="text/css" media="screen">
  6. body,h1,h2,p,li,ul,table{
  7. margin:0;
  8. padding:0;
  9. }
  10. </style>
  11. <script type="text/javascript" charset="utf-8">
  12. function resize(){
  13. var minHeight= 768;
  14. var w;
  15. var h;
  16. var flashBox = document.getElementById("flash");
  17. if(document.all){ // IE用
  18. w = document.body.clientWidth;
  19. h = document.body.clientHeight;
  20. }else{
  21. w = innerWidth;
  22. h = innerHeight;
  23. }
  24. if(h>minHeight){
  25. flashBox.style.height = h+"px";
  26. }else{
  27. flashBox.style.height = minHeight+"px";
  28. }
  29. }
  30. </script>
  31. </head>
  32. <body bgcolor="#000000" onload="resize();" onresize="resize();" >
  33. <div id="flash" style="height:768px">
  34. <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="xxxxxxxxx" align="middle">
  35. <param name="allowScriptAccess" value="sameDomain" />
  36. <param name="movie" value="xxxxxxxxx.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="xxxxxxxxx.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="xxxxxxxxx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  37. </object>
  38. </div>
  39.  
  40. </body>
  41. </html>

Report this snippet  

You need to login to post a comment.