给网页中swf动画添加链接代码
增加<button>标签,如:
<button onclick="window.open('http://www.bokee.net)" style="border:0px;width:472px;height:48px;background:background-color" >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="472" height="48">
<param name="movie" value="http://www.boke.net//pagemodule/images/ad/ad1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<param name="wmode" value="#457fa8" />
<embed src="http://www.boke.net/pagemodule/images/ad/ad1.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="472" height="48" wmode="transparent">
</embed>
</object>
</button>
说明:
1、必须增加<param name="wmode" value="transparent"> 这个属性
设置flash为透明,否则会把button遮盖住。
2、button的大小尺寸与flash一致
3、window.open 是打开新窗口,本窗口打开为locationl.href=''''
4、background:background-color ----这一句是让 button背景透明