Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II | Show 1 image onLoad

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

    Default Image Thumbnail Viewer II | Show 1 image onLoad

    Hi. I have implimented the Image Thumbnail Viewer II http://www.dynamicdrive.com/dynamici...thumbnail2.htm and it works fine.

    However i want one of the images to show in the "dynloadarea" when the webpage opens. At the moment there is just a blank space where the big size images apear when the user passes the mouse over the thumbnail. Can i get one of the images to show automatically when the page opens - rather than having to wait for the user to mouseover thumbnail before any of the pictures apear?

    I have tried replacing the 'onMouseover' to 'onLoad' in the body code but this doesnt work. If some one could help or provide a better solution it be VERY thankful! Thanks in advance. ps. You can see the page im working on here: http://www.jeffersonstudios.co.uk/co...otography2.htm

    Thanks!

  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

    This one is easier than it might at first appear. All one need do is write the image tag into the HTML source:

    HTML Code:
    <div id="dynloadarea" style="width:80px;height:225px;"><img src="some.jpg" border="0"></div>
    It will load just like a regular image (which is what it is). When someone mouses over a thumbnail, the script will replace the existing image's code with the new image code. You see, the script doesn't care how the image code got there in the first place, it will still overwrite it.
    - John
    ________________________

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

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

    Thumbs up Thank you John!

    Thanks John for taking time to reply to me. I was sure it would be as simple as that but just didnt think straight! Got it working just as directed. Thanks again!

    Matt/Bristol

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
  •