Jump to content

Auto changing URL


smiles

Recommended Posts

your page now is url1, after 5s is url2, after 10s is url3

setTimeout("window.location='http://www.url1.com'",5000); setTimeout("window.location='http://www.url2.com'",10000);

bet that it doesn't work cause cascade propertyhow can you solve that ?thanks

Link to comment
Share on other sites

That doesn't work because you change the page at 5000 seconds. On page two, have the below code again:

setTimeout("window.location='http://www.url2.com'",5000);

Otherwise it won't work. Or you could do a frameset, but I'm totally against that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...