<html> <titels> Bild vorladen </title> <body> <script> // Richter Browser var browser = neu Object (); browser.useragent = window.navigator.useragent.tolowerCase (); browser.ie =/msie/.Test (browser.useragent); var img = new Image (); if (browser.ie) {img.onreadyStatechange = function () {if (img.readyState == "complete" || img.readyState == "Loaded") {Callback (img, imgid); }}} else if (browser.moz) {img.onload = function () {if (img.complete == true) {callback (img, imgid); }}}} // Wenn eine Ausnahme aufgrund von Netzwerk oder Bild auftritt, wird das Bild angezeigt. checkimg (obj, imgid) {document.getElementById (IMGID) .src = obj.src;} // Initialisieren Sie das zu angezeigte Bild und geben Sie das Fenster "Anstellsposition an.onload = function () {an. Bildess ("http://hiphotos.baidu.com/lovebyakuya/item/01cf20088f9506f063d98653.jpg", "IMG1", Checkimg); Bildess ("http://hiphotos.baidu.com/lovebyakuya/pic/item/7b7b19c70d62f4fdd0006050.jpg", "img2", Checkimg); Bildess ("http://hiphotos.baidu.com/joanne728/pic/item/892557641806d20eaa184c71.jpg", "IMG3", Checkimg); Bildess ("http://www.neocha.com/-/res/camilla/20071204181216078845_h.jpg", "IMG4", Checkimg); Bildess ("http://www.neocha.com/-/res/camilla/20071204181216d078845_h. /> <img id = "img3" src = "lade.gif" /> <img id = "img4" src = "lade.gif" /> <img id = "img5" src = "ladern.gif" /> < /body> < /html>