|
Posted by Bill on 04/21/06 16:43
Funny you should mention different browsers. I'm just now going through and
testing on different browsers and low and behold the code works perfectly on
Opera 8.54. So far the code doesn't work in IE 6, Netscape 8.1 or Mozilla
Firefox 1.5. Can you point me at something newer that will produce the same
effect? I originally did not like the effect on the source page but
changing the message to a 5 letter one gives a nice visual I'd like to keep.
Bill
"Jonathan N. Little" <lws4art@centralva.net> wrote in message
news:4448d76f$0$3689$cb0e7fc6@news.centralva.net...
> 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]
|