案例:HTML DOM案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function setlight()
5
{
6
document.getElementById('light_div').filters[0].addcone(0,0,0,60,60,115,132,214,100,100);
7
}
8
</script>
9
<style>
10
div
11
{
12
width:100px;
13
}
14
</style>
15
16
</head>
17
<body onload="setlight()">
18
图像:"landscape.jpg" 没有光照效果:<br />
19
<img src="/img/eg_landscape.jpg" width="160" height="120" />
20
<br />
21
<br />
22
同一个图像,带有光照效果:<br />
23
<div id="light_div" style="filter:light(enabled=1);">
24
<img src="/img/eg_landscape.jpg" width="160" height="120" />
25
</div>
26
</body>
27
</html>
28