jQuery Progress Bar 是一個輕量、易用的進度條插件。只要選取一個 HTML 元素,再呼叫 progressBar() 方法,就能顯示進度。
$(document).ready(function () {
$('#progress1').progressBar(68, {
barImage: '/content/images/progressbg_red.gif'
});
});
increment:每步增長量,預設為 2。speed:滑動速度,數值越大越慢。showText:是否顯示百分比文字。boxImage:邊框圖片路徑。barImage:進度條圖片路徑。width:進度條寬度。height:進度條高度。透過更換 barImage,就能輕鬆做出不同顏色與風格的進度條。