案例:HTML DOM案例     状态:可编辑再运行    进入横版
x
<tr><td onmouseover="inset(this)" onmouseout="outset(this)"><a href="http://www.microsoft.com">Explorer</a></td></tr>
 
1
<html>
2
<head>
3
4
<script type="text/javascript">
5
function inset(elmnt)
6
{
7
elmnt.style.border="inset 2"
8
}
9
10
function outset(elmnt)
11
{
12
elmnt.style.border="outset 2"
13
}
14
</script>
15
16
<style>
17
td
18
{
19
background:C0C0C0;
20
border:2px outset;
21
}
22
23
</style>
24
</head>

 运行结果 
 北美留学生论坛