heck if an image is loaded no errors in JavaScript
I'm using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list, When the image is loaded it does one thing, when an error occurs it does something else. I'm using jQuery load() and error() methods as events! That way, if the image was loaded before the nfl jersey supply events were registered. I will still know! If the image isn't loaded after the events then the events will take care of it when it does, The problem with this is, I can easily check if an image is loaded already. but I can't tell if an error occurred instead!
// During the onload event. IE correctly identifies any www.komedya42.com images that
// weren't downloaded as not complete, Others should too! These give the true size of the image, It may not be universal, I notice it seem to work differently in Firefox verses IE! I am loading a number of images in javascript then checking if complete. In Firefox! this seems to work great. In IE. it doesn't because the wholesale nfl jerseys images appear to be loading on another thread, Any way of doing that seems to fail because it actually seems to pass the same function. not different instances of the same function! So the value I pass into it to identify the image always ends up being the last value in the loop! I cannot think of any way around this problem. It is composed by lzhwkomedya42 2012-11-28 komedya42 ct.
没有评论:
发表评论