</body> <script> docu " /> 成人网络电视破解版,极品美女久久久久久久久久久,免费一区二区三区久久

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

一個(gè)已封裝好的漂亮進(jìn)度條





復(fù)制代碼 代碼如下:
<body>
<input type="button" value="start" onclick="processBar.changeMode();if(processBar.isMoving){this.value='Stop';}else{this.value='Start';}">

</body>
<script>
document.execCommand("BackgroundImageCache",false,true);

function ProcessBar(){
   this.width = 256;
   this.height = 18;
   this.top = 0;
   this.left = 0;
   this.backImg = "process_back.gif";
   this.foreImg = "process.gif";
   this.backDiv = document.createElement("div");
   this.foreDiv = document.createElement("div");
   this.fontDiv = document.createElement("div");

   this.isMoving = false;
   this.nowLength = 0;
   this.moveInterval = 100;
   this.moveRange = 1;
   this.timer;

   ProcessBar.nowObj = this;

   this.init = function(){
        this.foreDiv.style.backgroundImage = "url(" + this.foreImg + ")";
        this.foreDiv.style.backgroundRepeat = "no-repeat";
        this.foreDiv.style.position = "absolute";
        this.foreDiv.style.width = this.nowLength;
        this.foreDiv.style.height = this.height;
        this.foreDiv.style.top = 0;
        this.foreDiv.style.left = 0;

        this.fontDiv.style.background = "transparent";
        this.fontDiv.style.position = "absolute";
        this.fontDiv.style.width = this.width;
        this.fontDiv.style.height = this.height;
        this.fontDiv.style.top = 2;
        this.fontDiv.style.left = 0;
        this.fontDiv.style.textAlign = "center";
        this.fontDiv.style.fontSize = "13px";
        this.fontDiv.appendChild(document.createTextNode(" "));

        this.backDiv.style.backgroundImage = "url(" + this.backImg + ")";
        this.backDiv.style.backgroundRepeat = "no-repeat";
        this.backDiv.style.position = "absolute";
        this.backDiv.style.width = this.width;
        this.backDiv.style.height = this.height;
        this.backDiv.style.top = this.top;
        this.backDiv.style.left = this.left;

        this.backDiv.appendChild(this.foreDiv);
        this.backDiv.appendChild(this.fontDiv);

        document.body.appendChild(this.backDiv);
   }

   this.changeMode = function(){
        this.isMoving = !this.isMoving;

        if(this.isMoving){
            this.timer = window.setInterval(ProcessBar.nowObj.moving, this.moveInterval);
        }else{
            window.clearInterval(this.timer);
        }
   }

   this.moving = function(){
        ProcessBar.nowObj.nowLength += ProcessBar.nowObj.moveRange;
        ProcessBar.nowObj.foreDiv.style.width = ProcessBar.nowObj.nowLength;

        ProcessBar.nowObj.fontDiv.firstChild.data = Math.ceil((ProcessBar.nowObj.nowLength/ProcessBar.nowObj.width )*100) + "%";

        if(ProcessBar.nowObj.nowLength >= ProcessBar.nowObj.width ){
            window.clearInterval(ProcessBar.nowObj.timer);
            ProcessBar.nowObj.fontDiv.firstChild.data = "Complete!";
        }
   }

   
}

var processBar = new ProcessBar();
processBar.backImg = "/upload/2007415102314868.gif"; processBar.foreImg = "/upload/2007415102319734.gif"; processBar.top = 100;
processBar.left = 20;
processBar.init();
</script>



[Ctrl+A 全選 注:如需引入外部Js需刷新才能執(zhí)行]

JavaScript技術(shù)一個(gè)已封裝好的漂亮進(jìn)度條,轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 成人综合在线观看 | 国产精品亚洲污污网站入口 | 久久热这里只有 精品 | 香蕉久久日日躁夜夜嗓 | 91欧洲在线视精品在亚洲 | 69精品国产人妻蜜桃国产毛片 | 91久久精一区二区三区大全 | 亚洲乱色视频在线观看 | 国产婷婷色一区二区三区在线 | 99久久99久久精品 | zooskoo1videos人与狗 | 亚洲伊人色 | 美女被艹网站 | 国产在线观看成人 | 国产1广场舞丰满老女偷 | 国产欧美一区二区精品性色tv | 国产系列视频二区 | 国产精品igao视频网网址 | 亚洲深夜在线 | yellow片高清视频免费看 | 俺来也俺去也视频久久 | 超级碰碰青草久热国产 | 99国产精品久久 | 办公室里呻吟的丰满老师电影 | 四房色播手机版 | 被老头下药玩好爽 | 国产亚洲精品久久久久久白晶晶 | 亚洲午夜AV久久久精品影院色戒 | 嫩草影院地址一地址二 | 熟女人妻AV五十路六十路 | 张开腿我尝尝你的草莓 | 在教室伦流澡到高潮HNP视频 | 久草在线福利资站免费视频 | 国产成人精品区在线观看 | 国内精品偷拍在线观看 | 99精品久久精品一区二区 | 动漫美女和男人下载 | 无码137片内射在线影院 | 国产偷国产偷亚洲高清app | 亚洲永久精品ww47 | 含羞草传媒在线观看 |