您当前的位置:黑客软件园网络学院站长学院ASP教程ASP实例 → 給flash加超链接的方法

給flash加超链接的方法

来源:不详  作者:佚名  时间:2008-12-21 13:58:05 发布:黑客软件园

      今天商务給了个flash,要我传到网上去,而且加个链接,于是乎,发现flash直接加<a></a>链接是无效的,再看看里面的属性,也没有,于是百度一下“HTML添加flash链接”,搜索到一个垃圾代码(而且到处都是这个垃圾代码的身影,还什么HTML教程等等,都是这么写),我給贴进来看看,垃圾:

<button style=\"width:400;height:400;background:transparent;border:o;padding:0;cursor:hand\" onclick=\"window.location.href=\'url\'\">
<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=\"100%\" height=\"100%\">
             <param name=\"movie\" value=\"http://www.ywicc.com/bbs/img/ant.swf\">
             <param name=\"quality\" value=\"high\">
             
             <embed src=\"FLash\" width=\"100%\" height=\"60\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" align=\"middle\">
               </embed>
            </object>
</button> 

 
     不要用,这是个垃圾,我不知道为什么这个代码被到处传,到处引用,我很是气愤,编程的人都是干嘛的,不能用的代码,自己不去看看那效果,就去转载,欺骗网上的求知者,实在不爽,于是自己写了,发现不是那么的容易,还得做个透明的图片,借助一个透明层,一个透明图片,就可加超链接了,这才是我要的效果,不用多解释,还是看下面的效果和代码吧,觉得可以就复制过去,中国自学编程网,www.zxbc.cn ,希望对你有帮助

效果:

\"\"

代码:<div style=\"z-index:-1\"> <!--1.设置FLASH为底层-->
 <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=\"960px\" height=\"81px\">
 <param name=\"movie\" value=\"http://www.114study.com/channel/Ielts/images/langge.swf\">
 <param name=\"quality\" value=\"high\">
 <embed src=\"http://www.114study.com/channel/Ielts/images/langge.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"960px\" height=\"81px\"></embed> [Page]
 <param name=\"wmode\" value=\"transparent\"> <!--2.必须把FLASH设置为透明-->
 </object>
</div>
<div id=\"huiLayer\" style=\"cursor:hand; position:absolute;margin-top:-81px;width:960px; height:81px; z-index:1; visibility: visible;\">
 <a href=\"http://www.114study.com/n0711131031107520\" target=\"_blank\"><img src=\"http://www.114study.com/channel/Ielts/images/touming.gif\" width=\"100%\" height=\"100%\" border=\"0\"></a>
</div>  

[]

相关文章
广告赞助
相关阅读