Instead of a countdown and then redirect, I would like to countdown and unhide. I have used java before as a novice, but javascript looks like a relatively new beast for me. I found this counter and think it looks good, I guess it just resents the next smallest digit each time it reaches one. Is there some way to maybe make this a subclass of something that goes:
if 0.0, then unhide, else hide. What tags would I have to give the div on my style sheet. Or maybe there is a better way to write the countdown from 15 (or x) seconds. Thanks for any help.
<script>
<!--
//
var milisec=0
var seconds=15
document.counter.d2.value='15'
function display(){
if (milisec<=0){
milisec=9
seconds-=1
}
if (seconds<=-1){
milisec=0
seconds+=1
}
else
milisec-=1
document.counter.d2.value=seconds+"."+milisec
setTimeout("display()",100)
}
display()
-->
</script>