Hi,

Is there any way I can change the src of an image so that the change
occurs AFTER the new image has been loaded?
Normall I do it like this:
var pic=dynapi.functions.getImage('mypic.jpg', 100,100);
picarea=new DynLayer("", 0,0,100,100);
picarea.setHTML(pic.getHTML());

Then when I want to change picture src, i do:
pic.src='newpic.jpg';
picarea.setHTML(pic.getHTML());

However, the original picture becomes blank, then the new image slowly
appear as it is being downloaded.
Is there anyway I can let it finish loading first, then display?
I cannot preload the image at load time because the new image src URL is
input by user.
So, I want : User says change image > small delay (nothing changes on
screen) > new image appear instantly
Or, at least during the download time, keep the original image there...
I don't want it be blank.

Any input is appreciated!

Jack

-- 
Jack Chung <[EMAIL PROTECTED]>
http://www.PerceptiveCorner.com/



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to