bootstrap初回試行進捗バー


<div class="progress">
  <div class="bar" style="width: 0%;"></div>
</div>
<!-- Bootstrap -->
    <link href="../bootstrap/css/bootstrap.css" rel="stylesheet" media="screen">
	<script src="http://code.jquery.com/jquery.js"></script>
    <script src="../bootstrap/js/bootstrap.js"></script>
      <script>
	  var p = 0;
	  $(function(){
		run();
	  });
	  function run(){
			p+=5;
			$("div[class=bar]").css("width",p+"%");
			if(p<100){
				var timer=setTimeout("run()",500);
			}else{
				alert("    !");
			}
	   }
	  </script>