User:MindstormsKid/vector.js: Difference between revisions
Appearance
Content deleted Content added
m oops |
m gah! |
||
Line 2: | Line 2: | ||
// clock! |
// clock! |
||
addOnloadHook(function(){ |
|||
jQuery("#p-personal ul").append('<li id="pt-time">'); |
jQuery("#p-personal ul").append('<li id="pt-time">'); |
||
Revision as of 04:56, 29 August 2009
document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>');
// clock!
addOnloadHook(function(){
jQuery("#p-personal ul").append('<li id="pt-time">');
setInterval(1000, function(){
var date = new Date();
jQuery("#pt-time").html(date.getUTCHours() + ":" + date.getUTCMinutes() + ":" + date.getUTCSeconds());
});
});