I've four links on my HTML page. The code is as follows :
<a class="lb" href="home.php"><img id="imgH" src="Bhome.png" onmouseover="onHover();"/></a>
<a class="lb" href="AboutUs.php"><img id ="imgA" src="Babout.png" onmouseover="onHover();" /></a>
<a class="lb" href="code.php"><img id ="imgC" src="Bcode.png" onmouseover="onHover();" /></a>
<a class="lb" href="login.php"><img id="imgL" src="Blogin.png" onmouseover="onHover();" /></a>
On hover, I'd like to change the corresponding image to a different one. I do not wish to write a different function for every image tag. In the Javascript function, how do I find out which img tag called the onHover function?