JScript hide/reveal paragraph?

Results 1 to 2 of 2

Thread: JScript hide/reveal paragraph?

  1. #1
    Join Date
    Dec 1969

    Default JScript hide/reveal paragraph?

    Does anyone know of a script which would consist of a link which, when clicked, would then toggle between insert/removing a paragraph underneath the link? In other words, to allow various titles on one screen, but only revealing (or hiding) more in-depth text when the user clicks on the relevant link?

  2. #2
    Join Date
    Dec 1969

    Default RE: JScript hide/reveal paragraph?

    Don&#039;t know quite how you want this set out on the page, but the basic hideshow function will be something like this...<BR><BR>oObject.style.display = (oObject.style.display == &#039;none&#039;) ? &#039;&#039; : &#039;none&#039;;<BR><BR>where oObject is the DIV, SPAN, TR, etc.. that contains the text to be hidden or displayed.<BR><BR>

Posting Permissions

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