今天商務給了個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.49028c.com/channel/Ielts/images/langge.swf">
<param name="quality" value="high">
<embed src="http://www.49028c.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>
<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.49028c.com/n0711131031107520" target="_blank"><img src="http://www.49028c.com/channel/Ielts/images/touming.gif" width="100%" height="100%" border="0"></a>
</div>
新聞熱點
疑難解答