Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="fr"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="generator" content="PSPad editor, www.pspad.com"> <title>Untitled</title> <style type="text/css"> body {font-size:48px;text-align:center} p{width:400px;margin:40px auto;} </style> </head> Attention, je vais me désintégrer dans secondes ! <script type="text/javascript"> var n=10; function car(){ document.getElementById('idc').innerHTML=n--; if (0<n) setTimeout(car,1000); else {n=10;document.getElementById('idc').innerHTML=0;exp()} } function exp(){ if (document.getElementById('bdy').style.backgroundColor!='#000') document.getElementById('bdy').style.backgroundColor='#000'; else document.getElementById('bdy').style.backgroundColor='#fff000'; if (0<n--) setTimeout(exp,100+Math.round(100*Math.random())); } car(); </script>