Salve a tutti.
Tramite una script jQuery prendo una immagine e la ingrandisco ma non mi funge .onload di una immagine ecco lo script:
JAVASCRIPT
HTMLcodice:$("a.gallery").click(function(){ var immagine=new Image(); immagine.src=$(this).attr("rel"); $("body").append("<div id=\"contentgallery\"><div id=\"intgallery\"><div id=\"preload\"><img src=\"images/gallery/preload.gif\" /></div></div></div>") $("div#contentgallery").fadeIn("fast", function(){ $("div#intgallery").fadeIn("fast", function(){ immagine.onload = function(){ ... // qui si apre l'immagine
non capisco il perche onload non funge, difatti se lo tolgo l'immagine viene visualizzata.codice:<ul style="margin:0; padding:0; list-style:none; width:660px;"> [*][img]images/gallery/min/DSCF6023.jpg[/img] [*][img]images/gallery/min/DSCF6032.jpg[/img] [/list]