var a_targetyear=2010; var a_targetmonth=12; var a_targetdate=31; var a_countdown_time=Date.UTC(a_targetyear,a_targetmonth-1,a_targetdate-1,+8); var a_now=new Date(); var a_lastPublishedDate= new Date(); var a_now_millisecs=a_now.valueOf(); var a_day_cnt= Math.ceil(( a_countdown_time - a_now_millisecs)/86400000 ); var a_total_cnt=0; document.write( '還有' + a_day_cnt + '天,要寫完' + a_target_cnt + '篇咖啡館
'); function a_comp20070316(a,b) {order= Date.parse(a.published.$t.replace(/^(\d{4})-(\d{2})-(\d{2})T([0-9:]*)([.0-9]*)(.)(.*)$/,'$1/$2/$3 $4 GMT')) - Date.parse(b.published.$t.replace(/^(\d{4})-(\d{2})-(\d{2})T([0-9:]*)([.0-9]*)(.)(.*)$/,'$1/$2/$3 $4 GMT')); return order;} function arss_gethref(postlink,relstr) { for (var i=0; i1) summary=summary.substring(0,nn-1); var link=arss_gethref(entry.link,relstr); var spd=entry.published.$t; var mm=parseInt(spd.substring(5,7),10); var dd=parseInt(spd.substring(8,10),10); a_lastPublishedDate.setFullYear(parseInt(spd.substring(0,4),10)); a_lastPublishedDate.setMonth(mm-1); a_lastPublishedDate.setDate(dd); a_lastPublishedDate.setHours(parseInt(spd.substring(11,13),10),parseInt(spd.substring(14,16),10),0,0); temp = '已完成' + a_total_cnt + '篇' ;   NoData=false; } if (NoData) temp='

 無資料

'; return temp; } function a_f200911140(json) { var a_temp1 = a_show20090208(json,'alternate'); var sec= a_lastPublishedDate.valueOf() + (a_day_cnt*86400000/(a_target_cnt - a_total_cnt)); var ntd=new Date(); ntd.setTime(sec); var a_days=Math.ceil( (sec-a_now_millisecs)/86400000); var tarDateS= ' ' +(ntd.getMonth()+1)+ '月' + ntd.getDate() + '日'; var a_temp2 = ',距下篇還有' + a_days+ '天'; if (a_days<1) a_temp2= ',這次交稿' + tarDateS + '已過'; document.getElementById('200911140').innerHTML = a_temp1 + a_temp2; } document.write('');