Re: Javascript Guru is what i need

liunx

Guest
I have a little script to show a clock that follows the mouse cursor, its nice but can get annoying, i want a submit button to be able to turn it off. <br />
The source for this clock can be found<br />
<br />
<!-- m --><a class="postlink" href="http://javascript.internet.com/clocks/mouse-trail-clock.html">http://javascript.internet.com/clocks/m ... clock.html</a><!-- m --><br />
<br />
I have emailed the author but to no avail.<br />
<br />
<br />
any help would be greatly appreciated.<br />
<br />
ta<br />
<br />
Rob<!--content-->Just get rid of it, the best, simplest and cheapest solution to your "problem"<br />
I have a clock on my desktop to check time neither do I need sh..tuff following my mouse cursor. If the thought that this silly thing makes your site more attractive crossed your mind, you got bigger problems.<!--content-->For IE:<br />
<br />
<button onclick="document.onmousemove='';clearTimeout(delayTimer);Od.innerText='';Of.innerText='';Oh.innerText='';Om. innerText='';Os.innerText='';">Kill</button><!--content-->If you want a javascript guru why didn't you post in the javascript forum?<!--content-->To those that helped, 'TheBearMay' thanks.<br />
<br />
To those that didnt 'Vladdy' I have some advice,<br />
<br />
"If you have nothing usefull to say, dont say anything at all"<br />
<br />
<br />
Dave: I couldnt find it.<br />
<br />
Bear: when i run the script it tells me that 'delayTimer' is undefined.<!--content-->Hi!<br />
<br />
That script has been written for IE4+ and NS4.x<br />
<br />
There is a way to achieve what you want, but as far as NS4.x is concerned that won't be very reliable. On the other hand it is easy to provide a button to stop that stuff in IE5+.<br />
<br />
I could modify the script to make it work in NS4.x, IE4+ and Mozilla with a stop function for IE5+ and Mozilla.<br />
<br />
If that would help you, just post again.<br />
<br />
Cheers - Pit<!--content-->i'm open to all suggestions, if your not too busy then i'd be greatfull.<br />
<br />
Thinking about it, it would be good if the clock could be fixed in the top right courner of the page (not following the page tho) as a posed to following the mouse.<br />
<br />
cheers pit.<br />
<br />
Rob<!--content-->Hi!<br />
<br />
I had already modified the stuff like I mentioned before (lot of work concerning NS4); when I saw your latest post, things became much easier (no need to change the layer structure etc.).<br />
<br />
I put the stuff here: <!-- m --><a class="postlink" href="http://www.pit-r.de/scripts/Microbyte/mousetrail2.htm">http://www.pit-r.de/scripts/Microbyte/mousetrail2.htm</a><!-- m --><br />
<br />
because its quite a long code and close to the post limit.<br />
<br />
That will do what you want in IE4+, NS4.x and Mozilla (and thus, even though I can't test that, in NS6+).<br />
<br />
Have fun with it and let your users decide whether they want to get annoyed or not :D!<br />
<br />
The "Stop" button has a toggle function; once clicked, the clock no longer follows the mouse, clicked again, the stuff restarts. In IE, when "Stop" is clicked, the clock will immediately start moving to the top right corner; in Mozilla and NS, the mouse will have to be moved after clicking the button.<br />
<br />
Cheers - Pit<!--content-->Perfect!!!<br />
<br />
Thanks for all your help pit.<br />
<br />
Rob<!--content-->Hi!<br />
<br />
You're welcome! :p<br />
<br />
Cheers - Pit<!--content-->Originally posted by Microbyte <br />
To those that didnt 'Vladdy' I have some advice,<br />
<br />
"If you have nothing usefull to say, dont say anything at all"<br />
<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?s=&threadid=16096">http://www.webdeveloper.com/forum/showt ... adid=16096</a><!-- m --> - read the last two subtitles...<!--content-->Whoop de do. Just because he's intelligent doesnt mean he's always useful. I ask a question for help and he just says dont bother. <br />
<br />
great.<!--content-->Originally posted by Microbyte <br />
Just because he's intelligent doesnt mean he's always useful.Just because you don't think he is always "useful" (??) doesn't mean that he is wrong. He's merely voicing a sentiment that many, including myself, would agree with.<!--content-->
 
Top