...

View Full Version : Thumbnail gallery descriptions!



coder
06-02-2003, 08:20 PM
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?

shlagish
06-02-2003, 08:54 PM
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">

scroots
06-02-2003, 08:58 PM
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

coder
06-02-2003, 09:35 PM
Thank you for your help. It works fine. I was making it harder than it needed to be.:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum