posted 17 years ago
Sure you can...
All you need is a progress bar imitating gif file and place it in a <div> in your webpage, and hide it at page load. Now, when you want to execute the javascript function which you mentioned is time consuming, un-hide this <div>. You can hide it again once the execution of script is completed.
Else if you want to be more adventurous, you can create the progress bar magic using <div> and <span> tags alone, without the gif.
Dawn.