I’m trying to code a page that puts my heading in the top frame of a page with two frames and does a countdown that refreshes the second frame every 30 seconds, and then either reloads the countdown and does it again, or simply refreshes both frames to start over. My current code doesn’t seem to be working:
[CODE]<html>
<head>
<title>Live Election Results</title>
<SCRIPT LANGUAGE=”JavaScript”>
var count = “5”
function countdown() {
if (count == “0”) {
parent.frames[“source”].location.reload()
}
else {
count = count – 1
setTimeout(“countdown()”, 1000)
}
}
countdown()
</SCRIPT>
</head>
<!– Frames are to be placed in the top of an –>
<!– HTML page BEFORE the BODY tag –>
<frameset rows=”20%,*” border=”0″>
<frame name=”heading_rfrsh” src=”head.htm” marginwidth=”10″ marginheight=”10″ scrolling=”auto” frameborder=”0″>
<frame name=”source” src=”http://www.mcvote.com/results/results_47.html” marginwidth=”10″ marginheight=”10″ scrolling=”auto” frameborder=”0″>
</frameset>
<body>
</body>
</html>
The point is that this web site posts live election counting results, but they don’t offer an XML or RSS feed to tap into. They do seem to update this page regularly on election day, and I’m too lazy to refresh that page ? over and over again. Is there an easy way to do this? Thanks.