Hi,

(Just got back from a short vacation)

Please see examples/dynapi.functions.imageloader.html
for an example on knowing when images havce been
downloaded.

The getImage() function also support the <a> link. See
examples/dynapi.functions.getimage.html for more
information.

--
Raymond Irving

--- Jack Chung <[EMAIL PROTECTED]> wrote:
> Oh!!
> I just realized that the good old <img> tag actually
> defaults to the
> behavior that I want!
> <img src="mypic.jpg" name="myimg">
> <a
>
href="javascript:document['myimg'].src='mynewpic.jpg'">change</a>
> 
> Clicking the link will do what I wanted...
> But the many levels of abstraction in dynapi makes
> this behavior not
> longer there.... how can I get it back??
> 
> -- 
> Jack Chung <[EMAIL PROTECTED]>
> http://www.PerceptiveCorner.com/
> 
> 
> On Thu, 31 Jul 2003 22:36:34 -0400
> Jack Chung <[EMAIL PROTECTED]> wrote:
> 
> > 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
> 
> 
> 
>
-------------------------------------------------------
> 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


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.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