i have a floating navigation bar in a page..its functionality is to float over the underlying form which contains form elements like radio buttons..it works fine in IE and functionally works in NS but the underlying form elements punch through the layer space..has anybody seen this behaviour before..please advise
<!-- begin code -->
<html>
<head>
<style>
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:black;
backgroundink ;
background-colorink;
layer-background-colorink;
z-index:100;
}
.radiostyle
{
position:static;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:black;
background-colorink;
layer-background-color:red;
z-index:1;
background : #FFCC00;
}
</style>
<script>
var junk = 50;
function handleNavBar()
{
if(document.all)
{
var thisspan = eval("span"+"1"+".style"
thisspan.posLeft=0 ;
thisspan.posTop=document.body.scrollTop ; //y ;
setTimeout("handleNavBar()",10) ;
}
if(document.layers)
{
var thisspan = eval("document.span"+"1" ;
thisspan.left = 0 ;
thisspan.top = window.pageYOffset + 55 ;
// document.span2.visibility = "hide" ;
// var otherspan = eval("document.span"+"2" ;
// thisspan.zIndex = 0;
// otherspan.zIndex = 1 ;
/////// ch=document.body.clientHeight;
// alert(document.body.clientWidth) ;
// window.document.layers['span1'].moveAbove(window.document.layers['span2']) ;
// window.document.layers['span2'].moveBelow(window.document.layers['span1']) ;
setTimeout("handleNavBar()",10) ;
//window.setinterval(handleNavBar(),5000) ;
}
}
function listboxclickhandle()
{
if(document.layers)
{
var thisobj = eval("document.span1.document.form1.SalesNames" ;
//thisobj.layers[0].src = "<form name='form1'><SELECT Name='SalesNames' onchange='listboxclickhandle()'><OPTION Value='one'>one<OPTION Value='vikram'>kumeta<OPTION Value='Rick'>Rick<OPTION Value='Kevin'>Kevin</Select> <table border='0' width='95%' cellspacing='0' cellpadding='0' bgcolor=yellow><tr><td>VIKRAM KUMETA</td></tr></table></form>" ;
// thisobj[thisobj.length] = new option("junk" ;
// thisobj[thisobj.length-1].value = "junk";
//thisobj[thisobj.length-1].text = " junk " ;
thisobj[0].value = "vikram" ;
thisobj[0].text="vikram" ;
alert(thisobj) ;
}
}
function imgClickHandle(index)
{
alert(index) ;
}
</script>
<span id=span1 name=span1 class="spanstyle">
<form name="form1" id="form1" >
<SELECT Name="SalesNames" onchange="listboxclickhandle()">
<OPTION Value="Jeff">Jeff
<OPTION Value="Charles">Charles
<OPTION Value="Rick">Rick
<OPTION Value="Kevin">Kevin
</Select>
<input type = button name = " junk " value = " junk " onclick="listboxclickhandle()">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td colspan="23">
<table cellpadding="0" cellspacing="0">
<tr><td><img src="images/loinctotesttitle1.gif"></td>
<td width="80%" background="images/titleline.gif"> </td>
<td width="10%"><img NAME="LOINCLIST" src = "images/selectloincblk.gif" border=0></img></a></td>
</tr>
</table> </td>
</tr>
<tr>
<td width="5%"><font face = "Times New Roman" size = 1><b>SELECT</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="7%"><font face = "Times New Roman" size = 1><b>KEYWORD</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="7%"><font face = "Times New Roman" size = 1><b></b></font>
<img name="image1" src="images/sortby_white.gif">
</td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="13%"><font face = "Times New Roman" size = 1><b></b></font>
<img name="image2" src="images/sortby_white.gif">
</td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="8%"><font face = "Times New Roman" size = 1><b>PROPERTY</b></font>
<img name="image3" src="images/sortby_white.gif">
</td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="4%"><font face = "Times New Roman" size = 1><b>TIME</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="6%"><font face = "Times New Roman" size = 1><b>SYSTEM</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="4%"><font face = "Times New Roman" size = 1><b>SCALE</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="6%"><font face = "Times New Roman" size = 1><b>METHOD</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="11%"><font face = "Times New Roman" size = 1><b>RELATED NAMES</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="3%"><font face = "Times New Roman" size = 1><b>CLASS</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="8%"><font face = "Times New Roman" size = 1><b>TYPE</b></font></td>
<tr><td colspan="23" background="images/titleline.gif"> </td></tr>
</table>
</form>
</span>
</head>
<body onLoad="handleNavBar()">
<!-- <layer id=span2 name=span2 class="radiostyle"> -->
<form name ="junk">
<!-- <br><input type = radio name="junk1" value= "junk1" style="background : #FFCC00; color : black; z-index : 100;"> -->
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<!-- <br><input type = text name = "junktext" length=34 style="float:left"> -->
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
</form>
<!-- </layer> -->
</body>
</html>
<!-- end code -->
<!-- begin code -->
<html>
<head>
<style>
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:black;
backgroundink ;
background-colorink;
layer-background-colorink;
z-index:100;
}
.radiostyle
{
position:static;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:black;
background-colorink;
layer-background-color:red;
z-index:1;
background : #FFCC00;
}
</style>
<script>
var junk = 50;
function handleNavBar()
{
if(document.all)
{
var thisspan = eval("span"+"1"+".style"
thisspan.posLeft=0 ;
thisspan.posTop=document.body.scrollTop ; //y ;
setTimeout("handleNavBar()",10) ;
}
if(document.layers)
{
var thisspan = eval("document.span"+"1" ;
thisspan.left = 0 ;
thisspan.top = window.pageYOffset + 55 ;
// document.span2.visibility = "hide" ;
// var otherspan = eval("document.span"+"2" ;
// thisspan.zIndex = 0;
// otherspan.zIndex = 1 ;
/////// ch=document.body.clientHeight;
// alert(document.body.clientWidth) ;
// window.document.layers['span1'].moveAbove(window.document.layers['span2']) ;
// window.document.layers['span2'].moveBelow(window.document.layers['span1']) ;
setTimeout("handleNavBar()",10) ;
//window.setinterval(handleNavBar(),5000) ;
}
}
function listboxclickhandle()
{
if(document.layers)
{
var thisobj = eval("document.span1.document.form1.SalesNames" ;
//thisobj.layers[0].src = "<form name='form1'><SELECT Name='SalesNames' onchange='listboxclickhandle()'><OPTION Value='one'>one<OPTION Value='vikram'>kumeta<OPTION Value='Rick'>Rick<OPTION Value='Kevin'>Kevin</Select> <table border='0' width='95%' cellspacing='0' cellpadding='0' bgcolor=yellow><tr><td>VIKRAM KUMETA</td></tr></table></form>" ;
// thisobj[thisobj.length] = new option("junk" ;
// thisobj[thisobj.length-1].value = "junk";
//thisobj[thisobj.length-1].text = " junk " ;
thisobj[0].value = "vikram" ;
thisobj[0].text="vikram" ;
alert(thisobj) ;
}
}
function imgClickHandle(index)
{
alert(index) ;
}
</script>
<span id=span1 name=span1 class="spanstyle">
<form name="form1" id="form1" >
<SELECT Name="SalesNames" onchange="listboxclickhandle()">
<OPTION Value="Jeff">Jeff
<OPTION Value="Charles">Charles
<OPTION Value="Rick">Rick
<OPTION Value="Kevin">Kevin
</Select>
<input type = button name = " junk " value = " junk " onclick="listboxclickhandle()">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td colspan="23">
<table cellpadding="0" cellspacing="0">
<tr><td><img src="images/loinctotesttitle1.gif"></td>
<td width="80%" background="images/titleline.gif"> </td>
<td width="10%"><img NAME="LOINCLIST" src = "images/selectloincblk.gif" border=0></img></a></td>
</tr>
</table> </td>
</tr>
<tr>
<td width="5%"><font face = "Times New Roman" size = 1><b>SELECT</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="7%"><font face = "Times New Roman" size = 1><b>KEYWORD</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="7%"><font face = "Times New Roman" size = 1><b></b></font>
<img name="image1" src="images/sortby_white.gif">
</td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="13%"><font face = "Times New Roman" size = 1><b></b></font>
<img name="image2" src="images/sortby_white.gif">
</td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="8%"><font face = "Times New Roman" size = 1><b>PROPERTY</b></font>
<img name="image3" src="images/sortby_white.gif">
</td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="4%"><font face = "Times New Roman" size = 1><b>TIME</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="6%"><font face = "Times New Roman" size = 1><b>SYSTEM</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="4%"><font face = "Times New Roman" size = 1><b>SCALE</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="6%"><font face = "Times New Roman" size = 1><b>METHOD</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="11%"><font face = "Times New Roman" size = 1><b>RELATED NAMES</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="3%"><font face = "Times New Roman" size = 1><b>CLASS</b></font></td>
<td width="1%"><font face = "Times New Roman" size = 1><b>|</b></font></td>
<td width="8%"><font face = "Times New Roman" size = 1><b>TYPE</b></font></td>
<tr><td colspan="23" background="images/titleline.gif"> </td></tr>
</table>
</form>
</span>
</head>
<body onLoad="handleNavBar()">
<!-- <layer id=span2 name=span2 class="radiostyle"> -->
<form name ="junk">
<!-- <br><input type = radio name="junk1" value= "junk1" style="background : #FFCC00; color : black; z-index : 100;"> -->
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<!-- <br><input type = text name = "junktext" length=34 style="float:left"> -->
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
<br><input type = radio name="junk1" value= "junk1" class="radiostyle">
</form>
<!-- </layer> -->
</body>
</html>
<!-- end code -->