Results 1 to 2 of 2

Thread: Image Thumbnail Viewer II

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

    Question Image Thumbnail Viewer II

    1) Script Title:
    Image Thumbnail Viewer II

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

    3) Describe problem:

    Hello!

    I have successfully made this script work almost exactly as I had planned! Which means it must be a good script if I can get it to work!!! The only problem I'm having is that I would like the first image of my thumbnails, or even a random thumbnail, to be showing in the "<div> loadarea" by default instead of a blank space. I'm sure this could be an easy tweak, however I cannot seem to work it out myself.

    I tried just having the image loaded within the "<div></div>" tags on it's own and the other loaded on top of it when clicked, however the image also shows up breifley while the others are loading, and looks quite unsightly.

    Can anyone help me out here? Thanks so much!!

    EDIT: Ah, this unsightly problem by loading an img within the "<div></div>" tags is fixed by pre loading the images. However, if I didn't want to preload the images, is there an easy fix for this?

    Cheers.
    Last edited by Chemacky; 09-27-2011 at 01:46 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm not sure I understand what you did. The usual solution to the first question is to hard code the desired first image into the loadarea:

    Code:
    <div id="loadarea" style="width: 600px"><img src="whatever.jpg" alt=""></div>
    Is that what you did? If so or if doing that still creates the other problem, please give us a link to the page. It's much easier to solve a problem if we can see it.

    If you want more help:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

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
  •