Results 1 to 2 of 2

Thread: HTML Comment

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    9

    Unhappy

    Here goes...I need to create a dynamic HTML page. The contents of the page depends on the user's answer. Contents here means text boxes and stuffs like that.
    How can I comment out those HTML codes.
    Example,

    <INPUT Type="Text" id="abc" name="abc">
    to
    <!--<INPUT Type="Text" id="abc" name="abc">-->
    Thanks.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    For IE, you can set an element's ".style.visisibility" to "visible" or "hidden". I'm sure this code won't work with Netscape, though.

    Javascript:
    Code:
    function menuExpand() {
    	//show menu when mouse is over
    	menu.style.visibility = "hidden"
    	menu2.style.visibility = "visible"
    }
    HTML:
    Code:
    <div id="menu" onmouseover="menuExpand()">
    <a href="">Menu...</a>
    </div>
    Josh

Posting Permissions

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



Click Here to Expand Forum to Full Width