it is best if you use <layer> for netscape4 browsers, netscape6 will support
<div>, 
but to accomplish this you would need a browser detect, 
and then on-the-fly write the <layer> code specific for netscape4..

I use layers on a few of my apps, I have 6 different ".js" files that are
dynamically
written depending on the browser detected..  I even have my layers working
in Netscape 6!!  



-----Original Message-----
From: erk kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 21, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: netscape woes..


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

-------------------------------------------------------------------------
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

Reply via email to