SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with closing and open divs with Javascript

    Hi!

    I'm working on a website where I need some help with open and closing divs using javascript.

    This is the website: clashjeans.se/test/styles.html

    As you can see I'm using a javascript to open each jeans style link, I don't know if this is the best way to do it, but it's how I've done it so far. If you click the "Frankie style link" at the bottom the div called Frankie will show and you will see a little image in that div that says "next wash". What I would like this link to do is to close the frankie div and open up another wich looks almost the same as the previous, the only thing that will change is the pictures actually. Please help me solve this problem, any suggestion about how to make this work will be highly appreciated!

  2. #2
    SitePoint Member
    Join Date
    Mar 2010
    Location
    Oslo, Norway
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No offence but wouldn't it be easier just to implement a simple light-box script? Or maybe it doesn't fill you requirements?

    http://www.huddletogether.com/projects/lightbox2/

  3. #3
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How much can I modify lightbox? Is it possible to use css to links and images? If it isn't possible I don't think it will work for me.

  4. #4
    SitePoint Guru downtroden's Avatar
    Join Date
    Dec 2004
    Location
    illinois
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check out http://flowplayer.org/tools/index.html

    I think what you're wanting to do is something like using tabs for your root categories and scrollable for the internal photos.
    your brain reacts in the same way whether you are
    looking at something or thinking about it...


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
  •