I think this will help you:
http://www.zdnet.com/devhead/stories/articles/0,4413,2762065,00.html
Matt

On Tue, 2002-03-05 at 17:13, Anton Roolaart wrote:
> Thanks for your reponse...
> let me clarify.. this is for referencing images in INLINE DIVs which 
> have existing images (not dynamically created images).
> Any further help would be great.
> 
> Anton
> 
> Matt Fair wrote:
> 
> >You can use the DynImage object.
> >For example:
> >
> >image1 = DynImage.getImage("image1.png");
> >image2 = DynImage.getImage("image2.png");
> >
> >button = new DynImage(image1);
> >buttonListener = new EventListener();
> >buttonListener.onmousedown=function(e){
> >  target=e.getSource();
> >  target.setImage(image2);
> >}
> >buttonListener.onmouseup=function(e){
> >  target=e.getSource();
> >  target.setImage(image1);
> >}
> >
> >It is not directly with DIVS, DynAPI does that for you.
> >Matt
> >
> >On Tue, 2002-03-05 at 14:41, Anton Roolaart wrote:
> >
> >>I'm using the latest dynapi (2.5.6) and I can't find out for the life of 
> >>me how to swap images in other DIVs .
> >>Yes my DIVs are correctly named and referenced.  i.e. the slideTo for 
> >>the same DIV works.
> >>How does one reference the image (which has ID and NAME parameters just 
> >>to make sure)?
> >>One year ago I remember that I could do this with api.
> >>I need this to work in IE 4/5.x/6, NS 4.7x/6 and Mozilla.
> >>Can someone help?
> >>
> >>Anton
> >>
> >>
> >>_______________________________________________
> >>Dynapi-Help mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/dynapi-help
> >>
> 
> 
-- 
Matt Fair
Uprint.com Staff

Gartner Studios, Inc.
124 South Second Street
Stillwater, MN 55082

Phone: 651-351-7700, 888-522-9722
Fax: 651-351-1408


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to