小代码
来源:互联网 发布:国际能源小数据 编辑:程序博客网 时间:2024/03/29 05:30
电脑运算能力:
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write("<input type=button value=开始测试 onclick=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)+"毫秒");
}
//-->
随鼠标移动改变表格颜色:
onmouseover=this.style.backgroundColor='#66FF99' onmouseout=this.style.backgroundColor='#FFFFFF'
OR
tr {
star : expression(
onmouseover=function() { this.style.backgroundColor="#66FF99"},
onmouseout=function(){this.style.backgroundColor="#FFFFFF" }
) }
- 小代码
- 小代码
- 小代码
- 小代码、小算法
- 网页代码小技巧
- javascript 小代码
- 小整人脚本代码
- 一段小代码
- 记录小代码
- 网络小代码
- Javascript简短小代码
- 一些小用处代码
- VC 小技巧代码
- 各种小代码片段
- 代码统计小程序
- 小代码(C)
- 小代码(PHP)
- 经典小代码
- build a tool in scons, then using it
- Useful software
- 个人的开篇声明
- CollectionEditor 成员
- 如何建立与控制你的营销渠道
- 小代码
- 小企业如何建立自己的销售渠道?
- 销售渠道管理的“欲擒故纵”和“移花接木”技巧
- 渠道竞争中攻击对手的原则和方法
- 新创企业该如何选择分销渠道?(1)
- infopath 一个应用(转)
- 新创企业该如何选择分销渠道?(2)
- 关于Asp.net中Cookie的问题
- C#写的Win2000关机代码