<html>
<head>
<title></title>
<meta http-equiv=¨Content-Type¨ content=¨text/html; charset=utf-8¨></meta>
<script type=¨text/javascript¨>
var i=0;
function getreq ()
{
if (window.XMLHttpRequest)
return new
XMLHttpRequest ();
else if (window.ActiveXObject)
return new
ActiveXObject (¨Microsoft.XMLHTTP¨);
}
function cargarEnlace () {
var links=document.
getElementsByTagName (¨a¨);
peticion =
getreq ();
if (peticion.readyState == 4 || peticion.readyState == 0) {
if (i< links.length){
var url = document.links[i].href;
peticion.onreadystatechange = imagexists;
peticion.
open (¨get¨, url, true);
peticion.
send (null);
}
}
}
function imagexists (){
if (peticion.readyState == 4) {
if (peticion.status == 200)
{
document.links[i].style.color = ¨#438811¨;
i++;
cargarEnlace ();
}
else
{
document.links[i].style.color = ¨#F5601E¨;
i++;
cargarEnlace ();
}
}
}
window.onload=cargarEnlace;
</script>
<style type=¨text/css¨>
<!--
body { font: 11px Verdana, Arial, Helvetica, sans-serif; color: #333;}
a { font: 12px Verdana, Arial, Helvetica, sans-serif; color: #CCC; text-decoration:none}
ul { list-style: none;}
-->
</style>
</head>
<body>
<p>Comprobación de los enlaces de las secciones de la web:</p>
<ul>
<li>
<a href=¨
http://Www.recursoabierto.com/category/ajax/ ¨>
AJAX</a>
</li><li>
<a href=¨
http://Www.recursoabierto.com/ra.php?ra=2075 ¨>
ASP</a>
</li><li>
<a href=¨
http://Www.recursoabierto.com/rs567s ¨>
PHP</a>
</li><li>
<a href=¨
http://Www.recursoabierto.com/rss ¨>
PHP</a>
</li>
</ul>
</body>
</html>