I forgot to say you need to change the last line to:
DynAPI.addLoadFunction("DynImage.loaderStart()")
for it to work with the current version.
Robert
> I've attached an updated DynImage. This one is much simpler than the
> old version, but for me its been much more useful.
>
> You can still do DynImage.getImage(). However, the DynImage
> constructor is different. You say:
>
> myImage = new DynImage(DynImage.getImage("myimage.gif"),"myid");
> The id is not required.
>
> Another change is the toString method of the DynImage will return an
> image string like: <img src="myimage.gif" id="myid" width="1"
> height="2">
>
> So now you could just say:
> myLayer.setHTML(myImage);
>
> I don't know of any widgets that are using the DynImage constructor
> itself, so I think this would be a good change. Now you don't have to
> write out your img strings in every widget. The old version created a
> dynlayer for each image. I don't think this type of overhead is
> necessary.
>
> Robert
>
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/