如何将鼠标特效的代码加入到body区域?请作个示范,如下:

来源:百度知道 编辑:UC知道 时间:2024/05/22 03:37:55
http://www.toto369.net/sbtx/sbtx9.htm
完全不懂什么叫body区域

简单的说,网页是HTML语言.

具体格式如下:
<html>
<head>表头</head/>
<body>主体</body>
<html/>

body是最基本最主要的环节.网页中所有的文字图及等都是在BODY代码中.

鼠标效果示例:
(直接复制,然后找到你要放的网页的代码<body>之后,</body>之前)

<script language="JavaScript">
<!--
//To add more stars simply add more colours in below array!!
colours=new Array('ff0000','00ff00','3366ff','ff00ff','ffa500','ffffff','fff000')

//Alter nothing below!!
amount=colours.length;
YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,ns=(document.layers)?1:0,step=0.2,currStep=0,my=0,mx=0;
if (ns){
for (i=0; i < amount; i++)
document.write('<LAYER NAME="nsstars'+i+'" BGCOLOR='+colours[i]+' CLIP="0,0,2,2"></LAYER>');
}
else{
document.write('<div id="ie" style="pos