Forum Moderators: open
<script language="JavaScript">
if (document.layers)
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = moveShadow;
function moveShadow() {
getMouse();
if (document.layers)
document.images.shadow.moveTo(gMouseX,gMouseY)
else
document.images.shadow.style.left = gMouseX;
document.images.shadow.style.top = gMouseY;
}
function getMouse(evt) {
if (document.layers) {
gMouseX = evt.pageX;
gMouseY = evt.pageY;
}
else {
gMouseX = event.clientX + document.body.scrollLeft
gMouseY = event.clientY + document.body.scrollTop;
}
}
</script>
Unfortunately this one doesn't seem to work across frames - the mousemove event is sensed from the document which is explicitly tied to a single window (frame).
Thanks again though.
I heard that IE5.5 can have layers outside of the browser window - i.e. on the desktop. Has anyone seen this yet?
I believe there's a way to use whichever graphic you like with those scripts. I can't imagine how it would travel across frames; I've never seen it done. Let us know if you find one that works that way for you.