Hi all! I can`t pass properties to function. I already had this problem before and i've resolved it with the help of
Old Pedant, Mr J and DaveyErwin. Now I have the same problem and have no idea how to solve it
The error is “Esperaba un objeto“ (“an object expected”)
Could anyone help me please?
Here is my code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>Problem</title>
<link rel="stylesheet" href="estilos.css" type="text/css" media="all">
<style type="text/css">
</style>
<script type="text/javascript">
function hide(elem)
{
var vis = document.getElementById(elem)
vis.style.visibility="hidden";
}
</script>
</head>
<body>
<div id="myimage">
<img src="img.png" onclick="hide(menu1)" width=50 height=50 border=0 alt=unit.name />
<div id="menu1" class="soldmenu">
<ul>
<li>aaaa</li>
<li>bbbbbbbbbb</li>
<li>ccccccc</li>
</ul>
</div>
</body>
</html>