|
From: <cam...@ya...> - 2001-01-16 18:09:12
|
I've just been having a quick play around with
dynimage, and noticed that in ie5.5 the image size is
being set incorrectly. all the images seem to be
getting set to the same size no matter what their true
size is. netscape seems to work fine.
There is another problem with DynImage that I noticed.
When you create a new DynImage, it checks the
loadimages array for an image object that exists
already. i've been creating dynimages by passing an
absolute path to the image without the host part. the
browser adds the host to the src in the image object.
so when i create a new dynimage from the same src, my
image is not found in loadimages array.
here's an example:
myImage1 = new DynImage('/images/button.gif');
Now DynImage.loadimages has one image in it.
myImage2 = new DynImage('/images/button.gif');
DynImage.loadimages now has 2 images in it, because
when it was looking for '/images/button.gif' it only
found 'http://hostname/images/button.gif'
One way of fixing this would be to store the src_orig
as well as the src. src_orig wouldn't get changed by
the browser.
hope all this is of use to someone out there ;-)
cam.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
|