crazy4groovy
1/10/2013 - 4:08 PM

visual link checker -- just supply the urls in a js List and watch them verify/validate before your very eyes. [uses http://www.iwebtool.c

visual link checker -- just supply the urls in a js List and watch them verify/validate before your very eyes. [uses http://www.iwebtool.com/broken_link_checker]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>Link Checker</title>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>



<script>
/*****************************
 * CHANGE THIS URL LIST
******************************/
var urls = [
	 'http://google.com'
	,'http://ae911truth.org'
	,'http://www.the-haystack.com/there-is-no-mobile-web%2F'
];
</script>



		<script>
			$(function() {
				var out = "";
				for (var i in urls) {
					i = urls[i];
					var enc = encodeURI(i);
					out = out + t.replace(/\$URL\$/g, i).replace(/\$URL_ENC\$/g, enc);
				}

				//alert(out);
				$('#insert').html(out);
				$('head title').text(urls.length + " links checked");
				$('#page-title').text(urls.length + " links checked");
			})

			var t = 
			'<tr>\
				<td>\
					<a href="$URL$" target="_blank">$URL$</a> (<a rel="noprev" title="$URL$" href="http://www.iwebtool.com/broken_link_checker?url=$URL_ENC$">check links</a>)\
				</td>\
				<td>\
					<img src="http://www.iwebtool.com/tool/tools/broken_link_checker/checkstatus.php?url=$URL_ENC$">\
				</td>\
			</tr>';
		</script>
		<style>
			td {
				white-space: nowrap;
				border-bottom: 1px dotted #aaa;
			}
			body {
				padding: 1em;
				border: 2px dashed #999;
				background-color: #ddf;
			}
		</style>
	</head>
	<body>
		<h1 id="page-title">http://www.iwebtool.com/broken_link_checker?url=http%3A%2F%2Flearningwebdesign.com%2Flinks.html</h1>
		<table width="5%">
			<tbody id="insert"> </tbody>
		</table>
	</body>
</html>