TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Change The Image When Mouse Out Using Onmousemove Event In JavaScript
Delpin Susai Raj
Aug 25
2016
Code
694
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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