<!-- The trick that we used has been patched. This no longer works on modern browsers. -->
<html>
<head>
<style type="text/css">
a:link { 
color: "blue";
}
a:visited { 
color: "red";
}
</style>
 
<script type="text/javascript">
// The url needs to be exactly as it apprears in the browser!
 
var theList = new Array(
"http://www.insomnia247.nl",
"http://insomnia247.nl",
"http://www.meatspin.com",
"http://www.mylittlepony.com",
"http://www.google.com",
"http://mail.yahoo.com",
"http://www.myspace.com",
"http://www.yahoo.com",
"http://mail.live.com",
"http://www.ebay.com",
"http://search.yahoo.com",
"http://www.facebook.com",
"http://www.msn.com",
"http://www.youtube.com",
"http://www.gmail.com",
"http://wikipedia.org",
"http://images.google.com",
"http://mail.aol.com",
"http://search.msn.com",
"http://news.yahoo.com",
"http://my.yahoo.com",
"http://address.yahoo.com",
"http://www.craigslist.org/about/sites"
);
 
var results = new Array();
 
function runList() {
    for(i in theList){
        runSite(theList[i], i);
    }
    // Write your own display function for your desired output method
    display();    
}
 
function runSite(url, i) {
	results[i] = hasLinkBeenVisited(url)
}
 
function hasLinkBeenVisited(url) {
	var link = document.createElement('a');
	link.href = url;
	document.body.appendChild(link);
	link.setAttribute("href",url);
 
	return getStyle(link);
}
 
function getStyle(el){
    if (document.defaultView && document.defaultView.getComputedStyle) //Firefox
         return document.defaultView.getComputedStyle(el, null).color == 'rgb(85, 26, 139)';
    else if (el.currentStyle) //IE
        return el.currentStyle["color"] == "red";
    else //try and get inline style
        return el.style["color"] == "red";
}
 
// Write your own display function for your desired output method
function display() {
    for(i in theList){
        var reslt = document.getElementById(i);
        var tmp = theList[i] + " ";
        if(results[i]) tmp = tmp + " >> visited";
        else tmp = tmp + " >> not visited";
        //reslt.lastChild.nodeValue = reslt.lastChild.nodeValue + tmp;
        reslt.innerHTML = tmp;
    }
}
 
</script>
 
</head>
 
<body onload="runList();">
<p>Results:</p>
<p id="db">
<script type="text/javascript">
for (i in theList) {
    document.writeln("<p id='" + i + "'> </p>");
}
</script>
 
</p>
</body>
</html>