<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js缓冲效果原理</title>
</head>

<body>
<div >
</div>
<div ></div>
<script type="text/javascript">
var k=0;
function change(){
	h=Math.ceil(0.1*(100-k));
	k=k+h;
	document.getElementById("num").innerHTML=k;
	document.getElementById("ad").style.top=k+"px";
}
setInterval(change,100);
</script>
</body>
</html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-11-28
  • 2021-11-28
猜你喜欢
  • 2022-01-12
  • 2021-12-24
  • 2021-12-03
  • 2021-09-19
  • 2022-12-23
  • 2021-08-19
相关资源
相似解决方案