
July 29th, 2001, 10:13 AM
|
|
Contributing User
|
|
Join Date: Jun 2001
Location: Toronto, Ontario, Canada
Posts: 631
Time spent in forums: 7 m 19 sec
Reputation Power: 12
|
|
|
From your perl/cgi script, you should write the whole document.
print <<END_OF_PAGE;
<html><head>...</head><body>
........ all the content.....
$day , $hour , etc.
...
</body></html>
END_OF_PAGE
Using this (being a perl/cgi newbie -- started to learn today, lol) I dont know if the time could be updated, unless you use javascript. I'm not sure if defining the javascript variables with the perl variables will work though, but you can give it a try.
print <<END_OF_PAGE;
<html><head><script language="javascript">
var secs=$seconds
function updateSec() {
secs++;
document.write(secs);
SecsTimeout=setTimeout("updateSec()",1000)
}
updateSec()
</script><body>..</body></html>
END_OF_PAGE
|