Page 1 of 1

Load New External Web Page every 10 secs from Txt or db list

Posted: Tue Jan 13, 2009 2:21 pm
by cvandyke0524
Hello,

I'm looking for a way to parse a text file which contains a list of 5-10 URL's which are external to me and have a browser do a "refresh" or "redirect" to each entry (or rotate between them) every 10 seconds.

I've seen all kinds of things for placing code in the page header and having the redirect URL be the external address, but that will only refresh the first page, I don't have access to place code in the next page's header. Make sense?

Thanks.

Re: Load New External Web Page every 10 secs from Txt or db list

Posted: Tue Jan 13, 2009 4:55 pm
by requinix
Only way I can see it working is with frames and JavaScript.

Once you've redirected off your site you don't have control of the browser anymore. So some piece of your site needs to remain: like a frame. Drawback is that the user won't see the other site's URL in their address bar, just the URL of your frame page.

Another idea is a popup window, but it'd be easy for your users to close that and you might not want that to happen. If they don't want to close it (they specifically want to do this website-rotation thing) then this would work better.