Just to make sure that you understand about what you are gonna learn in this tutorial, please try to hover your cursor on the image below:
Get the idea? When you hover your cursor on "#0", it will change to "#1". And then, it will be changed back to "#0", once you move your cursor away from the image. Let's see how to make it!
We only need to use "onmouseover" and "onmouseout" inside the image tag. Let's get started by looking the HTML below or you can copy and paste the code to the code editor that you have installed in your computer:
Here's the explanation. First of all, we load the image source which is "#0". By using the "onmouseover", when you hover your cursor on the image, it will be changed to "#1". And then, you can use the "onmouseout" to change the picture to another picture (in this case is "#0") when you move your cursor away from the picture.
It's easy, isn't it? Try it yourself and Good Luck!
Labels: Change Picture By Using "onmouseover" And "onmouseout" in HTML, HTML, onmouseout, onmouseover, Website and Web Programming