首页 > 死活忘了这个效果叫什么··

死活忘了这个效果叫什么··

http://www.sina.com.cn/
新浪头部那个弹开消失的效果···求指点


莫非是
.slideDown()
.slideUp()


dialog?
下拉框?


 <script type="text/javascript">

       var time = 300;
        var h = 0;
        var T = 300;
        var H = 300;
        window.onload = function() {
            star();
            window.setTimeout("close()", 7000);
        }
        function star() {
            var chang = document.getElementById("showad");
            chang.style.display = "";

            if (time > 0) {
                time--;
                h += 5;

            }
            else return;
            if (h > 300) {
                return;
            }
           chang.style.filter = "Alpha(opacity="+h/2+")";
            chang.style.height = h + "px";
            window.setTimeout("star()", 40);
        }
        function close() {
            var change = document.getElementById("showad");
            if (T > 0) {
                T--;
                H -= 5;
            }
            else return;
            if (H < 0) {
                change.style.display = "none";
            }
            change.style.filter = "Alpha(opacity="+H/2+")";
            change.style.height = H + "px";
            window.setTimeout("close()", 40);
        }
        </script>

伸缩广告


如下:



<div id="tmp"><img src="xxxxxxx"></div> <script> $("#tmp").show(); var time = 200; setTimeout(function(){ $("#tmp").hide(200); },time); </script>
【热门文章】
【热门文章】