-
Notifications
You must be signed in to change notification settings - Fork 0
/
mouse_event.html
32 lines (31 loc) · 976 Bytes
/
mouse_event.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
<!DOCTYPE html>
<html>
<head>
<title>mouse event</title>
<script type="text/javascript">
function img(n)
{
document.bgColor=n.bgColor;
}
</script>
</head>
<body>
<table>
<tr>
<td bgcolor="black" height="50" width="50" onmouseup="img(this)"></td>
<td bgcolor="red" height="50" width="50" onmousedown="img(this)"></td>
<td bgcolor="pink" height="50" width="50" onmousedown="img(this)"></td>
</tr>
<tr>
<td bgcolor="blue" height="50" width="50" onmousedown="img(this)"></td>
<td bgcolor="yellow" height="50" width="50" onmousedown="img(this)"></td>
<td bgcolor="green" height="50" width="50" onmousedown="img(this)"></td>
</tr>
<tr>
<td bgcolor="gray" height="50" width="50" onmousedown="img(this)"></td>
<td bgcolor="#FF0938" height="50" width="50" onmousedown="img(this)"></td>
<td bgcolor="white" height="50" width="50" onmousedown="img(this)"></td>
</tr>
</table>
</body>
</html>