Sorry if my last post was a bit vague & long winded i will try to be more specific
Is there a way to test if an image is loaded to trigger an event ? Currently I have tried the following and it seems to do nothing at all?? *Yeah... I'm guessing my syntax is pretty bad :( but I am trying to learn Thank you anyone that can help // assign the image once its loaded if(gLoad(s)) { $("#large").attr({src: s, alt: a}); $("#large").fadeIn("slow"); } else { gLoad(s); } function gLoad(s){ img = document.createElement('img'); $(img).bind('load', function() { if(s) this.src = s; }).trigger('load'); return true; }