-
Notifications
You must be signed in to change notification settings - Fork 0
/
p10-2.html
32 lines (32 loc) · 859 Bytes
/
p10-2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
<head>
<title>Image Toggle</title>
<style type="text/css">
#image1 {position:absolute; top:100; left:100px; border:thin; visibility:visible;}
#image2 {position:absolute; top:100; left:100px; border:thin; visibility:hidden;}
</style>
<script type="text/javascript">
function toggle()
{
var img1=document.getElementById("image1").style;
var img2=document.getElementById("image2").style;
if(img1.visibility=="visible")
{
img1.visibility="hidden";
img2.visibility="visible";
}
else
{
img1.visibility="visible";
img2.visibility="hidden";
}
}
</script>
</head>
<body>
<form>
<img src="D:\anu_pic.jpg" id="image1" heigth="100" width="80" onmouseover="toggle()" onmouseout="toggle()"></img>
<img src="D:\anu_pic1.jpg" id="image2" heigth="100" width="80" onmouseover="toggle()" onmouseout="toggle()"></img>
</form>
</body>
</html>