gracias, espero vuestra ayuda
Código :
function setclock() { myDate = new Date(); tm = myDate.getTime(); hr = myDate.getHours(); mn = myDate.getMinutes(); sc = myDate.getSeconds(); minang = mn * 6; hrang = hr * 30 + minang / 12; secang = sc * 6; clock.h._rotation = hrang; clock.m._rotation = minang; clock.s._rotation = secang; if (isNaN(d1) || isNaN(d2) || isNaN(d3) || isNaN(d4) || isNaN(d5) || isNaN(d6)) { a1 = "ERROR"; return; } dat = new Date(d1, d2 - 1, d3, d4, d5, d6); dat.setFullYear("2008","5","24","00","01", "00"); dif = dat.getTime() - tm; if (dif < 0) difd = dif / 86400000; difh = (difd - Math.floor(difd)) * 24; difm = (difh - Math.floor(difh)) * 60; difs = (difm - Math.floor(difm)) * 60; difm2 = Math.floor(difm); if (difm2 < 10) { difm2 = "0" + difm2; } difs2 = Math.floor(difs); if (difs2 < 10) { difs2 = "0" + difs2; } a1 = Math.floor(difd) + " Días " + Math.floor(difh) + " Horas " + difm2 + " Minutos"; } function update() { if (oldd1 != d1) { oldd1 = d1; prop.data.yr = d1; } if (oldd2 != d2) { oldd2 = d2; prop.data.mth = d2; } if (oldd3 != d3) { oldd3 = d3; prop.data.dt = d3; } if (oldd4 != d4) { oldd4 = d4; prop.data.hr = d4; } if (oldd5 != d5) { oldd5 = d5; prop.data.mn = d5; } if (oldd6 == d6) { return; } oldd6 = d6; prop.data.sc = d6; } loy = 365.25; prop = SharedObject.getLocal("countdowntimer", "/"); if (prop.data.yr == undefined) { d1 = 2010; d2 = 1; d3 = 1; d4 = 0; d5 = 0; d6 = 0; } else { d1 = prop.data.yr; d2 = prop.data.mth; d3 = prop.data.dt; d4 = prop.data.hr; d5 = prop.data.mn; d6 = prop.data.sc; } setInterval(setclock, 100); setInterval(update, 1000);