PDA

View Full Version : Help for a first time script user



labecs
10-02-2008, 02:36 AM
1) Script Title: Lightbox V1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem: I apologize for my ignorance, but I really need help in knowing where exactly to put the script. I know where to put the first part under the 'head' tag, but the part where the image name goes, I don't. I will have many pictures on the page and then I need each picture to open with a larger picture and a description (www.yourpetsuniverse.com/catbreeds.html)
Can I do that? Is that the kind of script I need to get that effect in every picture?
Thank you in advance.

rangana
10-02-2008, 05:44 AM
Just add a rel attribute on your img tag.

Let me point this part in your markup:


<img src="images/named cats/chantilly_button.gif" alt="Chantilly Cat" width="180" height="173" border="3" rel="lightbox"/>


...add highlighted (it's mandatory).

You could also add a title attribute for the lightbox's caption and a rev attribute to link your caption to a desired URL.

Hope that makes sense.

Get back if you're still stumped.

labecs
10-02-2008, 07:11 PM
Thank you... am I stumped... well, yeah :(

Can you check again to see what's wrong now? I click on the picture and nothing happens. I've uploaded the required files. I've only done it with the first cat. Maybe I should get someone to do it for me?:confused:

rangana
10-03-2008, 02:44 AM
It appears to me that you haven't downloaded the script associated with lightbox.