Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to make a folding box in javascript

    Hello there. I'm quite new to this forum but I have a pressing problem that has bugged me for quite some time...
    I want to make a folding box where to put some text or some visitor counters made with php. I want to be able to click a plus button or something and the box to fold down. Like the tree menus in windows... or something.
    Basicaly i want to be able to view the contents of the box and then to fold down the respective area... I want to put multiple things in that area... like a picture or something...
    Does anyone know how this is done?

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    I know how to do this, but perhaps you should try writing some code first....people will appreciate you around here more if you at least make an attempt...

    Google can also be very helpful: http://www.google.com/search?hl=en&s...nt&btnG=Search
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #3
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why couldn't you just give me a simple example? why do you think i've posted here in the first place? Don't you think thai i haven't looked into google first? I've posted here because i want a concrete example man... Can you or can you not give me one... ?
    Last edited by rocknum; 02-07-2007 at 11:47 PM.

  • #4
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Well, man, if you click on the Google link I posted in my previous post and scroll down the first page to this result:

    DHTML expand and collapse div menu

    You can collapse them by default, but if you do so then users who have Javascript disabled will never be able to see your content. ...
    www.dustindiaz.com/dhtml-expand-and-collapse-div-menu/ - 76k -Cached - Similar pages


    Then point your mouse at the link and click on it, you will find a page that explains one way to create an expandable/collapsable box like you are describing.

    They even go so far as to provide you with an example here: http://www.dustindiaz.com/basement/block-toggle.html.






    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #5
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you very much
    you have been very helpful


  •  

    Posting Permissions

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