mighty_muke
03-12-2002, 04:57 PM
Hi,
Does anyone know why the table in this page disappears in IE5?
<html>
<head>
<style type="text/css">
.collapse { position: absolute; visibility: hidden; }
.expand { position: relative; visibility: visible; }
</style>
<script type="text/javascript" language="javascript">
var tableToggle = true;
function toggletable() {
var temp = document.getElementById('thistable');
if (tableToggle) {
tableToggle = false;
temp.style.position = 'absolute';
temp.style.visibility = 'hidden';
} else {
tableToggle = true;
temp.style.position = 'relative';
temp.style.visibility = 'visible';
}
}
</script>
</head>
<body>
<table bgcolor="#FFCC99" width="600" cellspacing=0 border=0>
<tr>
<td>
<p><a href="javascript:toggletable();">toggle a table visible/invisible</a>
</td>
</tr>
</table>
<div id="thistable" class="expand">
<table bgcolor="#FFFFCC" width="300" cellspacing=0 border=0>
<tr>
<td>
<b>Toggle Table:</b><br> Here is the content of a table which hides and shows.
</td>
</tr>
</table>
</div>
<table bgcolor="#FFCC99" width="600" cellspacing=0 border=0>
<tr>
<td>
<p>Filler
</td>
</tr>
</table>
</body>
</html>
Thanks,
MM.
Does anyone know why the table in this page disappears in IE5?
<html>
<head>
<style type="text/css">
.collapse { position: absolute; visibility: hidden; }
.expand { position: relative; visibility: visible; }
</style>
<script type="text/javascript" language="javascript">
var tableToggle = true;
function toggletable() {
var temp = document.getElementById('thistable');
if (tableToggle) {
tableToggle = false;
temp.style.position = 'absolute';
temp.style.visibility = 'hidden';
} else {
tableToggle = true;
temp.style.position = 'relative';
temp.style.visibility = 'visible';
}
}
</script>
</head>
<body>
<table bgcolor="#FFCC99" width="600" cellspacing=0 border=0>
<tr>
<td>
<p><a href="javascript:toggletable();">toggle a table visible/invisible</a>
</td>
</tr>
</table>
<div id="thistable" class="expand">
<table bgcolor="#FFFFCC" width="300" cellspacing=0 border=0>
<tr>
<td>
<b>Toggle Table:</b><br> Here is the content of a table which hides and shows.
</td>
</tr>
</table>
</div>
<table bgcolor="#FFCC99" width="600" cellspacing=0 border=0>
<tr>
<td>
<p>Filler
</td>
</tr>
</table>
</body>
</html>
Thanks,
MM.