Can you make an image/object follow the mouse cursor?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to either make an image follow your cursor or to turn the
image into your cursor in powerpoint?
 
Nope, that's controlled through the operating system. When running a
presentation, you can right click and choose pointer options, provided the
Microsoft Handwriting Component has been installed.

Glenna
 
HOLD YOUR HORSES!
I happen to have an html file that'll do it. I can't attach it, so here is the script...
<script type="text/javascript">

function getMouseCoords(e) {
var e = e || window.event;
document.getElementById('msg').innerHTML = e.clientX + ', ' +
e.clientY + '<br>' + e.screenX + ', ' + e.screenY;
}


var followCursor = (function() {
var s = document.createElement('div');
s.style.position = 'absolute';
s.style.margin = '0';
s.style.padding = '10px';
s.style.border = '1px solid green';
return {
init: function() {
document.body.appendChild(s);
},

run: function(e) {
var e = e || window.event;
s.style.left = (e.clientX - 5) + 'px';
s.style.top = (e.clientY - 5) + 'px';
getMouseCoords(e);
}
};
}());

window.onload = function() {
followCursor.init();
document.body.onmousemove = followCursor.run;
}

</script>

<div id="msg" style="width: 1000px; height: 1000px; border: 1px solid blue;"></div>

Save this as Mover.html
What's going to happen when you open it is that a small green square will follow your cursor around, within the window of course. If you look through here you can safely edit just about anything that's a number, plus the word "green".
 
Back
Top