Simplet loading script
jeg har et problem med dette script.... loading billedet (en animeret gif) køre hele tiden istedet for at stoppe når siden er loadet. Her er sourcen:<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2//EN\">
<html>
<head>
<title></title>
<script>
/********************************************************************************
Copyright (C) 1999 Thomas Brattli
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts.
This may be used freely as long as this msg is intact!
********************************************************************************/
//Browsercheck
n=document.layers
ie=document.all
//Hides the layer onload
function hideIt(){
if(ie || n){
if(n) document.divLoadCont.visibility=\"hidden\"
else divLoadCont.style.visibility=\"hidden\"
}
}
</script>
<style>
#divLoadCont{position:absolute; width:100%; height:95%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
TD{font-family:arial,helvetica}
</style>
</head>
<body bgcolor=\"#FFFFFF\" text=\"#000000\">
<script type=\"text/javascript\">
if(ie || n) document.write(\'<center><br><br><br><font face=\"Verdana\">Loading...<br> <img src=\"loading.gif\"></center>\')
</script>
<img src=\"efter-loading-billede.gif\">
</body>
</html>
Håber i kan hjælpe :-)
