网页灯光效果
2014-10-09来源:易贤网

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>页面灯光</title>

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

</head>

<body id="mybody" style="filter:light(enabled=1);" bgcolor="#ffffff" text="#000000">

<div

id="Layer1" style="height: 32; left: 66; position: absolute; top: 41; width: 52">

<dd>

<div align="right">

<img src="蜡烛图片路径" width="29" height="30"> </div>

</dd>

</div>

<p align="center"><b><font size="5">网站制作学习 </font></b>

</p>

<table border="0" width="100%">

<tr>

<td width="82%"><font face="宋体" color="#FF00FF" style="font-size: 9pt">

</font><span style="font-size: 9pt">

<br><br><br><br><br><br><br><br><br><center>网站制作学习

</center><br><br><br><br><br><br><br><br><br><br><br>

  </span></td>

</tr>

</table>

<script language="vbscript">

dim red,gre,blu

dim x,y,z

red=255

gre=255

blu=0

z=100

sub window_onload()

call mybody.filters.light.addPoint(0,0,z,Red,Gre,Blu,100)

mybody.style.cursor="hand"

end sub

sub document_onmousemove()

x=window.event.x

y=window.event.y

call mybody.filters.Light.MoveLight(0, x, y, 100, 1)

end sub

</script>

<script language="javascript">

//这是使图层移动的函数

function move_layer()

{

Layer1.style.left=event.clientX+document.body.scrollLeft-50;

Layer1.style.top=event.clientY+document.body.scrollTop-20;

}

//这里的意思是,如果鼠标移动时就调用"move_layer"函数

document.onmousemove =move_layer;

</script>

</body>

</html>

更多信息请查看IT技术专栏

2025公考·省考培训课程试听预约报名

  • 报班类型
  • 姓名
  • 手机号
  • 验证码
推荐信息