Forum Moderators: open
js:
---
function feat(thediv){
var jumpee = document.getElementById(thediv);
jumpee.style.display = 'block';
}
function defeat(thediv){
if (document.getElementById(thediv))
{
var unjumpee = document.getElementById(thediv);
unjumpee.style.display = 'none';
}
}
html:
-----
<img src="whatever.gif" alt="whatever" onmouseover="feat(stay);">
<div id="stay">I am the hidden div</div>
can someone please tell me what I've done wrong?
I'm really new at this.
Thanks