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 4 of 4
  1. #1
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Do I HAVE to use Javascript to show/hide DIVs?

    Can someone tell me if I HAVE to use Javascript to show or hide DIVs?

    Can I do the same JUST using CSS?

    If I do use Javascript - should I just use jQuery?
    Lots of ready made and easy to use code?

    Thanks


    Omar

  • #2
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts
    thanks for the reply
    i'll be happy to use javascript as u suggest
    but jquery looks a lot nicer

    can't i *just* use the snippet of code needed for the bit i'm interested in?

    else, do u know of any decent hide/show javascript animations code snippets?
    i searched a few min ago, but didn't find anything simple that looked ok

    thanks

  • #3
    OM2
    OM2 is offline
    New Coder
    Join Date
    Apr 2012
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts
    thanks for the reply
    ur right on all points
    i haven't started coding yet
    still writing the spec right now

    the examples of code i've seen i didn't like

    when i make a start, i'll post here and ask for help

    thanks

  • #4
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,297
    Thanks
    10
    Thanked 584 Times in 565 Posts
    you can use <detail>, :target css, or :hover css if you don't know js.

    if you want to be able to show upon a click and remember what to show, you need js.



    shameless plug for a widget-build toolset that i wrote: http://danml.com/tiny/
    you can create show/hides using just html and this script; no custom javascript required.
    Last edited by rnd me; 06-19-2012 at 05:58 AM.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Posting Permissions

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