View Full Version : Dynamic pageload after progress bar timer

Beta Cygni
11-10-2008, 11:53 PM
1) Script Title: Time-based Progress Bar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/dhtmlprogress.htm

3) Describe problem:
Is there a way to have the script open a specific page based on what link i have clicked after it loads the bar and not just a static page?
something with this logic perhaps?

when user clicks specified link (by id or rel if possible) {
if specified link id = xID { window.location="x.htm"; }
if specified link id = yID { window.location="y.htm"; }
if specified link id = zID { window.location="z.htm"; }


11-11-2008, 10:36 AM
I'm not clear on the sequence of events. If you want three links each going to a different page, and you want the user to see the progress bar first, you could have it be activated by the links, example link:

<a href="some.htm" onclick="progressBarInit.loc = this.href;progressBarInit();return false;">
Text or Image Here</a>

Then in the action area:

var action=function()
//alert("Welcome to Dynamic Drive!");
window.location = progressBarInit.loc;

If you were to do it this way, you would also want to remove:


from the end of the script.