I have a loading image (gif) that shows up when a user is waiting for a response to an action on a ASP.NET page.
The way it's implemented currently is:
In a JS file, I have:
document.write( '<span class="loadingbar" ID="loadingbar"><p>Loading Data... </p>' );
document.write( '<img id="loadingbarimage" src="Images/loading.gif" />' );
document.write( '</span>' );
In the Master page, I include this javascript file
I do have code that shows/hides the image.
It works great when a user is looking at the top of the page. But once, he scrolls down, the image is obviously not seen. Is there a way to reposition the image based on what page position the user is in?