I. Methods of Use
Using the jquery progress bar plugin requires the introduction of jquery and Jquery.progress.js files.
<script src= "Js/jquery.min.js" ></script>
<script src= "Js/jquery.progress.js" ></script>
Second, HTML structure
The HTML structure of the jquery progress bar is made using a <svg> element.
<svg id= "Container" ></svg>
Third, initialize the plug-in
After the page DOM element is loaded, you can initialize the progress bar plug-in by using the following method.
var progress = $ ("#container"). Progress ({
PERCENT:20,
width:180,
HEIGHT:40,
Fontsize:16
});
Four, configuration parameters
var settings = {
Width:90,
HEIGHT:20,
percent:0,
BackgroundColor: ' #555 ',
Barcolor: ' #d9534f ',
Radius:4,
Fontsize:12,
FontColor: ' #fff ',
Increasespeed:1,
Animate:true
};
Keymob Mobile advertising platform, for the application developers to provide a stable sdk,keymob mobile advertising platform has video, interstitial, full-screen advertising display mode, Keymob Mobile advertising platform Professional to create a perfect user experience, farewell to the native advertising model, creating application developers and advertisers high-yield.
HTML5 Add SVG lightweight jquery progress bar Plugin Tutorial