Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Thumbnail gallery descriptions!

    I have built a thumbnail scripted gallery. You click on a thumbnail and the image shows up in a larger view on the same page, but having difficulty getting an image description box to appear beneath the image. So that the description changes as you click on different thumbs.

    Anyone have some suggestions?

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Same as for the piscture...

    If your script for the picture is

    onClick="change('pic2.gif')"
    just change it to onClick="change('pic2.gif','description2')

    Then, the function would become:

    function change(pic,desc)
    {
    document.img.src=pic;
    document.box.value=desc;
    }

    And you would have a bow below the picture that goes like this:

    <input type="text" id="box" value="nothing yet">
    Shawn

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i once made a popup gallery scirpt if that is any use to you. You clikc a thumbnail and then it opens a window with the image and the specified text.


    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #4
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for your help. It works fine. I was making it harder than it needed to be.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •