Advertisement
raton555

Untitled

Dec 19th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <div style="width: 1051px; float: left;">
  6. <div style="float: left; width: 150px;">
  7. <div id="imCell_163" class="imGrid[4, 4]"><div id="imCellStyleGraphics_163"></div><div id="imCellStyle_163"> <div class="text-tab-content" id="imTextObject_163_tab0" style="text-align: left;">
  8. <div class="text-inner">
  9. <p style="text-align: right;"><span class="ff1 cf3 fs24"><b>Il vous reste :</b></span><span class="ff2 fs20"><br></span></p>
  10. </div>
  11. </div>
  12. </div></div>
  13. </div>
  14. <div style="float: left; width: 533px;">
  15. <div id="imCell_162" class="imGrid[4, 4]"><div id="imCellStyleGraphics_162"></div><div id="imCellStyle_162"><div id="imHTMLObject_162" class="imHTMLObject" style="height: 55px; overflow: auto; text-align: left;">
  16.  
  17. <script language="JavaScript">
  18. function decompte(cpt,H,s,clr1,clr2){
  19. cpt = document.getElementById(cpt);
  20. var Now = new Date();
  21. if (H>=Now)
  22. {
  23. dif = Math.abs(H-Now);
  24. var day = Math.floor(dif / 86400000);
  25. dif = Math.floor(dif-(day*86400000));
  26. var hour = Math.floor(dif / 3600000);
  27. dif = Math.floor(dif-(hour*3600000));
  28. var min = Math.floor(dif / 60000);
  29. dif = Math.floor(dif-(min*60000));
  30. var sec = Math.floor(dif/1000);
  31. var prefDay='';
  32. if (day<0) {prefDay = '00000'}
  33. else
  34. {if (day<10000)
  35. {if (day<1000)
  36. {if (day<100)
  37. {if (day<10)
  38. {prefDay = '0000';}
  39. else {prefDay = '000';}
  40. }
  41. else {prefDay = '00';}
  42. }
  43. else {prefDay = '0';}
  44. }
  45. }
  46. if (hour<10) {hour = '0' + hour;}
  47. if (min<10) {min = '0' + min;}
  48. if (sec<10) {sec = '0' + sec;}
  49. if (s==0)
  50. {cpt.innerHTML= '<font style="color:'+clr1+';">' + day + '</font> <font style="color:'+clr2+';">Jours</font> <font style="color:'+clr1+';">' + hour + '</font> <font style="color:'+clr2+';">Heures</font> <font style="color:'+clr1+';">' + min + '</font> <font style="color:'+clr2+';">Minutes</font> <font style="color:'+clr1+';">' + sec + '</font> <font style="color:'+clr2+';">Secondes</font>';}
  51. else
  52. {
  53. if (s==1)
  54. {cpt.innerHTML= '<font style="color:'+clr1+';">' + day + '</font><font style="color:'+clr2+';">j</font> <font style="color:'+clr1+';">' + hour + '</font><font style="color:'+clr2+';">h</font> <font style="color:'+clr1+';">' + min + '</font><font style="color:'+clr2+';">m</font> <font style="color:'+clr1+';">' + sec + '</font><font style="color:'+clr2+';">s</font>';}
  55. else
  56. {cpt.innerHTML= '<font style="color:white;">' + prefDay + '</font>' + day + ' ' + hour + ' ' + min + ' ' + sec ;}
  57. }
  58. }
  59. else
  60. {
  61. if (s!=2)
  62. {cpt.innerHTML='<font style="font-size:17px;color:'+clr2+';">Compte à rebours terminé</font>';}
  63. else
  64. {cpt.innerHTML='&nbsp;<font style="font-size:22px;">Compte à rebours terminé</font>';}
  65. }
  66. repeat=setTimeout("decompte('" + cpt.id + "'," + H + ", " + s + ", '" + clr1 + "', '" + clr2 + "')",1000)
  67. }
  68. </script>
  69.  
  70.  
  71. <div style="width:468;height:50px;text-align:left;&quot;"><div style="margin:0px;margin-left:5px;"><div id="divCptDecompteNet0" style="font-size:18px;font-family: verdana;color:black;"><font style="color:#FFBF00;">11</font> <font style="color:#3ADF00;">Jours</font> <font style="color:#FFBF00;">21</font> <font style="color:#3ADF00;">Heures</font> <font style="color:#FFBF00;">04</font> <font style="color:#3ADF00;">Minutes</font> <font style="color:#FFBF00;">44</font> <font style="color:#3ADF00;">Secondes</font></div><script>decompte('divCptDecompteNet0',1420066800000,0,'#FFBF00','#3ADF00')</script></div><div style="color:#4065BB;font-family: verdana;font-size:10px;text-align:left;"><a style="color:#4065BB;font-family: verdana;font-size:10px;text-decoration:none;"></a></div></div>
  72. </div></div></div>
  73. </div>
  74. <div style="float: left; width: 268px;">
  75. <div id="imCell_164" class="imGrid[4, 4]"><div id="imCellStyleGraphics_164"></div><div id="imCellStyle_164"> <div class="text-tab-content" id="imTextObject_164_tab0" style="text-align: left;">
  76. <div class="text-inner">
  77. <p style="text-align: left;"><span class="ff1 cf3 fs24"><b>avant de fêter le nouvel an !</b></span><span class="ff0 fs20"><br></span></p>
  78. </div>
  79. </div>
  80. </div></div>
  81. </div>
  82.  
  83. </div>
  84.  
  85.  
  86. </head>
  87. <body>
  88.  
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement