View Full Version : Refresh Mechanism
hungrylilboy
04-07-2004, 09:27 PM
can someone give me the script that will make a javascript image refresh every 5 mins please. Thanks
ps. if it makes a difference, the image being shown is linked from another website onto mine and refreshs every 5 mins
:huh: "JavaScript image?"
About the refreshing... read this (http://www.devshed.com/c/a/JavaScript/Using-Timers-in-JavaScript/). :)
hungrylilboy
04-07-2004, 11:42 PM
Originally posted by haxor41789@7 April 2004 - 22:43
:huh: "JavaScript image?"
About the refreshing... read this (http://www.devshed.com/c/a/JavaScript/Using-Timers-in-JavaScript/). :)
thanks. thats not quite what i needed but will help me. Sorry about my confusing post. Obviously the image isnt javascript. It refreshs using javascript which is what i meant to say.
I am linking this image which refreshs on another web page to my page. Therefore i need my page to refresh at the same time gap as the other page
Originally posted by hungrylilboy@7 April 2004 - 18:42
I am linking this image which refreshs on another web page to my page. Therefore i need my page to refresh at the same time gap as the other page
That's damn near impossible to pull of with JavaScript, since it's client-side.
The only thing that I can think of is to have a PHP script that checks the time.
hungrylilboy
04-08-2004, 09:30 AM
the client refreshes every 5 mins. so surely if i simply refresh my image every 5 mins (doesnt have to be the same exact time) the image will be refreshed??
how would the php work?
http://www.chinkii.com/uploads/album/misc/haxor41789-headbang.gif
:lol: Your brilliant logic just owned me. :P
As to PHP, I was thinking to synchronize the times between the two servers and compare it, but sometimes the simplest solutions are best. :lol:
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.