• Page 1 of 1
  • 1
Auto Refresh?
coatham
Posts: 248
Reputation: 9

Message # 1 | 7:12 PM
Hello,
I have a live stream by a JPG File but the page need to auto refresh quite rapidly to give a good picture is there a way to do this?

Need More In Depth Help About a topic post it here: Click Here
Animorph
Posts: 2856
Reputation: 189

Message # 2 | 8:51 PM
coatham, yes there is a possibility to refresh your page
Quote (natashko)

Then go to Main » Customize design » Editing templates->Insert this code in the Home page(that appeared)

Code
<meta http-equiv='refresh' content='15;URL=yourwebsiteurl'/>

To busy building a passive income online ;)
CoffeeCone
Posts: 687
Reputation: 41

Message # 3 | 4:36 AM
Animorph, Wouldn't that become somewhat irritating if, for example, somebody was typing something then suddenly that refresh every 15-second script loads?
"Friends don't let friends use Internet Explorer 6." - Microsoft || Join the cause. Help your friends.


Animorph
Posts: 2856
Reputation: 189

Message # 4 | 6:50 AM
shadowslash, yep it is irritating but he wanted to refresh his page automaticly after an amount of time he just need to change15 (seconds) into his number
To busy building a passive income online ;)
CoffeeCone
Posts: 687
Reputation: 41

Message # 5 | 7:44 AM
Hmm.. Well coatham, you can always use AJAX to dynamically load the images and not refresh the whole page?
"Friends don't let friends use Internet Explorer 6." - Microsoft || Join the cause. Help your friends.


CodeResolution
Posts: 1570
Reputation: 58

Message # 6 | 7:47 AM
coatham, if you want to refresh an image but not to refresh the whole page (because of the problems discussed above) you can try this:
Place the following script in your header tags:
Code
<!-- Image Refresh Begin -->
        
<SCRIPT language="JavaScript" type="text/javascript">
<!--
var t = 120 // interval in seconds
image = "image_name.jpg" //name of the image
function Start() {
tmp = new Date();
tmp = "?"+tmp.getTime()
document.images["refresh"].src = image+tmp
setTimeout("Start()", t*1000)
}
Start();
// -->
</SCRIPT>
<!-- Image Refresh End -->

And then place this where you want the image:
Code
<IMG src="image_name.jpg" border="1" name="refresh">

Once you have done that, changed the image sources, currently set as 'image_name.jpg'. You can also adjust the duration before each refresh within the java script.


Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
coatham
Posts: 248
Reputation: 9

Message # 7 | 6:12 PM
What should i put into a AJAX window to make a image refesh?

Added (2011-02-14, 12:12 PM)
---------------------------------------------
Doesn't Matter i found a way! Topic Locked


Need More In Depth Help About a topic post it here: Click Here
  • Page 1 of 1
  • 1
Search:
Support
Need help? Contact our support team via the contact form or email us at support@ucoz.com.