案例:HTML DOM案例     状态:可编辑再运行    进入横版
x
<a href="http://www.so.com" onmousemove="cursor('使用 360搜索 进行搜索!')" onmouseout="hidecursor()">360so</a><br />
 
1
<html>
2
<head>
3
<style>
4
body
5
{
6
background:#000000;
7
color:#00FF00;
8
font-weight:bold;
9
}
10
a{color:#CCCCCC;}
11
</style>
12
13
<script type="text/javascript">
14
function cursor(text)
15
{
16
trail.innerHTML=text
17
trail.style.visibility="visible"
18
trail.style.position="absolute"
19
trail.style.left=event.clientX+10
20
trail.style.top=event.clientY
21
}
22
23
function hidecursor()
24
{

 运行结果 
 北美留学生论坛