欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

由页面倾斜扩展的页面晃动

程序员文章站 2022-05-18 15:28:03
...
跳至
var i = 1;
var num = 0.1;
var j = 20;
var nums = -17;
function Jump(){
	if(num>0){
		num = num + (i*0.1);
	}else{
		num = num - (i*0.1);
	}
	num = 0-num;
	var a = document.getElementById("test");
    a.innerHTML =""
	i++;
	if(i0){
		nums = nums - (j*0.1);
	}else{
		nums = nums + (j*0.1);
	}
	nums = 0-nums;
	var a = document.getElementById("test");
    a.innerHTML =""
	j--;
	if(j>1){
		document.onload = setTimeout("Jumps()",500);
	}
}
document.onload = setTimeout("Jump()",3000);