<div class="codetitle"> <span><a style="CURSOR: pointer" data="94141" class="copybut" id="copybut94141" onclick="doCopy('code94141')"><u>Copier le code</u></a></span> Le code est le suivant :</div> <div class="codebody" id="code94141"> <br><!DOCTYPE html PUBLIC"-//W3C/ /DTD XHTML 1.0 Transitional//FR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br><html xmlns="http://www.w3 .org/ 1999/xhtml"> <br><head> <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <br>< title>Aucun Titre Document</title> <br><script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script> 🎜> <script type="text/javascript"> <br>$(function() { <br>// Code JQuery<br><br>var oldhh; <br>var oldmin; <br>var oldss ; <br><br>$(document).ready(function() { <br>fillDate(); <br>}); <br>function fillDate(){ <br>var date = new Date(); <br>var yy = date.getFullYear(); <br>var mm = date.getMonth() 1; //Intercepter le mois, <br>var dd = date.getDate(); 🎜>var cal = yy "." mm "." <br>var hh = date.getHours(); //Intercepter les heures, <br>var min = date.getMinutes(); 🎜><br>var ss = date.getTime() % 60000; <br>ss = (ss - (ss % 1000)) / 1000; //Ensuite, traitez les millisecondes obtenues en secondes <br>//(hh " :" min ":" ss); <br>oldhh = hh; <br>oldmin = min; <br>oldss = ss;//alert(oldmin ":" oldss); 🎜 >window.setInterval(test,1000); <br>function test(){ <br>var date = new Date(); <br>var hh = date.getHours(); 8 <br>var min = date.getMinutes(); //Tronquer les minutes, soit 34 <br>var ss = date.getTime() % <br>ss = (ss - (ss % 1000)) / 1000; // Ensuite, traitez les millisecondes obtenues en secondes <br>var betweenhh; <br>var betweenmin <br>var betweenss; <br><br>if(ss<oldss){ <BR>betweenss = ss 60- oldss; <BR>betweenhh = hh-oldhh; <BR>betweenmin = (min betweenhh*60)-1 - <BR><br><br>//alert("Distance du dernier rafraîchissement" betweenmin " minutes" entre "secondes"); <BR>}else{ <BR>entre entress = ss-oldss; <BR>entrehh = hh-oldhh; <br>entremin = (min entrehh*60) - oldmin; <br>/ /$ ("#message").html("Distance depuis la dernière actualisation" entre les minutes "minutes" entre les "secondes"); <BR>//alert("Distance depuis la dernière actualisation" entre les minutes "minutes" entre les "secondes"); <BR>} <BR>if(betweenmin<10){ <BR>if(betweenss<10){ <BR>$("#message").html("0 depuis la dernière actualisation" betweenmin "minutes 0" betweens " secondes "); <BR>}else{ <BR>$("#message").html("0 depuis la dernière actualisation" entre les minutes "minutes" entre les "secondes"); <BR>} <BR><BR>} else{ <BR>if(betweenss<10){ <BR>$("#message").html("Distance depuis le dernier rafraîchissement" betweenmin "minutes 0" betweenss "seconds"); >$("#message").html("Depuis le dernier rafraîchissement" entre les minutes "minutes" entre les "secondes" <BR>} <BR>} <br>} <br>}); ) <BR>{ <BR>alert("hah"); <BR>var value = document.getElementById("stateflag").value <BR>alert(value); script> <br></head> <br><corps> <br><div id="message"> <br><br></div> stateflag" name="stateflag" onchange="ByStateflag()"> <br><option valeur sélectionnée="">Statut de la transaction</option> <br><option value="0"> En cours< ;/option> <br><option value="1">Transaction terminée</option> <br><option value="3">L'acheteur a verrouillé les marchandises</option> option value="4">L'acheteur gère le paiement</option> <br><option value="5">Transaction terminée</option> /corps> <br></html></div>