设为首页 加入收藏
当前位置:首页 > 整站内容 > 特效代码 > 状态栏特效 > 详细内容
状态栏显示虚拟格式化硬盘
发布时间:2010-3-28  阅读次数:8376  字体大小: 【】 【】【

<html>
<head>
<title>网页特效|Linkweb.cn/Js|---状态栏显示虚拟格式化硬盘</title>
<style type="text/css">
<!--
body {   font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 4px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: none }
  A:hover { COLOR: red; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active         { font: 9pt "宋体"; cursor: hand; color: #FF0033 }
--></style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide

function killErrors() {
return true;
}

window.onerror = killErrors;

// -->
</SCRIPT>

<br>
<br>
<center><font color=red face="隶书" size=6>虚拟格式化硬盘</font></center>
<br>
<center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>状态栏为脚本显示区</strong></font></td></tr></table></center>
<script language="JavaScript">

<!--
// Copyright 1996 Jon Eyrick - scripter@actionaccess.com
window.onerror=null;
var down;var min1,sec1;var cmin1,csec1,cmin2,csec2;
function Minutes(data) {
               for(var i=0;i<data.length;i++)
                               if(data.substring(i,i+1)==":")
                               break;  
                               return(data.substring(0,i));
}
function Seconds(data) {              
               for(var i=0;i<data.length;i++)
                               if(data.substring(i,i+1)==":")
                               break;  
                               return(data.substring(i+1,data.length));
}
function Down() {            
               cmin2=1*Minutes(document.sw.disp1.value);            
               csec2=0+Seconds(document.sw.disp2.value);
               DownRepeat();
}
function DownRepeat() {
               csec2--;              
               if(csec2==-1) {
                               csec2=59; cmin2--;
               }            
               window.setTimeout('fakeformat(-1)',200);
               }
function D() {  
               cmin2=1*Minutes(document.sw.disp1.value);            
               csec2=0+Seconds(document.sw.disp2.value);
               DRepeat();
}
function DRepeat() {      
               csec2--;              
               if(csec2==-1) {
                               csec2=59; cmin2--;
               }            
               self.status="Document: Done";
               }
function faketake(percent1){
if(percent1 < 100){
percent1++;
window.status="Upload of drive C:\\ in progress: "+percent1+"% complete";
fid1=window.setTimeout("faketake("+percent1+")",200);
}else{
window.status="Upload of hard drive complete.. Now deleting...";Down();}}
function fakeformat(percent){
if(percent < 100){
percent++;
window.status="Format of drive C:\\ in progress: "+percent+"% complete";
fid=window.setTimeout("fakeformat("+percent+")",360); // 900
}else{
window.status="Format of hard drive complete...";D();}}
window.setTimeout('faketake(-1)',200);
// End -->

</script>

<br>
<br>
<center>

<SCRIPT LANGUAGE="JavaScript">

<!-- hide
function goHist(a)
{
     history.go(a);
}
//-->
</script>
</center>
<br>
<center>
&nbsp;<br>
<br>
</body>
</html>

预览效果

天猫商城    聚划算    天猫电器城    淘宝旅行    天猫超市    淘宝游戏    天猫品牌特卖    天猫母婴

我要评论
  • 匿名发表
  • [添加到收藏夹]
  • 发表评论:(匿名发表无需登录,已登录用户可直接发表。) 登录状态:未登录
最新评论
所有评论[0]
    暂无已审核评论!

全站链接: 
收录查询
分享按钮