java1200例-文字的探照灯效果

时间:2023-03-08 17:47:24
<style>
.mydiv{
color:white;
filter:light;
height:;
font-size:35px;
left:10px;
position:relative;
top:10px;
width:400px;
}
</style>
<script type="text/javascript">
function init(){ document.all.div1.filters.light.addAmbient(,,,);
document.all.div1.filters.light.addCone(,,,,,,,,,);
}
function move(){
document.all.div1.filters.light.moveLight(,window.event.x-,window.event.y,,);
} </script>
<body onload="init()" onmousemove="move()">
<div id="div1" class="mydiv">
今天天气阴
</div>
</body>

效果图:

java1200例-文字的探照灯效果