<html>
<head>
<script type="text/javascript">
<!--
var tempImage;
function checkOnlineStatus() {
var tempImage = new Image();
tempImage.onload = returnOnlineStatus;
tempImage.onerror = returnOfflineStatus;
tempImage.src = '[URL unfurl="true"]http://www.google.co.uk/intl/en_uk/images/logo.gif';[/URL] // this must point to the url of a valid image
}
function returnOnlineStatus() {
document.getElementById('onlineStatus').firstChild.nodeValue = 'You are currently online.';
}
function returnOfflineStatus() {
document.getElementById('onlineStatus').firstChild.nodeValue = 'You are currently offline.';
}
//-->
</script>
</head>
<body onload="checkOnlineStatus();">
<div id="onlineStatus">Checking online status, please wait...</div>
</body>
</html>