- <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: 868
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago