unplugged_web Posted April 2, 2009 Share Posted April 2, 2009 I wonder if somebody could help me please. I've got the time and date on a webpage using: <?$rightdate1 = date("d/m/Y");$rightdate2 = date("G:i:s");?> <h6><?=$rightdate1?><br><?=$rightdate2?></h6> This works, but I'd like ti to be a live clock so the seconds constantly change. Is it possible to do that? And if so how do I do it?Thanks Link to comment Share on other sites More sharing options...
zppblood Posted April 2, 2009 Share Posted April 2, 2009 Use JavaScript with setTimeout().http://www.w3schools.com/htmldom/met_win_settimeout.asp Link to comment Share on other sites More sharing options...
unplugged_web Posted April 2, 2009 Author Share Posted April 2, 2009 Use JavaScript with setTimeout().http://www.w3schools.com/htmldom/met_win_settimeout.asp Brilliant Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.