案例:JavaScript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script src="/js/prototype1.7.2.js"></script>
5
<script>
6
function myFunction()
7
{
8
$("h01").writeAttribute("style","color:red").insert("Hello Prototype!");
9
}
10
Event.observe(window,"load",myFunction);
11
</script>
12
</head>
13
14
<body>
15
<h1 id="h01"></h1>
16
</body>
17
</html>