濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > 用htc實(shí)現(xiàn)進(jìn)度條控件

用htc實(shí)現(xiàn)進(jìn)度條控件

熱門(mén)標(biāo)簽:南昌辦理400電話怎么安裝 哈爾濱外呼系統(tǒng)代理商 電話機(jī)器人適用業(yè)務(wù) 徐州天音防封電銷(xiāo)卡 不錯(cuò)的400電話辦理 佛山防封外呼系統(tǒng)收費(fèi) 獲客智能電銷(xiāo)機(jī)器人 鄭州智能外呼系統(tǒng)運(yùn)營(yíng)商 湛江電銷(xiāo)防封卡
復(fù)制代碼 代碼如下:

PUBLIC:COMPONENT>
PUBLIC:METHOD   NAME ="Init" INTERNALNAME ="fnCreateProgressBar" />
PUBLIC:METHOD   NAME ="showProgress" INTERNALNAME ="showProgress" />
PUBLIC:PROPERTY NAME="Container"/>
PUBLIC:PROPERTY NAME="Speed"/>

SCRIPT LANGUAGE=javascript>
     var startTime = null ;    
     function fnCreateProgressBar(){ 
         now  = new Date();
        startTime = now.getTime();
        now = null 
         oContainer = element.Container
        oContainer.innerHTML = "";
        oDiv = window.document.createElement("DIV")
        oDiv.className = "progress"
        oContainer.appendChild(oDiv)
        oDiv.style.display = ""; 
        element.bar = oDiv;    
    }

   function pause(numberMillis) {
        var dialogScript = 
           'window.setTimeout(' +
           ' function () { window.close(); }, ' + numberMillis + ');';
        var result = 
         window.showModalDialog(
           'javascript:document.writeln(' +
            '"script>' + dialogScript + '' + '/script>")');
   }

    function showProgress(StatesDesc){
         now  = new Date();
         currTime = now.getTime();
         now = null
         if(StatesDesc!=null) window.status = StatesDesc+"當(dāng)前耗時(shí):"+(currTime - startTime)+"毫秒!";
        element.bar.style.width = (currTime - startTime) / element.Speed;
        pause(1)
    }
/script>
/PUBLIC:COMPONENT>

應(yīng)用例子:
復(fù)制代碼 代碼如下:

html>

head>
meta http-equiv="Content-Type" content="text/html; charset=gb2312">
title>進(jìn)度條測(cè)試/title>
link rel="stylesheet" type="text/css" href="ProgressBar.css">
script>
function Demo(){
    PrgBar.Container = document.all.layer1
    PrgBar.Init();
    for(var i=0;i500;i++){
        if(i%5==0) PrgBar.showProgress("操作進(jìn)行中......")
    }
    PrgBar.showProgress("操作完成!")
}
/script>
/head>

body>
div style="position: absolute; width: 612px; height: 19px; z-index: 1; left: 10px; top: 72px; border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" id="layer1">/div>
p>input type="button" value="測(cè)試" name="B3" onclick="Demo()">/p>
Progressbar id="PrgBar" class="ProgressBar" Speed="10"/>
/body>

/html>

樣式文件:ProgressBar.css
復(fù)制代碼 代碼如下:

.ProgressBar
{
    BEHAVIOR: url("ProgressBar.htc")
}
.progress{
    position: relative; 
    width: 0px; 
    height: 20px; 
    z-index: 1; 
    background-color: #006699;
    filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#006699,endcolorstr=#E3EFFF,gradientType=0);
    border: 1px ridge #C0C0C0;
}

標(biāo)簽:蕪湖 吉安 紹興 廣西 懷化 呂梁 安康 蘭州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《用htc實(shí)現(xiàn)進(jìn)度條控件》,本文關(guān)鍵詞  用,htc,實(shí)現(xiàn),進(jìn)度,條,控件,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《用htc實(shí)現(xiàn)進(jìn)度條控件》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于用htc實(shí)現(xiàn)進(jìn)度條控件的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    黄平县| 芒康县| 曲麻莱县| 莱芜市| 松溪县| 昆山市| 柳林县| 青神县| 海阳市| 广平县| 泉州市| 怀柔区| 博乐市| 繁昌县| 峨眉山市| 渑池县| 施甸县| 漳州市| 黄大仙区| 南宫市| 休宁县| 伊川县| 什邡市| 洛扎县| 海南省| 惠州市| 桐庐县| 资溪县| 翁牛特旗| 上虞市| 台东县| 彰化县| 通山县| 沛县| 县级市| 乐安县| 五指山市| 五家渠市| 嫩江县| 平南县| 迭部县|