I'm experimenting with creating a dropdown menu that appears when someone hovers their mouse over an image.
<div>
<img id="whoimg" onmouseover="forImg(this)" src="/static/images/whoisitfor.png" height="70" style="cursor:pointer;">
</div>
<div style="position: absolute; right:30px; top: 23px;">
<span style="font-weight: bold;font-size:30px; color: #C4066B;">FOR</span>
</div>
</div>
I've managed to create the onmouseover function, but since I'm new to web development, I'm not sure what steps to take next. There are three images placed horizontally, including the one above.
function forImg()
{
alert("FOR");
}
I've tried using JavaScript, but I haven't made any progress. I'm stuck and don't know what to do. Can someone please help me?