javascript - Moving a canvas element around on webpage -
i have local web server on raspberry pi using kiosk rotating photos. trying include coolclock.js script on page have working, canvas clock lives in move when photo changes doesn't burned in on tv pi hooked to. cannot clock move on page though... function rotateimages() { var canvas = document.getelementbyid('clockid'); alert(canvas.style.top); alert(canvas.style.left); if(last==1){ document.body.style.backgroundimage='url('+preloads2.src+')'; num=math.floor(math.random()*preloads.length); preloads1.src=preloads[num]; last=2; canvas.style.top = '0px'; canvas.style.left = '0px'; } else{ document.body.style.backgroundimage='url('+preloads1.src+')'; num=math.floor(math.random()*preloads.length); preloads2.src=preloads[num]; last=1; canvas.style.top = '500px'; canvas.style.left = '500px'; } } var myvar=setinterval(function(){rotateimages()},...