Ich mach das für gewöhnlich so, das ich ein kleines Fenster mit einem kleinen Bild öffne in dem "bitte warten..." steht, warte bis das große Bild geladen ist, das Fenster dann entsprechend Vergrößere und das temporäre Bild unsichtbar mache:
Code:
<script language="JavaScript">
function fensterauf(){
var breite, hoehe;
if (self.document.bild.complete == true) {
breite=self.document.bild.width;
hoehe=self.document.bild.height;
self.resizeTo(breite+30, hoehe+100);
var counter=0;
while (counter<600){
counter=counter+1;
}
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion.charAt(0))<5)
self.document.ladebild.visibility="hidden";
else
self.document.getElementById("ladebild").style.visibility="hidden";
}
else {
setTimeout("fensterauf()",300);
}
}
</script>
</head>
<body ... onload="fensterauf()">
...
[img]pfadZumBild[/img]
<div id="ladebild">
[img]laden.gif[/img]
</div>
Jak
____________________________________
Join the DNRC |
Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)