Hi there
Can you shed any light on this error - it's a drop down menu I've got working in IE but not Firefox, Safari or Mac IE.
Mozilla javascript console tells me document.all is non standard and to use WC3 standard document.getElementById() instead but it still doesn't work - also does anyone know how to get this code working on Mac browsers?
website is at
jscript code is here - the original is commented out:
<script type="text/javascript">
<!--
function showmenu(elmnt)
{
//document.all(elmnt).style.visibility="visible"
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
//document.all(elmnt).style.visibility="hidden"
document.getElementById(elmnt).style.visibility="hidden"
}
//-->
</script>
Any suggestions would be appreciated, thanks!
rebelnz
Can you shed any light on this error - it's a drop down menu I've got working in IE but not Firefox, Safari or Mac IE.
Mozilla javascript console tells me document.all is non standard and to use WC3 standard document.getElementById() instead but it still doesn't work - also does anyone know how to get this code working on Mac browsers?
website is at
jscript code is here - the original is commented out:
<script type="text/javascript">
<!--
function showmenu(elmnt)
{
//document.all(elmnt).style.visibility="visible"
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
//document.all(elmnt).style.visibility="hidden"
document.getElementById(elmnt).style.visibility="hidden"
}
//-->
</script>
Any suggestions would be appreciated, thanks!
rebelnz