登陆以后几秒钟后跳转那种效果是怎么做的?

解决方案 »

  1.   

    <meta http-equiv="refresh" content="时间(单位:秒)" url="往哪儿跳">  
      

  2.   

    SLEEP(3000);
    然后再转换?
      

  3.   

    function countDown(secs,surl)
    {
        tiao.innerText=secs;//<span>中显示的内容值
        if(--secs>0)
        {
            setTimeout("countDown("+secs+",'"+surl+"')",1000;    }
        else
        {
      
            location.href=surl;    } 
    }
    有这么一个函数 不会用
      

  4.   

    有一个控件,名字好像叫Scriptprosse的把,实现这种效果
      

  5.   

    都可以:<.meta http-equiv="refresh" content="时间(单位:秒)" url="往哪儿跳">js的setTimeout
      

  6.   

    (function() {
     var total = 3; // 倒计时
        var span_timer = document.getElementById("span_timer");
        span_timer.innerHTML = total;
        var timer = setInterval(function() {
            if (total <= 0) {
                location.href = document.getElementById("a_url").href; // 跳转
                clearInterval(timer);
                timer = 0;
            } else span_timer.innerHTML = --total;
        }, 1000);
     
        document.getElementById("a_switch").onclick = function() {
            var collocate = document.getElementById('collocate');
            var stop = document.getElementById('stop');
            collocate.style.display = "block";
            stop.style.display = "none";
            var txt = document.getElementById('span_text');
            txt.innerHTML = "登录正确后,页面跳转到...";
            clearInterval(timer);
            timer = 0;
        };
    })();
      

  7.   

    页面放一Label1:
    延时的js代码如下:<script type="text/javascript">
            var n = 3; //设定3秒时间    
            function myTime() {
                if (n + 1 > 0) {
                    document.getElementById("Label1").innerText = "本页将在 " + n + " 秒后转google首页!";
                    n--;
                    setTimeout("myTime()", 1000);
                } 
                else {
                    location.href = "http://www.google.com";
                }
            }
        </script>
      

  8.   

    <script type="text/javascript">     
    function countDown(secs,surl)
    {       
       if(--secs>0)
    {     
           setTimeout("countDown("+secs+",'"+surl+"')",1000);     
           }     
    else{       
          location.href=surl;     
           }     
    }     
    </script>     
    <script type="text/javascript">countDown(几秒,'要跳的页');</script>  
      

  9.   


    这个是对的 但是和UpdatePanel 控件是冲突的 这个可以解决么?
      

  10.   


    这个是对的 但是和UpdatePanel 控件是冲突的 这个问题可以解决么?
      

  11.   

    setInterval("window.close()//要执行的代码;", 150//时间毫秒);