Posted by Jonathan N. Little on 04/21/06 16:02
Bill wrote:
> I'm using code from http://www.hypergurl.com/trailingtext.html to make a
> small mouse tail with some text. When I originally designed my page using
> tables to format it the code worked perfectly. I've recently been
> redesigning the page to use only css to format so I can keep all of the
> non-content stuff out of the main html code but I've run into a problem.
> Before if you scrolled down the page the text kept up with the mouse, being
> just behind it, now with the tables gone if I scroll down the text gets
> offset above the cursor the amount that I've scrolled the screen. It does
> the same if I scroll horizontally by putting the text ahead of the cursor
> the same amount I've scrolled left. I'm not that conversant with
> JavaScript, but I'm trying, so could someone either tell me what is the
> likely problem or at least point me in the right direction so I can figure
> it out myself? I've emailed the author of the original code but so far no
> response so I'm hoping I can get some enlightenment here.
>
> Thanks in advance.
>
> Bill
>
> P.S. I've done some digging into the script and it looks like it is taking
> the offset for the viewport into consideration but I'm not seeing it on the
> screen. I'm really at an impasse here!
>
You have not checked this is any other browser than IE have you (or
possibly an ancient version Netscape)?
Error: event is not defined
Source File: http://www.hypergurl.com/trailingtext.html
Line: 102
function handlerMM(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
flag=1
}
This code is also ancient and I bet will fail is ALL moder web browsers...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|