jquery - adding a "loading" image to dynamic images comming from flickr -


Is there any way to display a loading image for moving images using Flickr? I have come to a version working on this site, but I am not able to locate the code to see what they are doing.

You can create an image that shows GIF loading, then create another image and Use image loading events. Flickr provides a callback to inform you when the image is ready, then swap just loading GIF for the image from Flickr.

Obviously, you have to change the logic to use the JSN feed for the URL and to reuse the JSN object, but it should give you a basic understanding.

  HTML & lt; Image ID = "image1" src = "someLoad.gif" /> Js $ ('& lt; img />').attr('src', 'someImageFromFlickr.jpg'). Load (function () {$ ('# image1'). Attr ('src', this.src);})  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -