Hello.
I don't know any code of Javascript. I programme in PHP.
I grabbed this piece of code for javascript timer:
<form name="counter"><input name="d2" type="text" size="8" style="font-size:72pt; border:none; font-family:Verdana; color:#00BFFF; text-outline: 1px 1px #009ACD;"></form>
<script>
<!--
//
var milisec=0
var seconds=<?php echo $s;?>
document.counter.d2.value='0'
function display(){
if (milisec<=0){
milisec=9
seconds-=1
}
if (seconds<=-1){
milisec=0
seconds+=1
}
else
milisec-=1
document.counter.d2.value=seconds
setTimeout(\"display()\",100)
}
display()
-->
</script>
Basically the count-down timer code displays seconds counting down in textbox "d2".
I've modified the code to display seconds only and no milliseconds.
After the countdown, I've used PHP.
For example: If $s=45 (let).
The code countsdown, while simultaneously, a header is sent:
header("refresh: $s; http://..../...sameurl.php?s=RANDOM_TEMP_PASSWORD");
So that page refreshes after say 45 seconds and sends itself a random password, instructing the page that timer is now set to '0' and it should show the "DOWNLOAD" button.
In Mozilla Firefox, Download button appears after refresh
However, In IE6/7/8 after refresh, the timer restarts instead of showing "Download"
Live Example: http://www.mintload.com/dl/?f=cf51a94
(Click "FREE DOWNLOAD", and see the page freedl.php on next page which has this problem on IE)
Thank you!