harambeegirl Posted August 18, 2006 Share Posted August 18, 2006 I have another idea on how I can manage a lot of data in a right sidebar.I think that I could have a short list of links (no more than two or three).I am trying to figure out if I could have each link connect to content within a hidden <div>. When the user clicks on the link, the content becomes visible below the link. Click on the link a second time and the content disappears again.Does anyone know how or if I could do this? Link to comment Share on other sites More sharing options...
murfitUK Posted August 19, 2006 Share Posted August 19, 2006 Not sure if this will help - but it says it works on DIVs so maybe worth a try:http://www.dynamicdrive.com/dynamicindex17/switchcontent.htmHaven't tried it myself so can't comment. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 19, 2006 Share Posted August 19, 2006 murfitUK found a good site with the script and an example...also you can just google: hide div tagif you google: hide div tag examplethe first link is http://www.activewidgets.com/javascript.fo...n-one-cell.htmland it has an example where it's used to show ordered items... they just open 1 div and close another with the click of the mouse... Link to comment Share on other sites More sharing options...
harambeegirl Posted August 19, 2006 Author Share Posted August 19, 2006 Not sure if this will help - but it says it works on DIVs so maybe worth a try:http://www.dynamicdrive.com/dynamicindex17/switchcontent.htmHaven't tried it myself so can't comment.Thanks! Genius! It works!I have been getting my feet wet in the language of JavaScript, but it would have taken me months to learn how to write that script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now