View Single Post
  #2 (permalink)  
Old 06-24-03, 08:12 PM
Gurrutello Gurrutello is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
ok i response myself
jeje

searching and searching i found it
PHP Code:

<html>

<
head>
<
title>Preloading asp pages</title>

<
script type="text/javascript">
function 
Is() {
    
agent  navigator.userAgent.toLowerCase();
    
this.major parseInt(navigator.appVersion);
    
this.minor parseFloat(navigator.appVersion);
     
this.ns = ((agent.indexOf('mozilla') != -1) && 
          (
agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1) &&
         (
agent.indexOf('opera') == -1) &&
         (
agent.indexOf('webtv') == -1));    
    
this.ns2   = (this.ns && (this.major      ==    3));
    
this.ns3   = (this.ns && (this.major      ==    3));
    
this.ns4   = (this.ns && (this.major      ==    4));
    
this.ns6   = (this.ns && (this.major      >=    5));
    
this.ie    = (agent.indexOf("msie")       !=   -1);
    
this.ie3   = (this.ie && (this.major      4));
    
this.ie4   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   ==   -1));
    
this.ie5   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   !=   -1));
    
this.ieX = (this.ie && !this.ie3 && !this.ie4); 
}

var 
is = new Is();

var 
url 'http://www.publicentral.com/index.asp';

</script>

</head>

<body onLoad="location.href = url;">

<H1><font color="#336600" face="Verdana, Arial, Helvetica, sans-serif">Page is loading...</font></H1>

<script type="text/javascript">
if (document.layers)
document.write('<layer src="' + url + '" visibility="hide"><\/layer>');

else if (document.all || document.getElementById)
document.write('<iframe src="' + url + '" style="visibility: hidden;"><\/iframe>');

else location.href = url;
</script>

</body>
</html> 
now im using it
if anyone likes it??
saludos
Reply With Quote