Wednesday, April 24, 2013

this!

in jQuery...

$("#button1").mouseover(function() {
   $(this).removeClass("thing1");
   $(this).addClass("thing2");
   highlight($(this));
}).mouseout(function() {
   $(this).addClass("thing1");
   $(this).removeClass("thing2");
   unhighlight($(this));
}).mousedown(function() {
   window.location="/about/";
});

No comments:

Post a Comment