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 6 of 6
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Show & Hide script (+-)

    Hi!

    I'm not good at css and javascripting but maybe there is a downloadable script that does the same as on www.phpfreaks.com/forums where you can - or + to see the content in each "forum-box"

    I guess the're using css hide and show command, how realiable is this in different browsers?

    //Rickard

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    it looks similar to this script found here, u can modify it i guess to use +/- sign images instead http://www.dynamicdrive.com/dynamici...switchmenu.htm

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by richmoijn
    I guess the're using css hide and show command, how realiable is this in different browsers?
    Just to clarify, CSS doesn't have "commands" per se; it does have "display: none" and "visibility: hidden" and a few other tricks, though. In other words, you can simulate client-side programming by applying different visual formatting to certain states (like hover), but if you want something like you describe you'll need javascript or something similar.

  • #4
    New Coder
    Join Date
    Mar 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for the "dynamic drive" link, it's pretty much what I want except that I want every "menu-item" to be displayed and the option to close if I don't want to see them... The script on DD only displays one at a time...

    Yes, of course it's the same thing as on this site, I missed that +- signs, sorry

    //Rickard

  • #5
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts

  • #6
    New Coder
    Join Date
    Mar 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That menu isn't expanded as its "normal" value neither...

    //Rickard


  •  

    Posting Permissions

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