案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function setStyle()
5
{
6
document.body.style.background="#FFCC80 url(/img/eg_bg_desert.jpg) repeat-y";
7
}
8
</script>
9
</head>
10
<body>
11
12
<input type="button" onclick="setStyle()" value="Set background style" />
13
14
</body>
15
</html>
16