Tuesday, March 6, 2012

[HTML] 如何在網頁中嵌入Flash 以及 如何讓flash不要擋到選單

如何在網頁中嵌入Flash:
<object width="425" height="344">
  <param name="movie" value=" test.swf "></param>
  <param name="allowFullScreen" value="true"></param>

  <param name="allowscriptaccess" value="always"></param>
  <embed src="
test.swf " type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>

</object>

更多說明請見...
網頁 Flash 最佳嵌入方式

Flash / HTML Object 標籤的 classid 如何寫?


如何讓flash不要擋到選單:
修改上面的程式當範例

<object width="425" height="344">
  <param name="movie" value=" test.swf "></param>
  <param name="allowFullScreen" value="true"></param>

  <param name="allowscriptaccess" value="always"></param>
  <param  name="wmode" value="transparent"></param> 
  <embed src="
 test.swf " type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" 
wmode="transparent" width="425" height="344"></embed>
</object>


更多說明請見...
網頁裡的<param name="wmode" value="transparent">是什麼意思?

No comments:

Post a Comment