sexta-feira, 14 de janeiro de 2011
contagem regressiva
<script type="text/javascript">document.write("<span id='pageinval27' style='text-align:center; font-family:times new roman, times, serif; font-size:16px; color:#red;font-weight:normal;background-color:#red; padding:7px; margin:0;overflow:visible;border:0px;'></span>");function countdown_load20(){var the_event="Harry Potter e as reliíquias da morte parte 2";var on_event="estreia";var yr=11;var mo=15;var da=07;var hr=0;var min=0;var sec=0;var month='';var month=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var bottom_event="contagem!";var now_d=new Date();var now_year=now_d.getYear();if (now_year < 1000)now_year+=1900;var now_month=now_d.getMonth();var now_day=now_d.getDate();var now_hour=now_d.getHours();var now_min=now_d.getMinutes();var now_sec=now_d.getSeconds();var now_val=month[now_month]+" "+now_day+", "+now_year+" "+now_hour+":"+now_min+":"+now_sec;event_val=month[mo-1]+" "+da+", "+yr+" "+hr+":"+min+":"+sec;difference=Date.parse(event_val)-Date.parse(now_val);differenceday=Math.floor(difference/(60*60*1000*24)*1);differencehour=Math.floor((difference%(60*60*1000*24))/(60*60*1000)*1);differencemin=Math.floor(((difference%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);differencesec=Math.floor((((difference%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);if(document.getElementById('pageinval27')){if(differenceday<=0&&differencehour<=0&&differencemin<=0&&differencesec<=1&&now_day==da){document.getElementById('pageinval27').innerHTML=on_event;}else if (differenceday<=-1){document.getElementById('pageinval27').innerHTML="Event : "+on_event+" : passed";}else {document.getElementById('pageinval27').innerHTML=the_event+" "+differenceday+" days "+differencehour+" hours "+differencemin+" minutes "+differencesec+" seconds "+bottom_event;} }setTimeout("countdown_load20()",1000);}countdown_load20();</script>
Assinar:
Postar comentários (Atom)
Hum, QQISSO?
ResponderExcluir