SlicedBread
05-09-2006, 05:09 PM
I have a page (I've pasted a simplified version of the long page) where users click to show a certain bit of info and in IE the div shows fine - but in FF it remains hidden. Does FF need any special code to show a div?
Thanks in advance
Amy
--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="SSIstylesFF.css" rel="stylesheet">
<script>
var isNS6=navigator.userAgent.indexOf("Gecko")!=-1?true:false;
var isIE=document.all?true:false;
function showhideinline(oDiv,flag){
if(isIE)
{
if (flag) oDiv.style.display="inline" //if flag true - show the div
else oDiv.style.display="none"
}
else if(isNS6)
{
if (flag) document.getElementById("oDiv").style.display="inline" //if flag true - show the div
else document.getElementById("oDiv").style.display="none"
}
}
</script>
</HEAD>
<style>
.tag{background:#ffffff;width:100%;display:none}
</style>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<TABLE width="100%" cellSpacing="1" cellPadding="1" border="0">
<TR>
<TD class="NormalBold">Account Selections:</TD>
<TD><select name="BillToGrid1:lstSelectionLists" id="BillToGrid1_lstSelectionLists">
<option selected value="-5">Account I am logged into</option>
<option value="-1">My Accounts</option>
</select></TD>
<TD class="Normal" width="160"> <input type="checkbox" onclick="showhideinline(b,this.checked)">Show Selected Accounts</TD>
<TD class="Normal" width="130"></TD>
<TD class="Normal"> </TD>
</TR>
</TABLE>
</td>
<td class="Normal" noWrap align="right" valign="middle"></td>
</tr>
</table>
<div id="b" class="tag">
<TABLE cellSpacing="0" width="100%" cellPadding="0" border="2">
<TR>
<TD>
<TABLE cellSpacing="0" width="100%" cellPadding="0" border="0">
<tr>
<td>
<table cellSpacing="0" width="100%" cellPadding="0" border="1" class="tableheader6">
<tr>
<td width="40%" align="left">Account Name</td>
<td width="15%" align="left">Number</td>
<td width="25%" align="left">Address</td>
<td width="15%" align="left">City</td>
<td width="2%" align="left">State</td>
<td width="3%" align="left">Country</td>
</tr>
</table>
</td>
</tr>
</TABLE>
</TD>
</TR>
</TABLE>
</div>
</body>
</html>
Thanks in advance
Amy
--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="SSIstylesFF.css" rel="stylesheet">
<script>
var isNS6=navigator.userAgent.indexOf("Gecko")!=-1?true:false;
var isIE=document.all?true:false;
function showhideinline(oDiv,flag){
if(isIE)
{
if (flag) oDiv.style.display="inline" //if flag true - show the div
else oDiv.style.display="none"
}
else if(isNS6)
{
if (flag) document.getElementById("oDiv").style.display="inline" //if flag true - show the div
else document.getElementById("oDiv").style.display="none"
}
}
</script>
</HEAD>
<style>
.tag{background:#ffffff;width:100%;display:none}
</style>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<TABLE width="100%" cellSpacing="1" cellPadding="1" border="0">
<TR>
<TD class="NormalBold">Account Selections:</TD>
<TD><select name="BillToGrid1:lstSelectionLists" id="BillToGrid1_lstSelectionLists">
<option selected value="-5">Account I am logged into</option>
<option value="-1">My Accounts</option>
</select></TD>
<TD class="Normal" width="160"> <input type="checkbox" onclick="showhideinline(b,this.checked)">Show Selected Accounts</TD>
<TD class="Normal" width="130"></TD>
<TD class="Normal"> </TD>
</TR>
</TABLE>
</td>
<td class="Normal" noWrap align="right" valign="middle"></td>
</tr>
</table>
<div id="b" class="tag">
<TABLE cellSpacing="0" width="100%" cellPadding="0" border="2">
<TR>
<TD>
<TABLE cellSpacing="0" width="100%" cellPadding="0" border="0">
<tr>
<td>
<table cellSpacing="0" width="100%" cellPadding="0" border="1" class="tableheader6">
<tr>
<td width="40%" align="left">Account Name</td>
<td width="15%" align="left">Number</td>
<td width="25%" align="left">Address</td>
<td width="15%" align="left">City</td>
<td width="2%" align="left">State</td>
<td width="3%" align="left">Country</td>
</tr>
</table>
</td>
</tr>
</TABLE>
</TD>
</TR>
</TABLE>
</div>
</body>
</html>