jQuery Loader Plugin

This little jQuery loader plugin is used to add a loading popup. This could be usefull for ajax calls, and it’s really simple to use !.

Demo !

Usage :

Of course you have to insert jQuery into your web page, and then you have to insert the file : jquery.loader.version.js.

$.loader({
  content:'Loading ...'
});

That’s all … not so difficult isn’t it ?

jQuery Loader plugin : Options

Options Description Default
content HTML : String to show in the loading popup. <div>Loading …</div>
className String : the CSS class name for the loader loader
id String : set the id attribute jquery-loader
height Integer : height of the popup in pixels 60
width Integer : width of the popup in pixels 200
zIndex Integer : z-index of the popup 30000
background Object : set the background opacity and the id of the background {opacity:0.4, id:’jquery-loader-background’ }

jQuery Loader plugin : Downloads

Here is the link : loader-0.2