Create word-processed text on the web using a reliable, fast and unbelievably beautiful editor.
http://imperavi.com/redactor/
http://imperavi.com/redactor/
$('selector').waitForImages(function() {
alert('All images are loaded.');
$(this).slideUp();
});
this is a reference to the element that waitForImages() is called on.$('selector').waitForImages(function() {
alert('All images have loaded.');
}, function(loaded, count, success) {
alert(loaded + ' of ' + count + ' images has ' + (success ? 'loaded' : 'failed to load') + '.');
$(this).addClass('loaded');
});
true if you'd like the plugin to iterate over all elements, checking for images referenced in the CSS (by default, it looks at the background-image, listStyleImage, borderImage and borderCornerImage properties). If it finds any, they will be treated as an image and loaded.true if the image loaded successfully.$('selector').waitForImages({
finished: function() {
...
},
each: function() {
...
},
waitForAll: true
});
$.waitForImages.hasImgProperties = ['backgroundImage'];
:uncached, which when used in conjunction with the img selector, allows you to select img elements that are not cached already by the browser.$('img:uncached').attr('title', 'Loading Image');