34 lines
741 B
HTML
34 lines
741 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript">
|
|
function refresh(node) {
|
|
var times = 300; // gap in Milli Seconds;
|
|
|
|
(function startRefresh() {
|
|
var address;
|
|
if(node.src.indexOf('?')>-1)
|
|
address = node.src.split('?')[0];
|
|
else
|
|
address = node.src;
|
|
node.src = address+"?time="+new Date().getTime();
|
|
|
|
setTimeout(startRefresh,times);
|
|
})();
|
|
|
|
}
|
|
|
|
window.onload = function() {
|
|
var node = document.getElementById('img');
|
|
refresh(node);
|
|
// you can refresh as many images you want just repeat above steps
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<img style="border: 1px black solid; margin: 10em 0 0 10em;" id="img" src="cpu_load.png" alt="This is the CPU load">
|
|
|
|
</body>
|
|
</html> |