進捗書の書き方

8277 ワード

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
</head>

<style type="text/css">
/* */
        .progressbar{margin:1.5rem auto;width:80%;padding: 0.1rem;height:1rem;text-align:center;border:8px solid rgba(175,125,66,1);border-radius:1rem;overflow:hidden;position:relative}
        .progressbar img{width: 16rem;height:1rem;position:absolute;left:-15.9rem}
        .progressbar span{position:absolute;z-index:10;left:6.4rem;font-size:.7rem;font-weight:100;color:#fff}
        .load{position:fixed;height:100%;width:100%;background:rgba(0,0,0,.8);z-index:999}
        .load .loadfont{width:100%;height:50px;color:#fff;text-align:center;margin-top:-25px;position:absolute;top:50%;font-size:1rem}
        /* */

</style>

<body>
<div class="progressbar">
        <img src="a.png">
        <span> 15 </span>
    </div>
</body>
</html>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">


// 
var maxTime=100;
var progressTimer = setInterval(function () {
    //console.log("d");
                    if(maxTime>0){
                        $(".progressbar").find("span").html(" "+maxTime/10+" ");
                    }
                    else{
                       //   
                    }
                    // 
                    progressleft = parseInt($(".progressbar").find("img").css("left").replace("px",""));
                    if(progressleft<0){
                        progressleft = progressleft+ $(".progressbar").width()/150;
                        $(".progressbar").find("img").css("left",progressleft);
                    }
                     maxTime--;
                }, 100);
</script>

 
タイトルなしドキュメント< head>< heady>/*進捗バー*/.progressbar{margin:1.5 rem auto;width:1.5 rem;padding:0.1 rem;height:1 rem;text-align:center;border:8 px solid rgba(175125,66,1);border-radius:1 rem;overrflow:hidden;position:rereative}.progressgrese:progrese 1 sbar img{width:16 rem;height:1 rem;position:absolute;left:-15.9 rem}        .progressbar span{position:absolute;z-index:10;left:6.4rem;font-size:.7rem;font-weight:100;color:#fff}        .load{position:fixed;height:100%;width:100%;background:rgba(0,0,0,.8);z-index:999}        .load .loadfont{width:100%;height:50 px;color:#fff;text-align:center;margin-top:-25 px;position:absolute;top:50%;font-size:1 rem}/*音楽関連*/
残り15秒
//スクロールvar maxTime=100;var progressTimer=setInterval(function()/console.log("d");if(maxTime>0){$(".progressbar").find("span").html("残り"+maxTime/10+"秒");}else{//停止}//スクロールバーprogressleft=parseInt($(".progressbar").find("img").css("left").replace("px",""));                    if(progressleft<0){                        progressleft = progressleft+ $(".progressbar").width()/150;                        $(".progressbar").find("img").css("left",progressleft);                    }                     maxTime--;                }, 100);