Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    1
    Member #
    28988
    I have a page with categories of images. When clicked, each image on the left opens a div with it's own gallery of thumbnails.

    http://myspringslandscaping.com/portfolio.html

    Right now, to close a div, the category image has to be clicked a second time. How can I set it so that when one div opens, the other closes automatically? The client wants only one category displayed at a time.

    Any help would be appreciated.
    Thanks!
    Marita

  2.  

  3. #2
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    It's in the javascript, so your script will need to be changed, to check to see if a div is already open, if so close the open one before opening another.

    might be as simple as changing the "[COLOR=rgb(0, 0, 0)]addEventListener[/COLOR]" values from false to true... but honestly that is just a guess ...

    perhaps the author of the JS has some documentation to tell you how to change this behavior properly.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

close div when another opens
,

close div when one opens

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:13 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com