jai trouver un decompteur en javascript mais je ne sais pas comment l'appliquer a mon bouton existant
code du decompteur:
<head>
<script type="text/javascript">
var valeur_origine = 5;
var valeur = valeur_origine
var x;
function Init() {
window.document.form.compteur.value=valeur;
x = window.setInterval('Decompte()', 1000);
}
function Decompte() {
(valeur > 0) ? (window.document.form.compteur.value = --valeur) : (go());
}
function go(){
window.clearInterval(x);
window.document.form.compteur.disabled=false;
window.document.form.compteur.value="GO";
}
window.onload = Init;
</script>
</head>
<body>
<form name="form">
<input type="button" value=" compteur " name=compteur disabled=true >
</form>
</body>
code de ma page:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Trigonometrie mathématique 436</title>
<style type="text/css">
@import url("style.css");
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<br />
<center><img src="images/math_index1.jpg" width="350" height="150"/><img src="images/math_index2.jpg" height="150" width="350"/><img src="images/math_index3.jpg" height="150" width="350"/></center>
<br />
<br />
<center><img src="images/gif_triangle/triangle.gif" alt="trinagle" width="800" height="500" /></center>
//voici le code de mon bouton
<center> <a href="accueil.htm"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','200','height','100','title','entrer','src','button','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#000000','movie','button' );
</script><noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="200" height="100" title="entrer">
<param name="BGCOLOR" value="#000000" />
<param name="movie" value="button.swf" />
<param name="quality" value="high" />
<embed src="button.swf" width="200" height="100" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#000000"></embed>
</object>
</noscript></a>
</center> //voici le code de mon bouton
<p align="right">
<script>
document.write("Dernière date de modification effectué le :")
document.write(document.lastModified)
</script>
</body>
</html>