I updated the code on mine. Erased the 'dumbass' off of it, dumbass. :wink:
<html>
<head>
<title>NH.com 'Who's online' automatic refresh (JS version)</title>
<script language="javascript">
var intid = 0;
function refresh() {
document.getElementById("fframe").src = "http://forums.nessaholics.com/viewonline.php";
}
function start() {
var inter = parseInt(document.getElementById("inter").value) * 1000;
if(!intid && inter > 0) {
refresh();
intid = setInterval("refresh();", inter);
}
else
alert("Error: 107x has occurred. A virus has begun to infect your hard drive. Please erase all infected files.")
if (confirm("Please inform the the hardware vendor of this error."))
alert('The virus has been contained but the browser will shutdown to check for and prevent further internal damages.');
else
alert('The problem has not been fixed, the browser must be shut downtown to prevent further contamination.');
{
parent.close();
}
}
function stop() {
if(intid) {
clearInterval(intid);
intid = 0;
}
}
</script>
</head>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top">
Interval: <input type="text" id="inter" value="60"/> seconds <a href="#" onclick="start();">start</a> <a href="#" onclick="stop();">stop</a>
</td>
</tr>
<tr>
<td valign="top">
<iframe id="fframe" frameborder="0" src="http://forums.nessaholics.com/viewonline.php" width="100%" height="600"></iframe>
</td>
</tr>
</table>
</body>
</html>