|
uCoz Community Archives Locked Auto Refresh? |
Auto Refresh? |
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 ;)
|
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.
![]() ![]() |
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.
![]() ![]() |
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. |
| |||
| |||
Need help? Contact our support team via
the contact form
or email us at support@ucoz.com.