
Untitled
By: a guest on
Jun 21st, 2012 | syntax:
None | size: 0.48 KB | hits: 10 | expires: Never
Mouseover effect to change a center div when mousing over other divs
<html>
<head>
<title>Detecting browser close in IE</title>
<script type="text/javascript">
function changeImg()
{
document.getElementById("image").src="new image location here";
}
</script>
</head>
</script>
</head>
<body >
<div align="center">
<img src="imagelocation here" alt="myclass" id="image" />
</div>
<div id="div2" align="left" onmouseover="changeImg()">
Drag Ur mouse to change image
</div>
</body>
</html>