PDA

Click to See Complete Forum and Search --> : HTML Comment


barryooi
Jan 18th, 2001, 12:02 AM
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.

JoshT
Jan 18th, 2001, 06:45 AM
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:

function menuExpand() {
//show menu when mouse is over
menu.style.visibility = "hidden"
menu2.style.visibility = "visible"
}


HTML:

<div id="menu" onmouseover="menuExpand()">
<a href="">Menu...</a>
</div>


Josh