本帖最后由 huxiweng 于 2013-11-01 15:09:26 编辑

解决方案 »

  1.   

    大概改了下。里面还需要重写 。有些会有冲突的。<!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>
        <title>Introduction to the GNSS and LBS Association of China</title>
       <script type="text/javascript" language="javascript">
        var time = 500;
        var h = 0;
        function addCount()
        {
            if(time>0)
            {
                time--;
                h = h+5;
            }
            else
            {
                return;
            }
            if(h>482)  //高度
            {
                return;
            }
            document.getElementById("ads").style.display = "";
            document.getElementById("ads").style.height = h+"px";
            setTimeout("addCount()",30); 
        }
         
        window.onload = function showAds()
        {
            addCount();
            setTimeout("noneAds()",40000); //停留时间自己适当调整
        }
        </script>
         
        <script type="text/javascript" language="javascript">
        var T = 260;
        var N = 260; //高度
        function noneAds()
        {
            if(T>0)
            {
                T--;
                N = N-5;
            }
            else
            {
                return;
            }
            if(N<0)
            {
                document.getElementById("ads").style.display = "none";
                return;
            }
             
            document.getElementById("ads").style.height = N+"px";
            setTimeout("noneAds()",30); 
        }
    function goUp(){
    if(document.getElementById("ads").style.display == "none"){
    addCount();
    time = 500;
    h = 0;
    }else{
    noneAds();
    }}
        </script>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
    <!--
    body,td,th {
        font-size: 12px;
        color: #999999;
    line-height:20px}
    .STYLE1 {
    font-size: 24px;
    font-weight: bold;
    color: #0066CC;
    font-family: Arial, Helvetica, sans-serif;
    }
    .STYLE2 {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    }
    .STYLE3 {
    font-size: 24px;
    color: #666666;
    }
    -->
    </style></head>
    <body>
        <div id="ads" style="margin:auto; display:none; width:900px; top:0px; height:0px; border:solid 1px #000; background-color:#fafafa; overflow:hidden; text-align:center;">
    <td width="900" height="482"><a href="http://www.xiazai.com"><img src="1.gif" border="0" alt="A5下载"></a></td>
        </div>
        <div id="bottom" style="margin:auto; width:900px; height:80px; border:solid 1px #000; background-color:#fafafa; text-align:center;">
              <div align="center"><br>
                  <span class="STYLE1">Introduction to the GNSS and LBS Association of China</span><br>
                  <span class="STYLE2">          </span><br>
                  <input type="button" value="remove A5 download" onclick="javascript:document.getElementById('ads').remove();" />
                  <input type="button" value="remove bottom" onclick="javascript:document.getElementById('bottom').remove();" />
           <input type="button" value="return Up" onclick="javascript:goUp()" />
              </div>
            <p align="center" class="STYLE3"></p>
            <p align="center" class="STYLE3"></p>
        </div>
    </body>
    </html>
      

  2.   

    学习下jquery吧,那里面有个方法,比如:
    $("p").show("slow");
      

  3.   

    看你感激涕零的啊,有问题就直接问好了,搞的我很不好意思啊
    之前那是把元素直接删了,你用css控制下就行了,display="none" / “block”<!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>
        <title>Introduction to the GNSS and LBS Association of China</title>
       <script type="text/javascript" language="javascript">
        var time = 500;
        var h = 0;
        function addCount()
        {
            if(time>0)
            {
                time--;
                h = h+5;
            }
            else
            {
                return;
            }
            if(h>482)  //高度
            {
                return;
            }
            document.getElementById("ads").style.display = "";
            document.getElementById("ads").style.height = h+"px";
            setTimeout("addCount()",30); 
        }
        
        window.onload = function showAds()
        {
            addCount();
            setTimeout("noneAds()",40000); //停留时间自己适当调整
        }
        </script>
        
        <script type="text/javascript" language="javascript">
        var T = 260;
        var N = 260; //高度
        function noneAds()
        {
            if(T>0)
            {
                T--;
                N = N-5;
            }
            else
            {
                return;
            }
            if(N<0)
            {
                document.getElementById("ads").style.display = "none";
                return;
            }
            
            document.getElementById("ads").style.height = N+"px";
            setTimeout("noneAds()",30); 
        }
        </script>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
    <!--
    body,td,th {
        font-size: 12px;
        color: #999999;
    line-height:20px}
    .STYLE1 {
    font-size: 24px;
    font-weight: bold;
    color: #0066CC;
    font-family: Arial, Helvetica, sans-serif;
    }
    .STYLE2 {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    }
    .STYLE3 {
    font-size: 24px;
    color: #666666;
    }
    -->
    </style></head>
    <body>
        <div id="ads" style="margin:auto; display:none; width:900px; top:0px; height:0px; border:solid 1px #000; background-color:#fafafa; overflow:hidden; text-align:center;">
    <td width="900" height="482"><a href="http://www.xiazai.com"><img src="1.gif" border="0" alt="A5下载"></a></td>
        </div>
        <div id="bottom" style="margin:auto; width:900px; height:80px; border:solid 1px #000; background-color:#fafafa; text-align:center;">
              <div align="center"><br>
                  <span class="STYLE1">Introduction to the GNSS and LBS Association of China</span><br>
                  <span class="STYLE2">          </span><br>
      <input type="button" value="hide A5 download" onclick="javascript:document.getElementById('ads').style.display='none';" />
      <input type="button" value="show A5 download" onclick="javascript:document.getElementById('ads').style.display='block';" />
      
              </div>
            <p align="center" class="STYLE3"></p>
            <p align="center" class="STYLE3"></p>
        </div>
    </body>
    </html>
      

  4.   

    jquery不会的话就把js和css都学一下。w3cschool:http://www.w3school.com.cn/
      

  5.   

    帮你把标题改了,刚刚回复了个帖子讲这个事:http://bbs.csdn.net/topics/390623576#post-395950912
      

  6.   

    谢谢各位,版主不用不好意思啊。散分平均了啊因为百度知道被封,在网上找答案无果,有幸看到了CSDN,知道这里都是技术大拿,但大家都很忙,不一定会对我这没啥技术的贴有兴趣,本来想等几天的,结果大家都很帮忙我从来都是扒别人的用,有些简单参数改一改,早先想学来的,现在更想学了。今天的收获是扒了下拉广告下来,在CSDN了解到了如何收回和展开下拉广告。