- <html>
- <head>
- <img id="plaatje" src="GDIPlus_Image2.jpg">
- <title></title>
- <script type="text/javascript">
- function getCurrentTime()
- {
- var myDate = new Date();
- var mySecs = myDate.getSeconds();
- if(mySecs < 10)
- mySecs = "0" + mySecs;
- var time = mySecs;
- document.getElementById('time').innerHTML=(time);
- if(time == "00") //Change this to whatever time you want
- //location.reload();
- document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
- if(time == "10") //Change this to whatever time you want
- //location.reload();
- document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
- if(time == "20") //Change this to whatever time you want
- //location.reload();
- document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
- if(time == "30") //Change this to whatever time you want
- //location.reload();
- document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
- if(time == "40") //Change this to whatever time you want
- //location.reload();
- document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
- if(time == "50") //Change this to whatever time you want
- //location.reload();
- document.getElementById('plaatje').setAttribute('src', 'GDIPlus_Image2.jpg');
- }
- </script>
- </head>
- <body onload="setInterval('getCurrentTime()', 1000);">
- <div id="time"></div>
- </body>
- </html>
Undefined
By: Guest | Date: Jul 15 2010 09:15 | Format: None | Expires: never | Size: 1.38 KB | Hits: 866
Latest pastes
2 days ago
3 days ago
3 days ago
4 days ago
5 days ago