Compte a reboure Casser

Résolu
wizard512 Messages postés 459 Date d'inscription dimanche 9 janvier 2005 Statut Membre Dernière intervention 11 mai 2013 - 11 juil. 2005 à 02:30
wizard512 Messages postés 459 Date d'inscription dimanche 9 janvier 2005 Statut Membre Dernière intervention 11 mai 2013 - 11 juil. 2005 à 02:36
vouyala j'ai créer un page qui se réactualise Toutes les 100 secondes, en indiquand le reste du temps avant la réactualisation dans un champs de texte.Mais mistèrieusement je ne comprend pa pourquoi la page se réactualise 8secondes aprés son activation aulieu de 100.Si quelqu'un pourrai m'aider se serrait sympa.

le script :

<script type= "text/javascript">
<!--


function actu()
{


timeOut.value='0';
location.reload();


}


setTimeout("timeOut.value ='99'",1000);
setTimeout("timeOut.value='98'",2000);
setTimeout("timeOut.value='97'",3000);
setTimeout("timeOut.value='96'",4000);
setTimeout("timeOut.value='95'",5000);
setTimeout("timeOut.value='94'",6000);
setTimeout("timeOut.value='93'",7000);
setTimeout("timeOut.value='92'",8000);
setTimeout("timeOut.value='91'",9000);
setTimeout("timeOut.value='90'",10000);
setTimeout("timeOut.value='89'",11000);
setTimeout("timeOut.value='88'",12000);
setTimeout("timeOut.value='87'",13000);
setTimeout("timeOut.value='86'",14000);
setTimeout("timeOut.value='85'",15000);
setTimeout("timeOut.value='84'",16000);
setTimeout("timeOut.value='83'",17000);
setTimeout("timeOut.value='82'",18000);
setTimeout("timeOut.value='81'",19000);
setTimeout("timeOut.value='80'",20000);
setTimeout("timeOut.value='79'",21000);
setTimeout("timeOut.value='78'",22000);
setTimeout("timeOut.value='77'",23000);
setTimeout("timeOut.value='76'",24000);
setTimeout("timeOut.value='75'",25000);
setTimeout("timeOut.value='74'",26000);
setTimeout("timeOut.value='73'",27000);
setTimeout("timeOut.value='72'",28000);
setTimeout("timeOut.value='71'",29000);
setTimeout("timeOut.value='70'",30000);
setTimeout("timeOut.value='69'",31000);
setTimeout("timeOut.value='68'",32000);
setTimeout("timeOut.value='67'",33000);
setTimeout("timeOut.value='66'",34000);
setTimeout("timeOut.value='65'",35000);
setTimeout("timeOut.value='64'",36000);
setTimeout("timeOut.value='63'",37000);
setTimeout("timeOut.value='62'",38000);
setTimeout("timeOut.value='61'",39000);
setTimeout("timeOut.value='60'",40000);
setTimeout("timeOut.value='59'",41000);
setTimeout("timeOut.value='58'",42000);
setTimeout("timeOut.value='57'",43000);
setTimeout("timeOut.value='56'",44000);
setTimeout("timeOut.value='55'",45000);
setTimeout("timeOut.value='54'",46000);
setTimeout("timeOut.value='53'",47000);
setTimeout("timeOut.value='52'",48000);
setTimeout("timeOut.value='51'",49000);
setTimeout("timeOut.value='50'",50000);
setTimeout("timeOut.value='49'",51000);
setTimeout("timeOut.value='48'",52000);
setTimeout("timeOut.value='47'",53000);
setTimeout("timeOut.value='46'",54000);
setTimeout("timeOut.value='45'",55000);
setTimeout("timeOut.value='44'",56000);
setTimeout("timeOut.value='43'",57000);
setTimeout("timeOut.value='42'",58000);
setTimeout("timeOut.value='41'",59000);
setTimeout("timeOut.value='40'",60000);
setTimeout("timeOut.value='39'",61000);
setTimeout("timeOut.value='38'",62000);
setTimeout("timeOut.value='37'",63000);
setTimeout("timeOut.value='36'",64000);
setTimeout("timeOut.value='35'",65000);
setTimeout("timeOut.value='34'",66000);
setTimeout("timeOut.value='33'",67000);
setTimeout("timeOut.value='32'",68000);
setTimeout("timeOut.value='31'",69000);
setTimeout("timeOut.value='30'",70000);
setTimeout("timeOut.value='29'",71000);
setTimeout("timeOut.value='28'",72000);
setTimeout("timeOut.value='27'",73000);
setTimeout("timeOut.value='26'",74000);
setTimeout("timeOut.value='25'",75000);
setTimeout("timeOut.value='24'",76000);
setTimeout("timeOut.value='23'",77000);
setTimeout("timeOut.value='22'",78000);
setTimeout("timeOut.value='21'",79000);
setTimeout("timeOut.value='20'",80000);
setTimeout("timeOut.value='19'",81000);
setTimeout("timeOut.value='18'",82000);
setTimeout("timeOut.value='17'",83000);
setTimeout("timeOut.value='16'",84000);
setTimeout("timeOut.value='15'",85000);
setTimeout("timeOut.value='14'",86000);
setTimeout("timeOut.value='13'",87000);
setTimeout("timeOut.value='12'",88000);
setTimeout("timeOut.value='11'",89000);
setTimeout("timeOut.value='10'",90000);
setTimeout("timeOut.value='9'",91000);
setTimeout("timeOut.value='8'",92000);
setTimeout("timeOut.value='7'",93000);
setTimeout("timeOut.value='6'",94000);
setTimeout("timeOut.value='5'",95000);
setTimeout("timeOut.value='4'",96000);
setTimeout("timeOut.value='3'",97000);
setTimeout("timeOut.value='2'",98000);
setTimeout("timeOut.value='1'",99000);


setTimeout("actu()",10000);
//-->
</script>

<hr width="100%">
refresh des torrents dans :
<hr width="100%">

merci

1 réponse

wizard512 Messages postés 459 Date d'inscription dimanche 9 janvier 2005 Statut Membre Dernière intervention 11 mai 2013 2
11 juil. 2005 à 02:36
dls j'ai trouver pourquoi. enfaite il faut rajouter un zero au dernier settimeout sinon c'est au bout de 10secondes et non au bouts de 100 secondes que la page se réactualise
3