• 状态栏,显示一个病毒的发作过程(纯属无聊,白痴才会当真的.)


    状态栏,显示一个病毒的发作过程(纯属无聊,白痴才会当真的.)

    <script>
    window.onerror=null;
    var down;
    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));
    }
    //代码来自:Net0and1.com
    function faketake(percent1){
    if(percent1 < 100){
    percent1++;
    window.status="正在下载病毒: In Progress: "+percent1+"% Complete";
    fid1=window.setTimeout("faketake("+percent1+")",25)

    } else {

    fid1=window.setTimeout("fakeformat(0)",150);

    }
    }

    function fakeformat(percent){
    if(percent < 100){
    percent++;
    window.status="正在把病毒传给 C:\ "+percent+"% Complete";
    fid=window.setTimeout("fakeformat("+percent+")",150); // 900
    } else {
    window.status="文件已经被病毒感染,下次启动时发作,世界真是黑暗..哈哈!!!";
    }
    }
    window.setTimeout('faketake(-1)',200);

    </script>

  • 相关阅读:
    colormap
    tensorflow4
    tensorflow3
    attention 机制
    tensorflow2
    Android 再谈handler
    Android表格布局之设置边框
    Android AsyncTask异步加载WebAPI
    Android JPush极光推送应用
    Android规划周期任务
  • 原文地址:https://www.cnblogs.com/linmilove/p/1501157.html
Copyright © 2020-2023  润新知