Today, the businessman gave me a flash and asked me to upload it to the Internet and add a link. Then I found that directly adding <a></a> links to flash was invalid. I looked at the attributes in it and found that there were none, so Baidu I added a flash link to the HTML and found a piece of rubbish code (and this rubbish code is everywhere, and there are HTML tutorials, etc., all written like this), I will post it to take a look, it is rubbish:
<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>
Don't use it, it's rubbish. I don't know why this code is passed around and quoted everywhere. I'm very angry. What do programmers do? If you don't use code that doesn't work, just reprint it without seeing the effect yourself. , I felt really unhappy about deceiving knowledge seekers on the Internet, so I wrote it myself. I found that it was not that easy. I had to make a transparent picture. With the help of a transparent layer and a transparent picture, I could add a hyperlink. This is what I wanted. There is no need to explain the effect. Let’s look at the effect and code below. If you think it can be copied, copy it. China Self-Study Programming Network, www.zxbc.cn, I hope it will be helpful to you.
Effect:
Code: <div style=z-index:-1> <!--1. Set FLASH as the bottom layer-->
<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.vevb.com/channel/Ielts/images/langge.swf>
<param name=quality value=high>
<embed src=http://www.vevb.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 must be set to transparent-->
</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.vevb.com/n0711131031107520 target=_blank><img src=http://www.vevb.com/channel/Ielts/images/touming.gif width=100% height=100% border=0></a>
</div>