ICH
10-31-2003, 07:55 PM
<head>
</STYLE>
<script LANGUAGE="Javascript">
var meu = new Array
function cores(num)
{
meu('num').style.borderWidth="1px"
}
</script>
</head>
<body>
<DIV ID="meu1" ONMOUSEOUT="meu1.style.borderWidth='2px'" ONMOUSEOVER="cores(1)"; style="position:absolute; top:175px" CLASS="menu" >Estatuto Editorial
</DIV>
</body>
I'm using this for a menu with several items and I don't want to repeat the ONmouseout code every time so I would call the function naming the menu tems meu1, meu2, and so on. Why doesn't it work?
I suppose the problem is with the meu('num') because if I replace it with meu1 and the same in the div tag it works like a charm.
Thanks
</STYLE>
<script LANGUAGE="Javascript">
var meu = new Array
function cores(num)
{
meu('num').style.borderWidth="1px"
}
</script>
</head>
<body>
<DIV ID="meu1" ONMOUSEOUT="meu1.style.borderWidth='2px'" ONMOUSEOVER="cores(1)"; style="position:absolute; top:175px" CLASS="menu" >Estatuto Editorial
</DIV>
</body>
I'm using this for a menu with several items and I don't want to repeat the ONmouseout code every time so I would call the function naming the menu tems meu1, meu2, and so on. Why doesn't it work?
I suppose the problem is with the meu('num') because if I replace it with meu1 and the same in the div tag it works like a charm.
Thanks