打开页面,登录框开始仿重力向下弹跳,背景轮播,后台管理员通用登录后台模板
var oMove=document.querySelectorAll('.move');
var len=oMove.length;
var timer=null;
var timeout=null;
var speed=3;
move(len-1);
function move(index){
if(index<0){
clearInterval(timer);
clearTimeout(timeout);
return;
}
var end=150+(index*60);
timer=setInterval(function(){
speed+=3;
var T=oMove[index].offsetTop+speed;
if(T>end){
T=end;
speed*=-1;
speed*=0.4;
}
oMove[index].style.top=T+'px';
},20);
timeout=setTimeout(function () {
clearInterval(timer);
index--;
move(index);
},900);
}
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791