i have a page with something like:
link
link
link
link
somethingelse(div)
with my script i change the link in a img and the after i have to edit the somethingelse....
but now i have a problem.. i need the cords of the div but when i try to get it i get the cords BEFORE the img is loaded.... and i get the wrong cords....
how i can run the function after the complete load of the images?
pseudocode:
$("a").each(function(){ replaceAtoIMG(this)}); //change <a> with <img> and add a new image loading
$("div").each(function(){ $(this).position() }); //return value BEFORE the fully completed load