SOURCE

console 命令行工具 X clear

                    
>
console
	var va="|",tthis="",i=0,di=".";
	//跳转本级目录主页链接函数
	function a(){
		var url=location.href,n=url.lastIndexOf("/");
		url = url.split("");
		for(i;i<n+1;i++){
		tthis=tthis+url[i];
		}
		location.href = tthis+"index.html";//添加你本级目录要跳转的文件
	}
	//省略号
	function dia(){
		di=(di.length==3)?di=".":di=di+".";
		dian.innerHTML=di;
	}
	//进度条
	function plus(){
		if(va.length!=100){
		va = va+"|";
		span.innerHTML= va.length+"%";
		text.value=va;
		}else{
		//a();
    alert("为了防止http://jsrun.net/多次乱跳下面跳转代码暂时注释");
    clearInterval(go);//使用时将这一行删除
		}
	}
	//自动定时区
	go = setInterval(plus,60);
	d = setInterval(dia,400);
	var goRun = 1;
	//按钮功能区
	function p()/*暂停函数*/{
		clearInterval(go);
		clearInterval(d);
		goRun = 0;
	}
	function t()/*继续函数*/{
		if(goRun==0){
		go = setInterval(plus,60);
		d = setInterval(dia,400);
		goRun = 1;
		}else{
		alert("计时器没有暂停!");
		}
	}
<title>您要访问的地址找不到了...</title>
<!-- <link rel="stylesheet" href="404.css">
<script src="404.js"></script> -->
<h1>您所访问的页面去火星旅游了,请在首页等它回来<span id="dian"></span></h1>
<img src="http://oss.eryun.top/404.png" alt="404欣赏图片">
<span id="span"></span>
<input type="text" id="text" readonly value="">
<a href="javascript:p();" id="pause">暂停观赏</a>
<a href="javascript:t();" id="pp">继续进度</a>
<a href="javascript:a();" id="play">迫切离开</a>
h1{
		width: 100%;
		text-align: center;
	}
	img{
		display: block;
		max-width: 45%;
		margin: 0 auto;
	}
	#span{
		display: block;
		height: 20px;
		text-align: center;
	}
	input{
		display: block;
		width: 675px;
		margin: 0 auto;
		font-weight: bold;
		font-size: 24px;
		border: 0;
	}
	a{
		float: left;
		width: 32%;
		height: 30px;
		margin: 50px 0 0;
		line-height: 30px;
		border: 2px solid red;
		text-align: center;
	}