Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/u_login_timer.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Redirect Timer</title>
</head>

<body bgcolor="#ffffff">
<script language="JavaScript">
  // Active URL's
  var a_url = new Array();  
  ##a_url##
  var redirect_url = "##redirect_url##";
  var mod_num = ##mod_num##;
  var timer_count = 0;
  var timer_limit = 3;
     
  function f1() {
     var n = navigator;
     timer_count++;
     do_redirect = true;

     for(var i=1;i<=mod_num;i++) {
       a_url[i] = new RegExp(a_url[i]);
       var fr_name = new String("fr_dest"+i);
       var cur_url = '';
       if (timer_count<(timer_limit-1)) {
         if (n.userAgent.indexOf('MSIE')!=-1) cur_url = top.frames[fr_name].location+''; 
         else { 
           if (top.frames[fr_name].location instanceof Location) {
             cur_url = top.frames[fr_name].location+'';
           }
         }
       }
     
       if (cur_url) {
         if (cur_url.search(a_url[i])==-1) {
            do_redirect = false;
            break;
         }
       }
       else do_redirect = false;
     } // end for

     if (do_redirect) top.location = redirect_url;
     else {
       if (timer_count==timer_limit) top.location = redirect_url;
       setTimeout('f1()',5000);
     }
  }

  f1();

</script>
</body>
</html>
Return current item: Esvon Personals