让Flash也有Onclick的方法

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 liuhuidev 的 blog

    大家都知道图片上是可以添加链接的,也就是在图片<img src=''>两边添加<a href=''></a>,而flash则不可以这样做的,所以只能使用其它方法了,方法之一:在flash的object两边添加<button></botton>,如下:

<button onclick="location.href='http://www.163.com'">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="493" height="138">
                    <param name="movie" value="index.swf">
                    <param name="quality" value="high">
                    <param name="wmode" value="transparent">
                    <embed src="images/index.swf" width="493" height="138" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object></button>

本文关键:让Flash也有Onclick的方法
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top