Public paste
Undefined
By: Guest | Date: Jul 16 2010 10:06 | Format: None | Expires: never | Size: 1.37 KB | Hits: 952

  1. <html>
  2. <head>
  3. <title></title>
  4. <script type="text/javascript">
  5. function getCurrentTime()
  6. {
  7. var myDate = new Date();
  8. var mySecs = myDate.getSeconds();
  9.  
  10.  
  11. if(mySecs < 10)
  12. mySecs = "0" + mySecs;
  13.  
  14.  
  15. var time = mySecs;
  16. document.getElementById('time').innerHTML=(time);
  17.  
  18.  
  19. if(time == "10") //Change this to whatever time you want
  20. //location.reload();
  21. document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
  22. if(time == "20") //Change this to whatever time you want
  23. //location.reload();
  24. document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
  25. if(time == "30") //Change this to whatever time you want
  26. //location.reload();
  27. document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
  28. if(time == "40") //Change this to whatever time you want
  29. //location.reload();
  30. document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
  31. if(time == "50") //Change this to whatever time you want
  32. //location.reload();
  33. document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
  34. if(time == "00") //Change this to whatever time you want
  35. //location.reload();
  36. document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
  37. }
  38. </script>
  39. </head>
  40. <body onload="setInterval('getCurrentTime()', 1000);">
  41. <div id="time"></div>
  42. <img id="plaatje" src="GDIPlus_Image2.jpg">
  43. </body>
  44. </html>