Thats a really bad way to do that! The best way would be to just have a 640x640 image, and animate the width and height attritubes, then maybe when that animation is done, replace it with the smaller image to save some memory. Try this:
$("imgSelector").animate({width:32,height:32},"slow",function() { this.src = "smallerimage.jpg"; }); Using your method, each of the 25 images would need to be loaded seperatly, which hogs bandwidth for your server, and causes waiting times for the user. On 3/22/07, Alexander Petri <[EMAIL PROTECTED]> wrote:
Hi, i have a small problem to solve: i want to animate the "src" attribute in an <img> tag i have 25 scaled images of a filled circle. the larest is 640x640px and the smallest is 32x32 i want to animate the steps in one second. can anyone give me a hint how to do that? maybe with the animate method? -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/