alguien podria decirme porque este codigo no vuelve a mostrar el preloder cada vez que le doy f5?
gracias
Código HTML:
Ver original
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- body { font-family: "Trebuchet MS", Tahoma, Arial; font-size: 12px; color: #666666; text-align: center; } img { border: 3px solid #CCCCCC; padding: 2px; } .loading { background: url(loading.gif) no-repeat center center; } .loaded { background: none; } --> </style> <script type="text/javascript"> loadImage = new Image(); loadImage.src = "loading.gif"; </script> </head> <body> <script type="text/javascript"> var imgs = document.getElementsByTagName('img'); for(i in imgs) { imgs[i].onload = function() { this.className = "loaded"; } } </script> </body> </html>