[jQuery] attaching an onload to things...
Okay, very fuzzy subject line, but...
What I'm doing is that I'm using $(document).ready to load an image
that is tailored to the height and width of the window into the
body's background... i.e.
$(document).ready(function(){
$('body').get(0).style.backgroundImage = 'url(/resize.php?
s=assets/images/gallery/manoogian_01.jpg&w='+xClientWidth()
+'&h='+xClientHeight()+')';
}).load(function(){
alert('zomg');
});
now I'd like to trigger another function after this load is
complete.. however, $(document).load is not what the doctor ordered
since my alert('zomg') triggers before the background is done
loading. how do i capture this event?
_ robb irrgang
_
_ robb@subdue.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/