网页这段代码什么意思可以翻译下吗?

来源:百度知道 编辑:UC知道 时间:2024/07/03 00:25:51
<script language="JavaScript" type="text/javascript">

var DispClose = true;

function CloseEvent()
{
if (DispClose)
{
return "是否离开当前页面?";
}
}
rnd.today=new Date();

rnd.seed=rnd.today.getTime();

function rnd() {

rnd.seed = (rnd.seed*9301+49297) % 233280;

return rnd.seed/(233280.0);

};

function rand(number) {

return Math.ceil(rnd()*number);

};

function AlertMessageBox(Messages)
{
DispClose = false;
window.location.href = location.href+"?"+rand(1000000);
alert(Messages);
}

谢谢,最好可以每一句一句的翻译。还有我用变速齿轮加快网页速度。服务器会不会发现异常??会不会记录开始学习时间与结束时间
我想知道我如果采用变速齿轮加快速度。。服务器会不会发现异常。。还是从这个代码里看不出来能不能发现异常

<script language="JavaScript" type="text/javascript">

//定义一个BOOL类型的变量
var DispClose = true;

//函数
function CloseEvent()
{
if (DispClose)
{
return "是否离开当前页面?";
}
}
//生成一个Date对象
rnd.today=new Date();

//设置种子为当前时间
rnd.seed=rnd.today.getTime();

//稍长随机数
function rnd() {

rnd.seed = (rnd.seed*9301+49297) % 233280;

return rnd.seed/(233280.0);

};

//取整数
function rand(number) {

return Math.ceil(rnd()*number);

};
//弹出对话框
function AlertMessageBox(Messages)
{
DispClose = false;
window.location.href = location.href+"?"+rand(1000000);//网页刷新 后面加的是rnd函数删除的整数。
alert(Messages);//弹出提示
}

你打开百度,
找再线翻译,
在你这个复制过去,就好了..