PDA

View Full Version : Dynamic Countdown Script II Redirect?



ATrainIU24
01-21-2006, 07:59 PM
Script: Dynamic Countdown Script II
http://www.dynamicdrive.com/dynamicindex6/dhtmlcount2.htm

Is there any way to configure this script to redirect to a new page when the countdown reaches 0? Any help would be appreciated.

Twey
01-21-2006, 08:02 PM
Find and replace:
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}with:
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
window.location.href = "page.html";
return
}

ATrainIU24
01-21-2006, 08:20 PM
Thanks!