This is a discussion on "CSS Show Hide with JS" within the JavaScript Forum section. This forum, and the thread "CSS Show Hide with JS are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
CSS Show Hide with JS
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS Show Hide with JS
I have used some CSS found on a website that allows me to show and hide an element in a page (this can be found at http://www.stunicholls.com/various/more.html, if you look at this page you can see the more>> button displays a hidden element. My problem is that this newly showed element can be clicked anywhere and becomes hidden, can anyone tell me how to stop this from happening?
|
|
|
|
|||
|
Re: CSS Show Hide
The "more" content will only closed when you clicked in it. If you clicked outside from it, it won't close.
I think what you tyring to archieve here is not done by CSS, it's has to do with Javascript
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: CSS Show Hide
The example site that you posted the link to uses JavaScript! Take a look:
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Last edited by Stuart; Dec 10th, 2007 at 02:04. Reason: Forgot the code! |
|
||||
|
Re: CSS Show Hide with JS
Some other resources that you can llok at for this are:
http://www.dyn-web.com/dhtml/show-hide/ http://www.adesdesign.net/php/tutori.../hide_div.html http://www.geocities.com/technofundo.../showhide.html http://www.plus2net.com/javascript_t...hide-layer.php I'm not very good with JS but hte above wmay help you de-bug, or at least give you a soultion that fits your purpose.
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
|
|
|||
|
Re: CSS Show Hide with JS
I think that I found this same problem few month ago while I am coding the Page Option thing!
Try this link: Div Popup!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Show/hide/add textfields from dropdownmenu | UD2006 | JavaScript Forum | 0 | Apr 9th, 2008 08:36 |
| [SOLVED] Show&Hide Div Box | Maska | JavaScript Forum | 6 | Oct 1st, 2007 11:04 |
| Show/Hide JS | pa007 | JavaScript Forum | 0 | Apr 6th, 2007 19:18 |
| Show and Hide Text - how do I do that? | Love2Java | JavaScript Forum | 1 | Mar 29th, 2007 00:23 |
| Show/Hide Div Help | Trebz | JavaScript Forum | 2 | Feb 21st, 2006 22:37 |