Hi,
I have a simple form which works fine in IE but not in NS. It is basically a
testing of hide & display functionality using DIV tags.
Can somebody tell me what is the problem in my code?
Thanks.
Erk
<html>
<head>
<title>Sample</title>
<style type="text/css"><!--
.article { position: absolute; visibility: hidden; }
//--></style>
<script type="text/javascript" language="JavaScript"><!--
function show(object) {
if (document.layers && document.layers[object] != null){
document.layers[object].visibility = 'visible';
}
else if (document.all) {
document.all[object].style.visibility = 'visible';
}
}
function hide(object) {
if (document.layers && document.layers[object] != null){
document.layers[object].visibility = 'hidden';
}
else if (document.all)
document.all[object].style.visibility = 'hidden';
}
//--></script>
</head>
<body>
<form name="enroll" action="enroll.cfm" method="POST">
<table bgcolor="#FFCC99" width="600">
<!--- <tr>
<td>
<p><b>94.</b> Monday 15th May 1998 - <a href="articles/js094/index.htm"
onMouseover="show('L094')" onMouseout="hide('L094')">Building a Dynamic
Thank You Page</a>
</td></tr> --->
<tr>
<td bordercolor="#FFFFFF" bgcolor="#FFFFFF" align="right">
<p align="center"><font face="Arial" size="2"><b>Are
you a supervisor
requesting that a direct
<br>report take this course?</b></font></p>
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
<input type="button" name="confirm1" value="Yes"
onClick="show('L094')">
<!--- <a href="articles/js094/index.htm"
onMouseover="show('L094')"
onMouseout="hide('L094')">Building a Dynamic Thank You Page</a> --->
</td>
</tr>
</table>
<div id="L094" class="article">
<table bgcolor="#FFFFCC" width="600">
<tr>
<td>
test<input type="text" name="employee_last_name" value="" size="20"
maxlength="20">
<input type="button" name="search" value="Search Employee">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org