`
xieye
  • 浏览: 842086 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

给flash加onclick事件

    博客分类:
  • PHP
阅读更多

主要方法是在flash上再套几个div,然后用透明gif,(也是网上的建议)

 

在IE6 和IE7和firefox下均测试过,效果还行

见附件flash_onclick.zip

 

xieye

 

 

需要修改:

<div   style="z-index:9999; position: absolute; width: 714px; height: 90px; left: 0px; top: 0px; cursor: pointer;  opacity: 1;  filter:alpha(opacity=1);">
        <a  target="_blank" href="http://g.cn">
        	<img style="border:0px " src="spacer.gif" width="714" height="90" />
	</a>
</div>
  见上面代码,给img在加一个a链接,可以实现在新窗口打开链接,成功测试过。
分享到:
评论
1 楼 lydawen 2009-02-13  
看来这基本是唯一最好的解决方法了,头疼很久了

相关推荐

Global site tag (gtag.js) - Google Analytics