开发者

jquery : how to test for Ready when document is in a FRAME and it contains a large image with an image-map?

开发者 https://www.devze.com 2022-12-30 07:38 出处:网络
I am encountering problems which I believe to be related to the document (inside a FRAME) not being quite ready to go, and would like to know what the best practices are for testing for \"ready\" usin

I am encountering problems which I believe to be related to the document (inside a FRAME) not being quite ready to go, and would like to know what the best practices are for testing for "ready" using jQuery 1.3.2 -- the version required for a particular plug-in that I'm using.

Also, should the test be done in the document 开发者_如何学JAVAthat sets up the frameset or in the document that gets loaded by the frameset?


If you're just having to wait for the image to load, could you just use the image's onload event handler instead?

var imgMap = new Image();
....
imgMap.onload = function() {
    ...
}
0

精彩评论

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