DJRobThaMan
08-08-2003, 03:03 PM
Hi,
So, it's possible to use javascript to preload a website:
<script>
var i =0;
function load(){
images[i] = newArray();
images[i].src = "image" + i + ".src";
++i;
if(i == some number){
document.location = home page;
}
</script>
<body onload="load()">....
but not everybody has javascript enabled, which would mean that they wouldn't ever see the site (unless i threw in a link in the body i guess).
So my question is, is there a way that I could do this so everybody could have the page preloaded.
I've seen that you can use the <noscript> tag to kind of make the browswers that don't have javascript enabled to pretend like they do (i think, don't quote me on that one) or at least do some things that javascript can.
Thanks
So, it's possible to use javascript to preload a website:
<script>
var i =0;
function load(){
images[i] = newArray();
images[i].src = "image" + i + ".src";
++i;
if(i == some number){
document.location = home page;
}
</script>
<body onload="load()">....
but not everybody has javascript enabled, which would mean that they wouldn't ever see the site (unless i threw in a link in the body i guess).
So my question is, is there a way that I could do this so everybody could have the page preloaded.
I've seen that you can use the <noscript> tag to kind of make the browswers that don't have javascript enabled to pretend like they do (i think, don't quote me on that one) or at least do some things that javascript can.
Thanks