Javascript , loading progress bar before site loads
<p>I want to make a progress bar for a GUI site that I am making and I need a bit of code in javascript to detect if the site is loading and how many elements/images have loaded and has the site fully loaded.
I have the progress bar made with css and I dont know how I can turn on/of elements in js.</p>

<p>How can I accomplish this in js or by using Jquery ?</p>
