开发者

changing image src in ie

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 backgroun开发者_Python百科d changes when image is loaded. so if there any way to change bg in ie before image has not been loaded?


Try to call both things asynchronously. I.e. first change background color of element then change image source with setTimeout method.

//Change background color
//setTimeout('ChangeSrcImg()',1000);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜