11/02/2005, 09:42
|
| | | Fecha de Ingreso: febrero-2005 Ubicación: Uruguay
Mensajes: 511
Antigüedad: 19 años, 11 meses Puntos: 11 | |
<script languaje="javascript">
var before="casamiento de "
//tus amigos
var current="Hoy se casan ..."
var montharray=new Array("Ene","Feb","Mar","Abr","May","Jun","Jul","A go","Set","Oct","Nov","Dic")
function countdown(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
if (difference==0)
document.write(current)
else if (difference>0)
document.write("Faltan "+difference+" días para "+before)
}
//cambiar la fecha por año,mes,dia de casamiento
countdown(2005,2,10)
</script>
espero te sea util |