Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
Advertisement
Add Comment
Please, Sign In to add comment