FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


auto refresh





yule
<script>
<!--

/*
Auto Refresh Page with Time script
By Website Abstraction (wsabstract.com)
Over 200+ free scripts here!
*/

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>
Related topics
*OFFICIAL* Which Browser do you use?
Auto redirect your visitors to a different page
751 Useful Windows XP Files
PHP & Chat
First XMLHttpRequest Object Project - A refreshless shoutbox
special shout box required - large amount of fri$$ offered
[Community Project] Easy Simple Content Management System
Do some members of Frihost actually have lives?
Auto Targer Iframe
PHP Image Questions
NEW! - Incredibly Low Priced phpBB2 and 3 Services!
Extremely Low Costing phpBB2 and 3 Services [UPDATED]
[Tutorial] Redirecting pages in HTML
i am using chat box but its not refreshing automatically.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.