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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2008
    Location
    Manchester, England
    Posts
    206
    Thanks
    33
    Thanked 2 Times in 2 Posts

    Show Hide Text problem

    I am putting together a webpage in which I want to do a show-hide text from a button.

    I know how to do it using moveover/mouseout.

    The problem is that there is so much text that the page needs to scroll and to do this you have to mouseout which hides the text.

    Does anyone know if there is a way of doing this with mouseclicks.
    (click once to show the text and click once more to hide the text)

    All help much appreciated

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    You may toggle the display property in style using javascript. See a simple example at http://www.w3schools.com/jsref/prop_style_display.asp
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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