I use $(".rounded").fadeOut(900) to nicely fade out some elements.
This is wrapped in a setTimeout() thing so that it happens after 10
seconds. If someone has already manually closed one of the elements, I
have to use this code::
window.setTimeout(function() {
$(".rounded").each(function() {
if(this.style['display']!='none')
$(this).fadeOut(900);
})
}, 1000*7);
What do more experienced jQuery people think about that approach?
Is that the easiest way to do it?
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/