zoukankan      html  css  js  c++  java
  • 显示与隐藏

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <style type="text/css">
    <!--
    #Layer1 {
        position:absolute;
        width:200px;
        height:115px;
        z-index:1;
        left: 1126px;
        top: 134px;
    }
    #Layer2 {
        position:absolute;
        width:35px;
        height:16px;
        z-index:2;
        left: 1287px;
        top: 138px;
    }
    #Layer3 {
        position:absolute;
        width:33px;
        height:24px;
        z-index:3;
        left: 1292px;
        top: 210px;
    }
    -->
    </style>
    <script type="text/javascript">
    function OnlineUp()
    {
     document.getElementById("Layer1").style.display="none";
     document.getElementById("Layer2").style.display="none";
     document.getElementById("Layer3").style.display="block";
    }
    function OnlineDown()
    {
     document.getElementById("Layer1").style.display="block";
     document.getElementById("Layer2").style.display="block";
     document.getElementById("Layer3").style.display="none";
    }
    </script>
    </head>
    
    <body>
    <div id="Layer1" style=" background-image:url(广告窗口/可展开滚动的QQ客服代码/images/qq/qq_1.png)"></div>
    <div id="Layer2" onclick="OnlineUp()">关闭</div>
    <div id="Layer3" onclick="OnlineDown()">打开</div>
    </body>
    </html>
  • 相关阅读:
    WebForm中使用MVC
    CPAN镜像使用帮助
    关于XML文档的xmlns、xmlns:xsi和xsi:schemaLocation
    XML之命名空间的作用(xmlns)
    xml相关术语说明
    .NET Core系列 : 1、.NET Core 环境搭建和命令行CLI入门
    BZOJ3734 : [Ontak2013]Miny
    BZOJ3448 : [Usaco2014 Feb]Auto-complete
    BZOJ3476 : [Usaco2014 Mar]The Lazy Cow
    BZOJ3619 : [Zjoi2014]璀灿光华
  • 原文地址:https://www.cnblogs.com/feiguo/p/2535034.html
Copyright © 2011-2022 走看看