> I need a function that every 5 seconds a different web page will be
called.[color=blue]
> Where is a good reference to local something similar to this?
>[/color]
You may try to make it like this:
// Array of urls to rotate through
urlArray[0] = 'http://www.google.com' ;
urlArray[1] = 'http://www.google.de';
urlArray[2] = 'http://www.google.fr';
var urlCounter = 0;
function goToUrl() {
var idx = urlCounter % urlArray.length ; //which index of urlArray to use
urlCounter ++;
document.frames['frameId'].location.href = urlArray[idx];
}
var interval = setInterval("go ToUrl()",5000);
</script>
</body>
</html>
Of course this is just an examle, but I Hope this will put you on the right
track
DevBoy wrote:
[color=blue]
> I need a function that every 5 seconds a different web page will be called.[/color]
This is utter nonsense. No Internet connection that is available to
common people is nowadays that fast, unless you link only low-quality
websites. Besides, what do you tell the user who is complaining that
you force him/her to download data that he/she never requested?
Thomas 'PointedEars' Lahn wrote:
[color=blue]
> DevBoy wrote:
>
>[color=green]
>>I need a function that every 5 seconds a different web page will be called.[/color]
>
>
> This is utter nonsense.[/color]
You have no clue what you are talking about. Ever heard of a
news-ticker? Obviously not.
[color=blue]
> No Internet connection that is available to common people is nowadays that fast,
> unless you link only low-quality websites. Besides, what do you tell the user
> who is complaining that you force him/her to download data that he/she never
> requested?[/color]
Can you back *any* of that up with research?
Unless the site is *very* loaded with images, I don't know of many sites
that I can't load in 5 seconds. And I have a "very available to common
people" Cable Connection, with the US Based subscriber base growing
daily. DSL connections are comparable in speed as well.
Comment