/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- HTML --> ---> jquery ---> ui.jquery ---> css/style.jquery.ui.css <!-- CSS --> <style>.ui-progressbar-value { background-image: url(css/images/pbar-ani.gif); }</style> <!-- SCRIPT --> <script> $('#progressbar').progressbar({value: 0}); var count = 0; function runIt() { if(count<=100){ $("#progressbar").progressbar("option", "value", count) ; count++; }else{ clearInterval(timerID); //barra completata inserire la funzione } } </script> <!-- HTML --> <div id="progressbar" ></div>
Comments
