Código PHP:
<script>
var x = 21
var y = 1
function startClock(){
if(x!=='Listo'){
x = x-y
document.frm.clock.value = x
setTimeout("startClock()", 1000)
}
if(x==0){
x='Listo';
document.frm.clock.value = x;
success.location.href="success.php?ad="+document.frm.id.value+"&verify="+document.frm.verify.value;
}}
function clicks()
{
if(x==0){
x='';
success.location.href="success.php?ad="+document.frm.id.value+"&verify="+document.frm.verify.value;
}
</script>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" onLoad="startClock()" onClick="clicks()">
Editar/Borrar Mensaje