求注册会员等待计时注册的JS代码比如我要注册会员,点击注册后,然后看注册协义,此时的注册按钮是灰的,然后在那计时,计时过后,就可以点击注册了!

解决方案 »

  1.   

    计时跳转页面代码 
    Posted on 2006-11-28 15:15 winder 阅读(498) 评论(1)  编辑  收藏 所属分类: JavaScript  
     <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > 
     < html > 
     < head > 
     < meta  http-equiv ="Content-Type"  content ="text/html; charset=gb2312" > 
     < title > 计时跳转 </ title > 
     </ head > 
     
     < body  leftmargin ="0"  topmargin ="0" > 
     < table  border ="0"  align ="center" > 
     < tr > 
     < td > 
     < br > 
     < table  width ="194"  height ="113"  border ="0"  cellpadding ="0"  cellspacing ="0"   > 
       < tr > 
         < td >< a  href ="#" >< img  src ="images/ydzj.jpg"  width ="397"  height ="265"  border ="0" ></ a ></ td > 
       </ tr > 
       < tr > 
         < td  align ="center" >< div  id ="view" ></ div ></ td > 
              < script >  
                 var  time  =   5000 ;
                 var  cc  =  time / 1000 ;
                 function  count()  {
                     if (cc  >   - 1 )  {
                         var  vv  =  document.getElementById('view');
                        vv.innerHTML  =  ' < font color = " #0066ff "  size = " 2 " >< font color = " red " > ' + cc + ' </ font > 秒后进入新页面 </ font > ';
                        cc -- ;
                        setTimeout( " count() " , 1000 ); // 1秒延时 
                      } else  {
                        goto(); // 进入新页面 
                     } 
                } 
                  function  goto()  {
                    location.href = '#';
                } 
                count();
             </ script > 
       </ tr > 
     </ table > 
     </ td > 
     </ tr > 
     </ table > 
     </ body > 
     </ html >