Works in ie and opera not mozilla

Giganews Newsgroups
Subject: Works in ie and opera not mozilla
Posted by:  tkSPAMO…@ackulik.com (tony kulik)
Date: Sat, 25 Oct 2003

This code works fine in ie and opera but not at all in Mozilla.
Anybody got a clue as to how to get it right?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script language="JavaScript" type="text/javascript">
function show(that)
{
if (box.style.visibility=='hidden') { that.style.visibility =
'visible'};
}
</script>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<div style="width: 100px; height: 100px; border: 1px solid Black;
background-color: Aqua;" onclick="show(box)">help</div>
<div id="box" style=" position: relative; width: 100px; height: 100px;
border: 1px solid Black; background-color: Aqua; visibility:
hidden;">me</div>
</body>
</html>

Thanks

Tony Kulik

Replies