电脑运算能力:
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write("<input type=button value=开始测试 οnclick=check()>");
function timer() {
return new Date().getTime();
}
function check() {
ts=timer();
for(i=0;i<500000;i++)
temp=1+1;
te=timer();
document.write("执行50万次加法运算时间为:"+(te-ts)+"毫秒<p>");
ts=timer();
for(i=0;i<200000;i++)
temp=Math.sqrt(2);
te=timer();
document.write("执行20万次浮点运算时间为:"+(te-ts)+"毫秒");
}
//-->
随鼠标移动改变表格颜色:
οnmοuseοver=this.style.backgroundColor='#66FF99' οnmοuseοut=this.style.backgroundColor='#FFFFFF'
OR
tr {
star : expression(
οnmοuseοver=function() { this.style.backgroundColor="#66FF99"},
οnmοuseοut=function(){this.style.backgroundColor="#FFFFFF" }
) }