View Full Version : JavaScript Gallery

06-28-2006, 08:00 PM
I used this script from here to make a photography gallery for my gf, Amanda.
There's three "pages"
p1, p2, p3 are div's.

And the script basically says when "Page 1" link is clicked, display p1 as block and the rest display as none.

Now, this is what's happening.You click on "Page 1" and ALL the photos show up, for all three "pages"
You click on "Page 2" and ALL the photos show up except for Page 1
Then, you click on Page 3, and only Page 3's photos show up, since every page shows itself and everything after it, not showing the ones before it.
If that makes sense?

Here's the example:


Now, the code is too much to post here, it said there were too many chracters.
So if you could go to the link above, it's be fabulous?

06-29-2006, 05:22 AM
You have two main problems and a third minor problem that is probably nothing to worry about but, should be fixed.

1) Line 70 - you are missing a closing }. This invalidates the following style, which screws everything up.

2) Line 310 - you have a second:

<div id="sc2" class="tabcontent">

This one should be:

<div id="sc3" class="tabcontent">

3) Error: Unexpected end of file while searching for end of comment.
Source File: http://flamehtmlstudios.com/amanda/beta/main.css
Line: 275

Means this:


should be this: