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
Mouse Hover Example
Mithilesh Kumar
Jul 03
2016
Code
499
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<html >
<head >
<title></title>
<script src=
"Scripts/jquery-2.1.1.js"
type=
"text/javascript"
></script>
<script type=
"text/javascript"
>
$(document).ready(
function
(){
$(
"h1"
).hover(
function
(){
$(
this
).attr(
"style"
,
"border:5px solid red; color:green; background-color:yellow;width:400px"
);
},
function
(){
$(
this
).attr(
"style"
,
"border:2px solid green; color:red;background-color:aqua;width:400px"
);
});
});
</script>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div align=
"center"
>
<h1 style=
"width:400px"
> Welcome To JQuery</h1>
</div>
</form>
</body>
</html>
JQuery
HTML