Code:
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
function stamp
(){
var date
= new Date();
var time
= date.
getTime();
time
= Math.
floor(time
/1000);
//DIVIDES THE LONG VERSION BY 1000
$(
"#timestamp").html(time);
//TIMESTAMP IS SHOWN HERE
setTimeout(
"stamp()",
1000);
//CURRENT TIMESTAMP DISPLAYS EVERY SECOND
}
stamp
();
</script>
<body>
<span id="timestamp"></span>
</body>
</html>
Views: 155 Likes: 0 Dislikes: 0