首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

flash下监听onclick事件的方法

2012-10-13 
flash上监听onclick事件的方法感谢万能的 stackoverflow在object的内嵌flash上捕捉onclick事件1) Set the

flash上监听onclick事件的方法

感谢万能的 stackoverflow

在object的内嵌flash上捕捉onclick事件
1) Set the param wmode to transparent. This allows the object containing the flash to receive the javascript onclick.
2) Use onmousedown insted of onclick. In spite of using wmode transparent, some browsers still wont call? the onclick, but they do call onmousedown.

<div onmousedown="clickBanner(1)"><object><param name="movie" value="3.swf"><param name="wmode" value="transparent" /><embed wmode=transparent allowfullscreen="true" allowscriptaccess="always" src="3.swf"></embed></object></div>



?

热点排行