11 lines
263 B
JavaScript
11 lines
263 B
JavaScript
|
var newImage = new Image();
|
||
|
newImage.src = "img/main.svg";
|
||
|
|
||
|
function updateImage() {
|
||
|
if(newImage.complete) {
|
||
|
document.getElementById("dynamicImage").src = newImage.src;
|
||
|
newImage = new Image();
|
||
|
newImage.src = "img/main.svg#" + new Date().getTime();
|
||
|
}
|
||
|
}
|