i have function that changes background color of element and src of image.
in opera and firefox background changes while image is loading, in ie background changes when image is loaded.
so if there any way to change bg in ie before image has not been loaded?
i have function that changes background color of element and src of image. in
Share
Try to call both things asynchronously. I.e. first change background color of element then change image source with setTimeout method.