Jump to content

User:MindstormsKid/vector.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
MindstormsKid (talk | contribs)
m oops
MindstormsKid (talk | contribs)
m gah!
Line 2: Line 2:


// clock!
// clock!
jQuery(function(){
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());
	});
});