开发者

how to know when the image was loaded if I change the src with js

I change the src of an img tag with javascript

is there a way to determine when the browser has fully 开发者_JAVA百科loaded the image ?

I use this here: http://mrgsp.md:8080/prodinner/Meal

if you click on a change picture link, and than drag and drop an image from your desktop/other dir to the big button on that popup the src of the center image is going to be changed


Neat site by the way that is cool.

Here is how you can do it in jquery.

Browser-independent way to detect when image has been loaded

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜