...

View Full Version : Settings the time for an image.



asmaanjum786
09-26-2005, 03:23 PM
Provide the script to set the time out to an image loading.
if the image is not loaded in 30 seconds the given error page has to be displayed.

Thanks
Anjum

rm-f
09-26-2005, 08:33 PM
<head>
<script>
var showErrorPage = true;

function loadErrorPage() {
if(showErrorPage) {
//load error page
}
}
</script>
</head>
<body>
...
<script>
setTimeout('loadErrorPage();', 30000);
</script>
<img src="..." onload="showErrorPage=false;">
...
</body>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum