Can some kind soul out there please tell me why the javascript code below does not work. I have it working in IE and NS 6 (so i took out the code to keep the post shorter).
I'm really losing my mind here. Thanks.
<script language="javascript">
function hideFields(){
if(document.layers){
document.layers["layer1"].visibility = "hide";
document.layers["layer2"].visibility = "hide";
}
</script>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<LINK REL=stylesheet HREF="..\sitemap.css" TYPE="text/css">
</head>
<body onLoad="hideFields()">
<form name="form1" action="advancedsearch.asp?action=find" method="post">
<font class="whitebold">The two boxes below should be hidden!!!</font>
<br><br>
<div ID="layer1" name="layer1" style="position:absolute; left:5; top:105; font-family:verdana, geneva, arial,helvetica,sans-serif; font-size: 11px; Color: white; z-index=1">Enter search text1:
<input type="text" name="sText" size="28"><br><br></div>
<div ID="layer2" name="layer2" style="position:absolute; left:5; top:105; font-family:verdana, geneva, arial,helvetica,sans-serif; font-size: 11px; Color: white; z-index=2">Enter search text2:
<input type="text" name="sText2" size="28"><br><br></div>
<input type="submit" name="submit">
</form>
</body>
</html>
I'm really losing my mind here. Thanks.
<script language="javascript">
function hideFields(){
if(document.layers){
document.layers["layer1"].visibility = "hide";
document.layers["layer2"].visibility = "hide";
}
</script>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<LINK REL=stylesheet HREF="..\sitemap.css" TYPE="text/css">
</head>
<body onLoad="hideFields()">
<form name="form1" action="advancedsearch.asp?action=find" method="post">
<font class="whitebold">The two boxes below should be hidden!!!</font>
<br><br>
<div ID="layer1" name="layer1" style="position:absolute; left:5; top:105; font-family:verdana, geneva, arial,helvetica,sans-serif; font-size: 11px; Color: white; z-index=1">Enter search text1:
<input type="text" name="sText" size="28"><br><br></div>
<div ID="layer2" name="layer2" style="position:absolute; left:5; top:105; font-family:verdana, geneva, arial,helvetica,sans-serif; font-size: 11px; Color: white; z-index=2">Enter search text2:
<input type="text" name="sText2" size="28"><br><br></div>
<input type="submit" name="submit">
</form>
</body>
</html>