Jump to content

loading help!


Jamesking56

Recommended Posts

i need help!! im building a website but i want to add in like when you click some thing it brings you to a redirect page where it redirects you in an amount of time!!!!How do i do it??orwhat is the code?? :) e-mail it me! here!

Link to comment
Share on other sites

  • 2 weeks later...

You'll need to use a frameset which reloads one of the frames with another document:

<script LANGUAGE="JavaScript"><!--function loadOne() {	window.frames[0].location.href = 'apage.html';	setTimeout("loadTwo()",5000);}function loadTwo() {	window.frames[0].location.href = 'bpage.html';	setTimeout("loadThree()",5000);}function loadThree() {	window.frames[0].location.href = 'cpage.html';}setTimeout("loadOne()",5000);//--></SCRIPT>

from http://www.irt.org/script/334.htmor try http://www.w3schools.com/html/tryit.asp?fi...ryhtml_redirectusing the meta equivalent

<html><head><meta http-equiv="Refresh"content="5;url=http://www.w3schools.com"></head><body><p>Sorry! We have moved! The new URL is: <a href="http://www.w3schools.com">http://www.w3schools.com</a></p><p>You will be redirected to the new address in five seconds.</p><p>If you see this message for more than 5 seconds, please click on the link above!</p></body></html>

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...