I want to add a progress bar (as shown below)when I click a in-link in my website..

when we click a video in YouTube a progress bar is shown when the video opens similarly I want to add this in my websites links to improve visitors experience…


when I click any section like fresh fruits It takes some time to open that which confuse the customers that weather the link is clicked or not so I want to show a bar like YouTube in my website.

waiting for your response …

There are several ways to accomplish that.
One of the simplest:
Place your loader gif on the page, make it hidden by default.
When the user clicks on a button requesting stuff, turn on the gif for about 3 seconds (3,000ms):

… then

$w(“#myLoaderGif”).show(); // show the loader gif
setTimeout(function(){ $w(“#myLoaderGif”).hide(“fade”); }, 3000); // turn off the gif after 3000 milliseconds (3 seconds)

[ code snippet is not working ]