DHTML script
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Time & date > Mouse trailer clock

 

Mouse trailer clock script

AUTHOR: Amy Cook
TYPE: Freeware
BROWSERS: IE 4+, IE 5+, IE 6+, NS 4+

This mouse trailer script displays a dynamic clock with date and time circling around the mouse pointer.


EXAMPLE

You can see it moving after your cursor.


1)
Insert this script right below the <BODY> tag of the page.

then copy (CTRL-C) & paste (CTRL-V)

 

2) Define the colors, the size and the position related to the mouse pointer in this section of the script:

dCol='000080'; // date color
fCol='cc3333';
// face color
sCol='000000';
// seconds color
mCol='008080';
// minutes color
hCol='808080';
// hours color
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;

Adjusting the speed of the spinning date:

setTimeout('Delay()',40); // the larger the value the slower the speed


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.