宁国先锋网62

网址:http://www.ngxf.gov.cn/   

标题:宁国先锋网

描述:宁国先锋网 var mh = 40; 最小高度var step1 = 100; 每次变化的px量var ms = 10; 每隔多久循环一次折叠速度的设置方法function toggle(o,type){ if (!o.tid)o.tid = _ + Math.random() * 100; if (!window.toggler)window.toggler = {}; if (!window.toggler[o.tid]){ window.toggler[o.tid]={ obj:o, maxHeight:o.offsetHeight, minHeight:mh, timer:null, action:1 }; } o.style.height = o.offsetHeight + px; if (window.toggler[o.tid].timer)clearTimeout(window.toggler[o.tid].timer); window.toggler[o.tid].action *= -1; window.toggler[o.tid].timer = setTimeout(anim(+o.tid+),ms );注意计时器的用法 if(type==up) { document.getElementById(down).style.display = block; document.getElementById(up).style.display = none; document.getElementById(_Node).style.display = none; }else { document.getElementById(down).style.display = none; document.getElementById(up).style.display = block; document.getElementById(_Node).style.display = block; }}通过对象的最小高度和最大高度,判断折叠是否停止function anim(id){ var t = window.toggler[id]; var o = window.toggler[id].obj; if (t.action 0){ if (o.offsetHeight = t.maxHeight){ clearTimeout(t.timer); return; } } o.style.height = (parseInt(o.style.height, 10) + t.action * step1) + px; window.toggler[id].timer = setTimeout(anim(+id+),ms );}var t = 0; function show() { if (t 0) { clearInterval(time); } else { if (document.getElementById(down).style.display != block) { toggle(_Node, up); } } t++; }var time = setInterval(show(), 3000);

关键词: var mh = 40; 最小高度var step1 = 100; 每次变化的px量var ms = 10; 每隔多久循环一次折叠速度的设置方法function toggle(o,type){ if (!o.tid)o.tid = _ + Math.random() * 100; if (!window.toggler)window.toggler = {}; if (!window.toggler[o.tid]){ window.toggler[o.tid]={ obj:o, maxHeight:o.offsetHeight, minHeight:mh, timer:null, action:1 }; } o.style.height = o.offsetHeight + px; if (window.toggler[o.tid].timer)clearTimeout(window.toggler[o.tid].timer); window.toggler[o.tid].action *= -1; window.toggler[o.tid].timer = setTimeout(anim(+o.tid+),ms );注意计时器的用法 if(type==up) { document.getElementById(down).style.display = block; document.getElementById(up).style.display = none; document.getElementById(_Node).style.display = none; }else { document.getElementById(down).style.display = none; document.getElementById(up).style.display = block; document.getElementById(_Node).style.display = block; }}通过对象的最小高度和最大高度,判断折叠是否停止function anim(id){ var t = window.toggler[id]; var o = window.toggler[id].obj; if (t.action 0){ if (o.offsetHeight = t.maxHeight){ clearTimeout(t.timer); return; } } o.style.height = (parseInt(o.style.height, 10) + t.action * step1) + px; window.toggler[id].timer = setTimeout(anim(+id+),ms );}var t = 0; function show() { if (t 0) { clearInterval(time); } else { if (document.getElementById(down).style.display != block) { toggle(_Node, up); } } t++; }var time = setInterval(show(), 3000);

大小:15.94140625 KB

耗时:0.385686 秒(DNS:0.050752秒,连接:0.0864秒)

服务器IP:211.149.155.153

端口:80

百度来路:9 ~ 33

百度PC权重:0 (IP:2 ~ 3)

百度移动权重:0 (IP:7 ~ 30)

最后更新时间:2022-05-05 10:13:06

By None By None 发布于:2022-05-05 地区:未知地区

本页面网站信息由AI程序/用户上传完成收录,有侵权或违规信息请联系QQ543896726处理!


上一个:清华大学五道口金融学院

下一个:胡辣汤配方_胡辣汤的做法_胡辣汤加盟_胡辣汤 - 逍遥高老大胡辣汤