Have patience. I happened to be online when you posted this, but have since been to math class. The regular posters here are usually on and off all day, so give it at least 24 hours before thinking you won't get a response, and usually 72 or so, since people are busy frequently.
The method above should do exactly what you need. I can't remember if that is the exact right javscript, but I think it's close.
Now, create an animated gif of your status bar, make it the right length and DON'T set it to loop. Set it to only play one time. This will make it display "loading." > "loading..." > "loading....." > "loading.......", then stop at the end, which could either by "loading........", or "loaded", etc, whichever you desire.
Then it will simply be refreshed when a visitor clicks another link above.
Quite simple.
Note: you're probably on the right track not trying to have this relate to the frame loading as that will make things much more complex. You would need a lot more work to get that to connect and you might not even be able to do it, considering that you can't really tell, while it is loading, the speed at which things are being transferred. You could, I suppose, use an onLoad function in the body tag of the framed page to then stop the animation of the image, if it were a loop (such as the hour glass cursor), but this wouldn't be a traditional loading bar, just a spinning/rotating/repeating "loading" pattern, which might work for you too, but seems like more work.
EDIT: Tested, and it does work. Just use <img .... name="myimg"> (use what you would like for myimg, but change in the javascript as well).
You could also define a function if you'd like it to be easier to add to each link--
Head section:
Code:
<script type="text/javascript>
function loader() {
document.images.myimg.src='animation.gif';
}
</script>
change the bits in italics for your page.
Simply use:
<a ..... onClick="loader();">, and that is all you need for each link.
Bookmarks