zoukankan      html  css  js  c++  java
  • 给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; 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,放在上层.
           这样就可以了.
  • 相关阅读:
    foj 2111 Problem 2111 Min Number
    hdoj 1175 连连看
    poj 2377 Bad Cowtractors
    poj 3666 Making the Grade
    2018华南理工大学程序设计竞赛 H-对称与反对称
    hdoj 4293 Groups
    FOJ Problem 2273 Triangles
    poj 3411 Paid Roads
    Codeforces 235A. LCM Challenge
    离散对数二连 poj 2417 Discrete Logging & HDU 2815 Mod Tree
  • 原文地址:https://www.cnblogs.com/qfb620/p/1082498.html
Copyright © 2011-2022 走看看