给flash加上连接

<div style="z-index:-1">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="60" title="flash">
          <param name="movie" value="<%= ResolveUrl("~/xxx.swf") %>" />
          <param name="quality" value="high" />
          <embed src="<%= ResolveUrl("~/xxx.swf") %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="60"></embed>
          <param name="wmode" value="transparent">
        </object>
</div>
<div id="shdiv" style="cursor: pointer; position:absolute; left:20px; top:50px; width:300px; height:60px; z-index:1; visibility: visible;"><a href="<%= ResolveUrl("~/Default.aspx?id=xx")%>">
<asp:Image ID="image1" runat="server" ImageUrl="~/kong.gif" Width="300" Height="60" /></a></div>

说明:第一个div是放swf文件的,并让它透明(transparent),此div的z-index为-1;放在底层.
       第二个div是个超级连接的作用,但要放张gif的透明图片,宽高和swf文件一样,z-index为1,放在上层.
       这样就可以了.

你可能感兴趣的:(Flash)