最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

多线程的全选复选框_表单特效

来源:动视网 责编:小采 时间:2020-11-27 20:33:38
文档

多线程的全选复选框_表单特效

多线程的全选复选框_表单特效: 代码如下: BODY {FONT-SIZE: 9pt;} table {FONT-SIZE: 9pt;} 全部选择 线程数: /* This following code are designed and writen by Windy_sk You can use it freely, but u must hel
推荐度:
导读多线程的全选复选框_表单特效: 代码如下: BODY {FONT-SIZE: 9pt;} table {FONT-SIZE: 9pt;} 全部选择 线程数: /* This following code are designed and writen by Windy_sk You can use it freely, but u must hel


代码如下:

    
线程数:













/*
This following code are designed and writen by Windy_sk
You can use it freely, but u must held all the copyright items!
*/
var total = 505;
var thread_num;
var pre_thread;
var thread = new Array();
var completed = 0;
var start_time = null;

for(i=0;i");

function init_para(){
thread_num = parseInt(the_thread.value);
if(isNaN(thread_num)) thread_num = 10;
pre_thread = Math.floor(total/thread_num);
result.innerText = "";
bar1.style.width = "0%";
bar2.style.width = "100%";
bar.style.display = "";
}

function check_all(){
checkall.disabled = true;
init_para();
for(var i=0;ithread[i]=[setInterval("thread["+i+"][1]}
thread[i]=[setInterval("thread["+i+"][1]}

function check_unit(num){
if(completed==0)start_time=new Date;
cbox[num].checked=checkall.checked;
completed++;
var cur_rate = Math.round(completed*100/total);
show.innerText = completed + "/" + total + " : " + cur_rate + "%";
bar1.style.width = cur_rate + "%";
bar2.style.width = (100-cur_rate) + "%";
if(completed == total){
completed = 0
checkall.disabled = false;
result.innerText = "("+total+"单元/"+thread_num+"线程,总共耗时:"+((new Date)-start_time)+" ms)";
}
}


下面是运行效果

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

文档

多线程的全选复选框_表单特效

多线程的全选复选框_表单特效: 代码如下: BODY {FONT-SIZE: 9pt;} table {FONT-SIZE: 9pt;} 全部选择 线程数: /* This following code are designed and writen by Windy_sk You can use it freely, but u must hel
推荐度:
标签: 特效 全选 表单
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top