页面打开5秒后在页面底部弹出个DIV~~~

解决方案 »

  1.   

    setTimeOut("document.getElementById('xxxdiv').style.display=''",50000);
      

  2.   

    <body onload="setTimeout('document.getElementById(\'divID\').style.display=\'\'',5000)">
    <div id=divID style="display:none">dsd</idv>
      

  3.   

    <div id="div" style="right:0; position:absolute; border:1px solid #ff9101; width:300px; background:#fdfdf1; height:300px; bottom:0px; display: none;"></div>
    <script src="jquery.js"></script>
    <script>
    $(document).ready(function(){
    setTimeout("fun()", 5000);//5秒
    });
    function fun(){
    var text = "一地再要功,上是中国同,何得有人我,主产不为这,民了发已经。";
    $("#div").html(text);
    $("#div").slideDown(3000);//div上升速度
    }
    </script>
      

  4.   

    <body onload="setTimeout('document.getElementById(\'divID\').style.display=\'\'',5000)">
    <div id=divID style="display:none">dsd</idv>
    这个OK。思想是先让层隐藏,然后再显示出来。