y

Progress 로딩바

<HTML>
<HEAD>
  <TITLE> New Document </TITLE>
      <style type="text/css">
    body{
        font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
        background-color:#E2EBED;
        margin:0px;
        padding:0px;
        height:100%;
        width:100%;
        line-height:130%;
        font-size:0.9em;
        text-align:center;
    }
    #pageContent{
        width:760px;
        margin:0 auto;
        text-align:left;
        border-left:1px solid #000;
        border-right:1px solid #000;
        background-color:#FFF;
        height:100%;
    }
    #pageContent p{
        padding-left:10px;
        padding-right:10px;
    }
    #dhtmlgoodies_progressPane{
        width:100%;
        height:100%;
        background-color:#FFF;
        z-index:5000;
        position:absolute;
        left:0px;
        top:0px;
        
    }
    #dhtmlgoodies_progressBar_bg{
        position:absolute;
        left:50%;
        top:50%;
        width:300px;
        height:20px;
        border:1px solid #000;
        background-color:#EEE;
        margin-left:-150px;    
        margin-top:-20px;
        text-align:center;
    }
    #dhtmlgoodies_progressBar_outer{
        position:absolute;
        left:0px;
        top:0px;
        width:0px;    
        height:100%;
        overflow:hidden;    
    }
    
    #dhtmlgoodies_progressBar{
        position:absolute;
        left:0px;
        top:0px;
        width:300px;
        background-color:#184EB8;
        filter: Alpha(Opacity=0, FinishOpacity=100,Style=1,StartX=0, StartY=0, FinishX=200,FinishY=20) ;
        height:100%;
        z-index:5000;
    }
    #dhtmlgoodies_progressBar_txt{
        color:#000;
        z-index:10000;
        width:100%;
        height:100%;
        left:0px;
        top:0px;
        position:absolute;        
        font-family:arial;
        font-size:0.8em;
        line-height:20px;    /* Same as height of progress bar */
    }
    </style>
    <script type="text/javascript">
    /************************************************************************************************************
    (C) www.dhtmlgoodies.com, October 2005
    
    This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.    
    
    Terms of use:
    You are free to use this script as long as the copyright message is kept intact. However, you may not
    redistribute, sell or repost it without our permission.
    
    Thank you!
    
    www.dhtmlgoodies.com
    Alf Magne Kalleland
    
    ************************************************************************************************************/        
    var progressbar_steps = 50;    // Total number of progress bar steps.
    
    /* Don't change any of these variables */
    var dhtmlgoodies_progressPane = false;
    var dhtmlgoodies_progressBar_bg = false;
    var dhtmlgoodies_progressBar_outer = false;
    var dhtmlgoodies_progressBar_txt = false;
    var progressbarWidth;
    var currentStep = 0;
    function moveProgressBar(steps){
        if(!dhtmlgoodies_progressBar_bg){
            dhtmlgoodies_progressPane = document.getElementById('dhtmlgoodies_progressPane');
            dhtmlgoodies_progressBar_bg = document.getElementById('dhtmlgoodies_progressBar_bg');
            dhtmlgoodies_progressBar_outer = document.getElementById('dhtmlgoodies_progressBar_outer');
            dhtmlgoodies_progressBar_txt = document.getElementById('dhtmlgoodies_progressBar_txt');
            progressbarWidth = dhtmlgoodies_progressBar_bg.clientWidth;
        }
        if(!steps){
            dhtmlgoodies_progressBar_outer.style.width = progressbarWidth + 'px';
            dhtmlgoodies_progressBar_txt.innerHTML = '100%';
            setTimeout('document.getElementById("dhtmlgoodies_progressPane").style.display="none"',50);
        }else{
            currentStep+=steps;
            if(currentStep>progressbar_steps)currentStep = progressbar_steps;
            var width = Math.ceil(progressbarWidth * (currentStep / progressbar_steps));
            dhtmlgoodies_progressBar_outer.style.width = width + 'px';
            var percent = Math.ceil((currentStep / progressbar_steps)*100);
            dhtmlgoodies_progressBar_txt.innerHTML = percent + '%';
            if(currentStep==progressbar_steps){
                setTimeout('document.getElementById("dhtmlgoodies_progressPane").style.display="none"',50);
            }
        }
        
        
        
        
    }
    
    /* The function below is only needed for this demo
    
    To move the progress bar , call the function moveProgressBar()
    
    example:
    moveProgressBar(1)
    to move it one step.
    
    */
    function demoProgressBar()
    {
        if(currentStep<progressbar_steps){
            moveProgressBar(1);
            setTimeout('demoProgressBar()',100);
        }
    }
    
    
    window.onload = demoProgressBar;
    
    </script>

</HEAD>

<BODY>
  <div id="dhtmlgoodies_progressPane">
    <div id="dhtmlgoodies_progressBar_bg">
        <div id="dhtmlgoodies_progressBar_outer">
            <div id="dhtmlgoodies_progressBar"></div>
        </div>
        <div id="dhtmlgoodies_progressBar_txt">0 %</div>
    </div>
</div>
<div id="pageContent">
<p>메인페이지</p>
</div>

</BODY>
</HTML>
[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
08-04-03 조회 3,951
08-04-03 조회 2,754
08-04-02 조회 2,947
08-04-02 조회 2,824
08-04-02 조회 3,136
08-04-02 조회 3,093
08-04-02 조회 3,134
08-04-02 조회 3,086
08-04-02 조회 2,784
08-04-02 조회 2,766
08-04-02 조회 2,873
08-04-02 조회 3,166
08-04-02 조회 3,067
08-04-02 조회 2,848
08-04-02 조회 2,994
08-04-02 조회 2,651
08-04-02 조회 2,902
08-04-02 조회 3,225
08-04-02 조회 4,030
08-04-02 조회 3,236
08-03-31 조회 2,536
08-03-31 조회 3,110
08-03-31 조회 3,610
08-03-29 조회 2,736
08-03-28 조회 3,441
08-03-28 조회 2,942
08-03-28 조회 2,611
08-03-27 조회 2,440
08-03-26 조회 3,340
08-03-26 조회 4,290
08-03-25 조회 3,764
08-03-25 조회 2,774
08-03-25 조회 4,102
08-03-25 조회 3,616
08-03-25 조회 4,035
08-03-25 조회 4,061
08-03-25 조회 3,725
08-03-25 조회 3,622
08-03-25 조회 2,870
08-03-25 조회 3,627
08-03-25 조회 5,327
08-03-21 조회 2,987
08-03-19 조회 5,146
08-03-18 조회 3,009
08-03-16 조회 2,972
08-03-14 조회 3,275
08-03-13 조회 3,679
08-03-13 조회 2,655
08-03-11 조회 2,976
08-03-11 조회 3,517
08-03-11 조회 3,012
08-03-11 조회 2,977
08-03-11 조회 2,772
08-03-11 조회 2,622
08-03-11 조회 2,552
08-03-11 조회 2,364
08-03-11 조회 2,385
08-03-11 조회 2,422
08-03-11 조회 2,397
08-03-11 조회 2,817
08-03-11 조회 2,896
08-03-08 조회 3,106
08-03-07 조회 4,232
08-03-07 조회 3,329
08-03-07 조회 2,989
08-03-06 조회 3,330
08-03-06 조회 3,080
08-03-06 조회 4,773
08-03-05 조회 2,712
08-03-04 조회 2,853
08-03-04 조회 2,549
08-03-04 조회 3,408
08-03-03 조회 4,377
08-02-28 조회 3,471
08-02-27 조회 2,966
08-02-22 조회 4,290
08-02-22 조회 5,666
08-02-22 조회 2,940
08-02-21 조회 4,607
08-02-21 조회 2,825
08-02-21 조회 4,826
08-02-21 조회 7,116
08-02-21 조회 2,627
08-02-21 조회 3,392
08-02-20 조회 3,052
08-02-19 조회 2,723
08-02-19 조회 3,583
08-02-19 조회 3,798
08-02-15 조회 2,765
08-02-15 조회 3,950
08-02-14 조회 4,460
08-02-14 조회 2,663
08-02-12 조회 3,120
08-02-11 조회 5,113
08-02-09 조회 5,845
08-02-09 조회 3,042
08-02-08 조회 2,900
08-02-05 조회 3,905
08-02-04 조회 3,116
08-02-03 조회 5,405