execution order
akayani - April 20, 2009 - 11:40
| Project: | jQuery Eye Candy |
| Version: | 6.x-1.x-dev |
| Component: | jQuery plugin |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I'm using Dynamic Rendering / sifr.
Trouble is that the execution order means the shadows draw up then the Flash text which repositions the page and the shadows move.
$('.image-thumbnail img').ready(function(){
setTimeout( "drawShadow();", 3000) //slow it down to give objects a chance to draw
});
function drawShadow(){
$('.image-thumbnail').dropShadow({left:2, top:2, blur:2, opacity:0.5}); // Creates new drop shadows
}I've put in a time out to slow it down but is there are better way as this is less than perfect.
document.ready had the same issue but img.ready didn't help much.
Yani
