Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
ZoomIn & ZoomOut of image on mouse over event
WhatsApp
Ghanashyam Nayak
4y
13.7
k
0
1
25
Blog
<html>
<head>
<title>Sample Code</title>
<script language=
'javascript'
>
function
zoomIn ()
{
document.getElementById(
'myImage'
).style.height=350;
document.getElementById(
'myImage'
).style.width=400;
}
function
zoomOut()
{
document.getElementById(
'myImage'
).style.height=100;
document.getElementById(
'myImage'
).style.width=150;
}
</script>
</head>
<body bgcolor=#00ff00 alink=blue vlink=blue>
<FORM name=
"windowEvent"
>
<img src=
"D:\551005.JPG"
name=
"myImage"
height=
"100"
width=
"150"
onmouseover=
'zoomIn ();'
onmouseout=
'zoomOut();'
> </img>
</FORM>
</body>
</html>
ZoomIn ZoomOut of image on mouse over event
Up Next
Javascript-Open new Popup Window on button click event
Ebook Download
View all
Voice of a Developer: JavaScript From Scratch
Read by 10.9k people
Download Now!
Learn
View all
Membership not found