DigitalBoy
Programmer
I have the follow code in an html page:
<html>
<script language="Javascript">
function toggle(object)
{
var tObj = document.all[object];
if (tObj.style.visibility == "hidden"
tObj.style.visibility = 'visible';
else
tObj.style.visibility = 'hidden';
}
</script>
<body>
<img id="rate" src="img.bmp"></img><a href="javascript:toggle('rate');">NR</a>
</body>
</html>
The code works fine in IE, but not in NS. What changes do I have to make to ensure that this code works in NS? Thanks in advance.
- DB
dgtlby@excite.com
Administrator
UBB Developers Network
<html>
<script language="Javascript">
function toggle(object)
{
var tObj = document.all[object];
if (tObj.style.visibility == "hidden"
tObj.style.visibility = 'visible';
else
tObj.style.visibility = 'hidden';
}
</script>
<body>
<img id="rate" src="img.bmp"></img><a href="javascript:toggle('rate');">NR</a>
</body>
</html>
The code works fine in IE, but not in NS. What changes do I have to make to ensure that this code works in NS? Thanks in advance.
- DB
dgtlby@excite.com
Administrator
UBB Developers Network