onload = function(){ document.getElementById("precarga").style.display = "none"; } document.write("<div id='precarga'></div>");