Página alternativa si la primera esta caída
<html> <head> <title>Redirección selectiva</title> <style> #enlace{ cursor:hand; } </style> <script> //Script original de KarlanKas para forosdelweb.com var imagenPrimera=new Image; var imagenSegunda=new Image; imagenPrimera.src="http://80.24.56.172/karlankas.jpg"; //La imagen primera tiene que estar en el servidor donde esté direcciónPrimera imagenSegunda.src="http://www.arquo.com/Imagenes/logotipo.jpg"; direccionPrimera="http://80.24.56.172"; direccionSegunda="http://www.arquo.com"; direccion=direccionPrimera; function unError(imag){ imag.src=imagenSegunda.src; direccion=direccionSegunda } </script> </head> <body> <center> <div id="cuerpo"></div> <script> codigo="<img id='enlace' src='"+imagenPrimera.src+"' onError='unError(this)' onClick='location.replace(direccion);'>" cuerpo.innerHTML=codigo </script> <br> </center> </body> </html>
Fuente: <html><a href=“http://www.forosdelweb.com/f13/faqs-javascript-105325/index3.html?postid=276288#post276288”>Foros del Web</a></html>