[jQuery] Classes

[jQuery] Classes

Hiya, I'm pretty new to jQuery, but I like what I've seen so far. I
would like to switch to jQ, but I can't figure out a good way to do
classes without prototype. Perhaps it is recommended to use prototype
along with jQ.
(For the purpose of learning) how would you code this using jquery
(and preferably not prototype).
_____________
User = Class.create();
User.prototype = {
initialize: function(name){
this.username = name;
document.write('<div id="msg">Welcome '+this.username+'!</div>');
this.e = $("msg");
setTimeout(this.update.bind(this),200);
},
update: function(){
this.e.innerHTML += "<br />";
var a = document.createElement("a")
a.href="account.php?u="+this.username;
a.innerHTML = this.username+"'s Account";
this.e.appendChild(a);
}
};
new User("Sean");
_____________
Thanks for all the help.
~Sean
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/