案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function changeCursor()
5
{
6
document.body.style.cursor="crosshair";
7
document.getElementById("p1").style.cursor="text";
8
}
9
</script>
10
</head>
11
<body>
12
13
<p id="p1">This is some text. This is some text. This is some text.
14
This is some text. This is some text. This is some text.
15
This is some text. This is some text. This is some text.</p>
16
17
<input type="button" onclick="changeCursor()" value="Change cursor" />
18
19
</body>
20
</html>
21