Current location: Hot Scripts Forums » Programming Languages » ASP » preload an asp page


preload an asp page

Reply
  #1 (permalink)  
Old 06-23-03, 08:19 PM
Gurrutello Gurrutello is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
preload an asp page

hello
It is possible to preload an asp ( also html, etc ) page.??
ok i got a redirection
but i want that the redirection page preload the full page no just tehe images ( i know how to do with javascript )

if
' the page is preloaded then redirect.

i know its possible

it will be helpfull
thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-24-03, 09: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a php registration page codeguru21 Script Requests 3 11-07-03 02:02 PM
need to make a confirmation page codeguru21 PHP 1 10-02-03 05:18 PM
edit page kelas PHP 3 09-20-03 04:36 AM
"10 most requested pages" script to include in page avx Script Requests 5 08-06-03 04:26 AM
page navigation help grafik ASP 1 07-27-03 03:08 PM


All times are GMT -5. The time now is 11:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.