I have the following problem I have a <div>
hidden over the login field:
<div id="MostraLegenda" class ="legenda" style ="display: none">
<p>Login do Usuario</p>
</div>
It has display: none
, I want to use the onmouseover
event and set it to display: block
.
JS:
function mostrarLegenda()
{
var div;
div = document.getElementById("MostraLegenda");
div.setAttribute.apply("style", "display:block");
return true;
}