Hi I'm trying to recreate the effect like on SO where you click a comment, and the page loads, and the given comments background fades out.
so far I have
var theHash = window.location.hash;
$(theHash).hover(function() {
$(this).stop().animate({ backgroundColor: "#a7bf51"}, 800);
},function() {
$(this).stop().animate({ backgroundColor: "#ffffff" }, 800);
});
which works fine on a hover, but i would like this to be done automatically when the page is ready.
is there an event for this, rather than using "hover"? thanks