Results 1 to 3 of 3

Thread: Loading Images on a website - Javascript

  1. #1
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading Images on a website - Javascript

    Hi Guys,

    I am new to HTML, Javascript and CSS. I am looking for a script that loads an image only when the image in in view. I have searched and found answers on this website but the viewer doesn't see the image load. An example of such a site is http://annasafroncik.it/

    I did the whole view source thing and tried to work my way through it but it is a bit overwhelming. I also tried to search for the answer but I am not sure what this effect is called, and as soon as I think "Good job Sherlock you found it!!" it turns out I chased the wrong lead.

    Another question is does jquery need server side?

    Thanks guys.
    Last edited by jscheuer1; 09-23-2012 at 09:59 PM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    I think you want lazy load:

    http://www.appelsiini.net/projects/lazyload

    And no, jQuery doesn't require server side. It can use it, but doesn't need it, and the lazy load script doesn't need server side.

    jQuery is simply a library of javascript routines. It cannot do anything that javascript can't do. However, it enables one to do far more with less code. As I say it can use server side. So can ordinary javascript. But just like ordinary javascript, it doesn't require server side. Both jQuery and javascript are primarily client side - depending only upon the user's browser having javascript enabled.
    Last edited by jscheuer1; 09-24-2012 at 12:52 AM. Reason: detail
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks very much for the help John

Similar Threads

  1. Resolved Loading JavaScript before page loading?
    By blastbb in forum JavaScript
    Replies: 2
    Last Post: 04-04-2009, 01:31 PM
  2. Using loading.gif images
    By mobius2000 in forum HTML
    Replies: 5
    Last Post: 07-10-2008, 02:22 AM
  3. partially loading website intro
    By thoughtbubble in forum JavaScript
    Replies: 1
    Last Post: 04-05-2008, 09:42 AM
  4. Replies: 4
    Last Post: 02-11-2008, 01:38 PM
  5. my images on my website
    By lexusgirl24 in forum JavaScript
    Replies: 2
    Last Post: 01-04-2006, 04:49 PM

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
  •