Results 1 to 4 of 4

Thread: Large Image Preloaded for Thumbnail Viewer II

  1. #1
    Join Date
    Apr 2008
    Posts
    32
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Large Image Preloaded for Thumbnail Viewer II

    1) Script Title: Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem:

    Hi,

    I am using the thumb nail viewer II code to load images in my gallery. I was hoping to have the first image in the set already preloaded large when a user navigates to the page. How might I go about accomplishing this?? My page is at www.mikegrantonline.com/popup.html for reference. Thanks in advance!

    Mike

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    You can always place an image on the loadarea div:
    Code:
    <div id="loadarea" style="width: 400px">
    <img src="defaultIMAGE.jpg" alt="default">
    </div>
    Hope that helps.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Apr 2008
    Posts
    32
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Thanks rangana!
    worked perfectly. Before I originally posted, I simply put the <img> tag into the load area, and that worked, but in between image selections, you'd have a flash of the first default image appearing. What does the 'alt=default' do? no longer does the image appear when scrolling through the others. Perfect.

    Mike

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    alt is an attribute which is displayed at times when the image's failed to show. alt is also a mandatory for your page's validation.

    For further reading:
    http://www.w3schools.com/tags/tag_IMG.asp

    Hope that makes sense.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •