Home  >  Article  >  php教程  >  由页面倾斜扩展的页面晃动

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

PHP中文网
PHP中文网Original
2016-05-25 17:06:46945browse

跳至

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);

                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:wordpress随机背景Next article:php月历类