<img id="sb" src="images\roses2.jpg">
<script>
var pic=document.querySelector('#sb') ;
document.addEventListener('mousemove',function(e){
var x=e.pageX;
var y=e.pageY;
pic.style.left=x + 'px';
pic.style.top=y + 'px';
})</script>
<img id="sb" src="images\roses2.jpg">
<script>
var pic=document.querySelector('#sb') ;
document.addEventListener('mousemove',function(e){
var x=e.pageX;
var y=e.pageY;
pic.style.left=x + 'px';
pic.style.top=y + 'px';
})</script>