javascript - Wait for a particular image to load completely using jquery? -


I am using the code below to load the images but I can load the image load completely Before, I want to show some kind of loading of GIF.

$ ('# addimage'). Attr ('src', src [i]); $ ('# Addimage') Show ().

Since I am using it in an animated mediaboxes, it does not look good to load images in blocks, as long as the image is loading, I want to change it by loading loading GIF .

  $ ("# addimage") ) .load (function () {$ (this) .show ();});  

Edit: To show an image until other loads are slightly more complex but not entirely possible. See.


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -