Jump to content

User:MindstormsKid/vector.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
MindstormsKid (talk | contribs)
m gah!
MindstormsKid (talk | contribs)
m grrrrrrrr
Line 1: Line 1:
document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>');

// clock!
addOnloadHook(function(){
addOnloadHook(function(){
jQuery("#p-personal ul").append('<li id="pt-time">');
jQuery("#p-personal ul").append('<li id="pt-time">');


setInterval(1000, function(){
setInterval(function(){
var date = new Date();
var date = new Date();
jQuery("#pt-time").html(date.getUTCHours() + ":" + date.getUTCMinutes() + ":" + date.getUTCSeconds());
jQuery("#pt-time").html(date.getUTCHours() + ":" + date.getUTCMinutes() + ":" + date.getUTCSeconds());
});
}, 1000);
});
});

Revision as of 04:58, 29 August 2009

addOnloadHook(function(){
	jQuery("#p-personal ul").append('<li id="pt-time">');

	setInterval(function(){
		var date = new Date();
		jQuery("#pt-time").html(date.getUTCHours() + ":" + date.getUTCMinutes() + ":" + date.getUTCSeconds());
	}, 1000);
});