Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Redirection in a browser to different internal sites?

Status
Not open for further replies.

boodox

MIS
Sep 24, 2002
54
GB
Hello All,

I'm looking for some help with HTML. It's been almost 6 years since I last did anything web-based and I've forgotten pretty much everything to do with it so I would like some advice on what I think should be quite a simple question.

I would like to create a webpage that cycles through several different internal websites sites every 30 seconds. These internal websites are for monitoring network health and as they are for different services, the aim of this page is display these each of these internal sites on a large plasma screen before cycling to the next page.

I thought I could use:

META HTTP-EQUIV="Refresh" content="30; url=*.html

... and have them run through looping on itself but I believe this would have to be added into the webpages themselves. The problem with this is that these internal sites are generated by the servers so I won't be able to add such a command.

If it helps explain things better, what I am trying to do do is effectively create a URL Redirect Loop like so:

Page 1 -> Page 2 -> Page 3 -> Page 4
^ |
|_____________________________|


Would anyone have a suggestion or way I could get this to work? Alternatively, I believe that these pages refresh themselves every themselves every 30 seconds anyway so is it possible to cycle browser windows or tabs (in IE7) in way to give a similar end result?

I would REALLY appreciate any advice.

Many thanks in advance,

bdx
 
I would have 1 page with an iframe in it and then use a javascript array to loop through the pages every 30 seconds

Code:
var myUrl = new Array()
myUrl [0] = "[URL unfurl="true"]www.google.com"[/URL]
myUrl [1] = "[URL unfurl="true"]www.tek-tips.com"[/URL]
myUrl [2] = "[URL unfurl="true"]www.anothersite.com"[/URL]

for (i=0;i<myUrl .length;i++)
{
myiFrame.location.href=myUrl;
}

Add an iFrame and a timer script and then you should be good to go!

Cheers

Nick
 
Thanks Nick. I'll give it a try and let you know how it works out.

I appreciate the help.

bdx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top