if page/dom/image is completely loaded,
show image and remove loading text.
if (document.readyState == "complete")
document.getElementById("imageid").style.display = "inline";
document.getElementById("loadText").innerHTML = "";
/* hide image and display loading while loading */
document.getElementById("imageid").style.display = "none";
document.getElementById("loadText").innerHTML = "Loading...";