katieflygirl
asked on
onmouseover image swap in different location on page
I have a script that has an onmousemover effect that displays the image in a different location in the same page. I would like this to be another image, rather than the one that I just rolled over.
<script type="text/javascript">
function showIt(imgsrc)
{
document.getElementById('imageshow').src=imgsrc;
}
function hideIt()
{
document.getElementById('imageshow').src="aliceyoga.jpg";
}
</script>
<body>
<img src="images/step1.jpg" onmouseover="showIt(this.src)" onmouseout="hideIt()"><br>
<img src="images/STEP2.jpg" onmouseover="showIt(this.src)" onmouseout="hideIt()">
</body>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER