Many times users need to wait for your "bloated" Javascript code processing to complete (WEB 2.0 features). Perhaps adding something like a progress bar in the meantime makes the user a bit "comforting". This thing is not complicated to achieve, it is to get the total processing entries, and then get a percentage, and then display the output.
With our great CSS, we can implement a very beautiful progress bar style. Together with the Javascript effect, we can "cheat" our users and let them have the patience to wait for the browser to finish processing. The above principles have been known, then you can directly see the code. I'm still using the jQuery framework, because such a short code might be easier to understand. Of course there's a lot more to do with this control, and I just provide a way to follow the WEB standards. Don't say much nonsense.
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-strict.dtd ">
Javascript jquery css write simple progress bar control