2
There are loads of countdown scripts which can be added to a block in xoops, just do a search in google for countdown. here is an example:
<script type="text/javascript">
<!-- Countdown script distributed by http://www.hypergurl.com var today=new
Date() //Enter the date for your countdown. Month first then day. Example 6th
month 26th day. var countdown=new Date(today.getFullYear(), 6, 26) //Enter your
message here! Change words below to suit var beforedayText="left until whatever
day you want" var ondaytext="Today is the day. Happy Whatever Day!"
var monthtext=new Array("Jan","Feb","Mar","April","May","June","July","Aug","Sep","Oct","Nov","Dec")
countdown.setMonth(countdown.getMonth()-1) //change to 0-11 month format var showdate="("+monthtext[countdown.getMonth()]+"
"+countdown.getDate()+")" var one_day=1000*60*60*24 var calculatediff=""
calculatediff=Math.ceil((countdown.getTime()-today.getTime())/(one_day)) if (calculatediff<0){
var nextyeartoday=new Date() nextyeartoday.setFullYear(today.getFullYear()+1)
calculatediff=Math.ceil((nextyeartoday.getTime()-today.getTime())/(one_day)+calculatediff)
} var pluraldayornot=(calculatediff==1)? "day" : "days" if
(calculatediff>0) document.write("<b>"+calculatediff+"
"+pluraldayornot+" "+beforedayText+" "+showdate+"!</b>")
else if (calculatediff==0) document.write("<b>"+ondaytext+"
"+showdate+"!</b>") --> </script>