-
Senior Member
[F8] intro redirect
Hi
I have an intro page and would like it to re-direct to the main website after about 10 seconds.
What is the script that I need for this action and where do I place it.
I am truly sorry if my question is too basic for you.
Thanks
Ecinele
-
Banned
Add this piece on the frame, where you wish to stop your animaton and begin counting 10 seconds to redirect
PHP Code:
stop();
counter = 0;
Interval = setInterval(this, "counting", 1000);
function counting() {
counter++;
if (counter == 5) {
clearInterval(Interval);
getURL("enter redirected link here", "_blank");
//EXAMPLE: getURL("http://www.google.com", "_blank");
}
}
-
Senior Member
Thanks so much. It worked beautifully :-)
-
Banned
You are welcome
-
Senior Member
Can I delete "_blank" if I don't want two pages open?
If so, how does the script go exactly?
Again, thanks for your help.
-
Banned
Dont remove _blank, Instead try this :
Code:
getURL("enter redirected link here", "_self");
Again, you are welcome
-
Banned
If you want it to get redirected in 10 seconds then make,
if it is 9 seconds then make it,
and so on........
-
Senior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|