Results 1 to 3 of 3

Thread: Image Loader

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Loader

    1) CODE TITLE: Image Loader

    2) AUTHOR NAME/NOTES: Ulhas S. Math

    3) DESCRIPTION:
    ImageLoader script contains a single function to display a loading message until the image loads on the page.It can be called any number of times in the page for mulitple images.USE THE insertImage() FUNCTION WHEREVER YOU ARE USING <img src> tag and pass a unique name to every call of this function. Also you need to pass imageSource and width and height of the MessageBox to be displayed on the image until it loads. For best results it is better to pass the width and height same as that that of the original image. You can also use insertReSizedImage() function if you want to resize the original image to the width and height that you are specifying.

    4) URL TO CODE: http://www41.websamba.com/yourInform...mageLoading.js

    5) URL TO DEMO: http://www41.websamba.com/yourInform...dingCheck.html


    or, ATTACHED BELOW (see #3 in guidelines below):
    Last edited by ulhas_math; 08-01-2006 at 08:37 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Thanks for the submission. I wan't able to see the "loading" text when viewing your demo unfortunately. Furthermore, considering the pervasiveness of broadband these days, the usefulness of such a script is very limited.

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes but this code will be quiet useful when we are generating on the fly images ... like when u specify some action inside the <img src> tag instead of a image url ... I m using it when my image creation process is on java side and always takes some 3-4 secs delay befor displaying the image ....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •