R
Rob T
I made an image slideshow with precaching that uses three overlapping
div tags that each contain an img tag that can be accessed using
getElementById(). If imgObj is my image object, I change imgObj.src to
the image URL and I'm checking imgObj.complete to see if it has been
loaded. The problem is that when I change an imgObj that previously
held an image, complete will be true immediately after imgObj.src has
been changed, regardless of whether it is loaded. Is there any way to
avoid this or is there a way to destroy the old image object before I
assign the new src URL?
Rob
div tags that each contain an img tag that can be accessed using
getElementById(). If imgObj is my image object, I change imgObj.src to
the image URL and I'm checking imgObj.complete to see if it has been
loaded. The problem is that when I change an imgObj that previously
held an image, complete will be true immediately after imgObj.src has
been changed, regardless of whether it is loaded. Is there any way to
avoid this or is there a way to destroy the old image object before I
assign the new src URL?
Rob