Results 1 to 2 of 2

Thread: JavaScript Gallery

  1. #1
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default JavaScript Gallery

    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:

    http://flamehtmlstudios.com/amanda/beta/practice.html

    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?
    Thanks

  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

    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:

    HTML Code:
    <div id="sc2" class="tabcontent">
    This one should be:

    HTML Code:
    <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:

    Code:
    /* END PORTFOLIO
    should be this:

    Code:
    /* END PORTFOLIO*/
    - John
    ________________________

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

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
  •