网站制作

本类阅读TOP10

·IIS 安装配置全攻略
·用VS.NET打开网上下载的.NET web项目出错的解决办法
·HTML 4.0 语言快速参考
·限制TextArea区的文字输入数量
·如何在网页上实现进度条
·Apache的配置步骤及测试
·谈谈Jesse James Garrett提到的Ajax
·html基础学习笔记(2)
·页面垂直居中的两种方法
·用asp遍历目录下文件的例子

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
控制浏览器运动的几个按钮

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

<html>
<head>

<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#000000" text="#999999" link="#33FF33" vlink="#33FF33" alink="#33FF33">
<script>
var xx
var v=1


function ml() {
clearTimeout(xx)
window.moveBy(-v, 0);

xx = setTimeout("ml()",140)
}
function mr() {
clearTimeout(xx)
window.moveBy(v, 0);
xx = setTimeout("mr()",140)
}
function mu() {
clearTimeout(xx)
window.moveBy(0, -v);
xx = setTimeout("mu()",140)
}
function md() {
clearTimeout(xx)
window.moveBy(0, v);
xx = setTimeout("md()",140)
}
function ws(){
clearTimeout(xx)
}
function adj(i){

if (i==1){v+=1; if (v>5)v-=1}
else {v-=1
if (v==0)v=1}
}
</script>
<DIV align=center>
<FORM>
   <INPUT onclick=mu(v,0); type=button value=向上>
   
   <INPUT onclick=ml(v,0); type=button value=向左>
   
   <INPUT onclick=mr(0,v); type=button value=向右>
   
   <INPUT onclick=md(0,v); type=button value=向下>
   
   <INPUT onclick=ws(); type=button value=停止>
   <BR><BR><BR>
   <INPUT onclick=adj(1); type=button value=加速>
   <INPUT onclick=adj(0); type=button value=减速>
    <BR></FORM></DIV>
</body>
</html>




相关文章

相关软件