Horizontal and vertical ProgressBar with image indicator : Progress Bar : Ajax Layer JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Ajax Layer » Progress Bar »

 

Horizontal and vertical ProgressBar with image indicator




<html>
<head>
<title>DynAPI Examples - ProgressBar</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
  dynapi.library.setPath('./dynapisrc/');
  dynapi.library.include('dynapi.api');
  dynapi.library.include('ProgressBar');
</script>
<script language="Javascript">

  var hpb = new ProgressBar('horz',250,100,200,20,20);
  var vpb = new ProgressBar('vert',200,100,20,150,20);

  var ipb = new ProgressBar('horz',250,150,200,20,20);
  ipb.setLocalStyleAttribute('imageBar',dynapi.functions.getImage('./dynapiexamples/images/pbar.gif'));

  dynapi.document.addChild(hpb);
  dynapi.document.addChild(vpb);
  dynapi.document.addChild(ipb);

  var i=0;
  function startLoop(v){
    if(v!=nulli=v;
    hpb.setValue(i)
    vpb.setValue(i)
    ipb.setValue(i)
    i++;
    if(i<=100)setTimeout('startLoop()',100)
    status=hpb.getValue();
    return false;
  }

</script>
</head>
<body>
<a href="javascript:;" onclick="return startLoop(1);">Start</a>
<script>
  dynapi.document.insertAllChildren();
</script>
</body>
</html>

           
       

Download : Download nav_dynapi.zip nav_dynapi.zip


-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Ajax Layer
» Progress Bar