C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Change The Image When Mouse Out Using Onmousemove Event In JavaScript
WhatsApp
Delpin Susai Raj
Aug 25
2016
785
0
0
Onmouseout Events.ra
<html>
<head>
<script type=
"text/javascript"
>
function
mouseOver() {
document.getElementById(
"b1"
).src =
"Water lilies.jpg"
;
}
function
mouseOut() {
document.getElementById(
"b1"
).src =
"Sunset.jpg"
;
}
</script>
</head>
<body>
<a href=
"Onclick.html"
target=
"_blank"
> <img border=
"0"
alt=
"Visit Onclick!"
src=
"Water lilies.jpg"
id=
"b1"
width=
"260"
height=
"260"
onmouseover=
"mouseOver()"
onmouseout=
"mouseOut()"
/></a>
</body>
</html>
JavaScript
Up Next
Change The Image When Mouse Out Using Onmousemove Event In JavaScript