stalling script

wxdqz

New Member
If i understand the process, you cannot set a delay timer in js directly. Instead you use the setTimeout() function to set a dealy on execution of the next function.

So I came up with this:

function last(){
if (j == (p - 1))
gonext()
}

function gonext() {

window.location="TVHS01.html";
}

function nextpage() {

if (top.portused == "True") {

setTimeout("last()",slideShowSpeed);

Uses image onload event to trigger

First it checks to see it the page has been used

[set delay to next function]

Then to see if the rotater (not included) has completed

If that is all true then go to target page.

It works without the timeout but adding the time oput seems to have no effect.
 
Back
Top