Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II - thumbnail question

  1. #1
    Join Date
    Mar 2006
    Location
    Oregon
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II - thumbnail question




    Script: Image Thumbnail Viewer II
    Link: http://www.dynamicdrive.com/dynamici...thumbnail2.htm


    Ok.... quick question:

    When you look at the code on a webpage - you see the text links instead of thumbnail pictures -

    Where and how in the body code do you take out the text and insert the thumbnail code so that thumbnails appear instead of text ...

    I have no clue and love this script. Thank you if you can help me!!

    Sarah







  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

    Change:

    Code:
    <a href="#" onMouseover="modifyimage('dynloadarea', 0)">image 1 (onmouseover)</a><br>
    <a href="#" onMouseover="modifyimage('dynloadarea', 1)">image 2 (onmouseover)</a><br>
    to:

    Code:
    <a href="#" onMouseover="modifyimage('dynloadarea', 0)" onclick="return false;"><img src="thumb1.jpg" border="0"></a><br>
    <a href="#" onMouseover="modifyimage('dynloadarea', 1)" onclick="return false;"><img src="thumb2.jpg" border="0"></a><br>
    The green onclick events are simply to prevent page reload if the thumbnails are clicked. It is the red image tags that answer your question, set their src attributes to your image files' names and (if not in the same folder as the page) paths.

    Note: Those are ordinary HTML image tags.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2006
    Location
    Oregon
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thanks!

    Perfect! Thank you for taking the time to answer my question - which now seems rather dumb! lol

    Thank you so much I can now finish the page I was working on.
    Sarah

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
  •