在网页中给Flash加上超级链接

December 09, 2023
测试
测试
测试
测试
5 分钟阅读

思路:

用二个div层,一个放flash,一个放一张透明的图片,放flash的层放在下面,放透明图片的层用绝对定位叠加在flash上方,点击flash时,实际上点击的是flash层上的透明图片层

<style type="text/css">
 *{
 padding:0;
 margin:0
 }
 </style>
 <div style="z-index:-1"><!--1.设置FLASH为底层--> 
 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="179" height="90" id="object1" align="center">
 <param name="allowscriptaccess" value="samedomain" />
 <param name="movie" value="http://images.cntvs.com/product/default/banner5.swf" />
 <param name="quality" value="high" />
 <param name="bgcolor" value="#ffffff" />
 <param name="allowfullscreen" value="true" />
 <param name="wmode" value="transparent" />
 <embed src="http://images.cntvs.com/product/default/banne5.swf" quality="high" bgcolor="#ffffff" width="179" height="90" name="banner2" align="center" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
 </div>
 <div id="huiLayer" style="cursor: hand; position:absolute; left:0px; top:0px; width:179px; height:90px; z-index:1; visibility: visible;">
 <a href="http://www.sqlsky.com"> 
 <img src="https://img.uali.cn/20231209/spacer.gif" width="200" height="115" border="0" alt="跳转到菩提树下的杨过"></a></div>

继续阅读

更多来自我们博客的帖子

如何安装 BuddyPress
由 测试 December 17, 2023
经过差不多一年的开发,BuddyPress 这个基于 WordPress Mu 的 SNS 插件正式版终于发布了。BuddyPress...
阅读更多
Filter如何工作
由 测试 December 17, 2023
在 web.xml...
阅读更多
如何理解CGAffineTransform
由 测试 December 17, 2023
CGAffineTransform A structure for holding an affine transformation matrix. ...
阅读更多