Lelouch » Newbie
Honors : 16 Age : 34 Location : Philippines Warnings : Honors : 58470 Registration date : 2008-11-18
| Subject: Auto Refresh Page [ Timed ] Tue Nov 18, 2008 7:16 am | |
| Paste on your JS codes - Spoiler:
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59 var limit="0:03"
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 //-->
Remember to edit the bold part
Preview -http://www.stormpages.com/boyfomhell/refresh.html | |
|
amiick Admin
Honors : 142 Age : 34 Location : cavite Warnings : FW Mood: : Honors : 57864 Registration date : 2009-01-15
| Subject: Re: Auto Refresh Page [ Timed ] Thu Jan 15, 2009 9:41 am | |
| | |
|