467,870 Members | 1,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,870 developers. It's quick & easy.

Need help to adjust javascript clock

Here is javscript clock:

http://javascript.internet.com/time-...railclock.html

which I want adjust a little:
1. I want replace the days of week/year/date in external circle with
just custom text: 'www.company.com'
2. I want to reduce a little rotation speed of this text.
3. I want to fix a clock in some place, no need in mouse trail effect.

there is the severe warning in script:
//Alter nothing below! Alignments will be lost!

Your valuable help/support appreciated..

Mistral

Jun 8 '06 #1
  • viewed: 2269
Share:
3 Replies
goto to line no. 32

the line which says:
TodaysDate=" .......

just change whatever written after the "=" symbol.

that's it!

remember u need to put some space before ur actual text to make it look
nice.
mistral wrote:
Here is javscript clock:

http://javascript.internet.com/time-...railclock.html

which I want adjust a little:
1. I want replace the days of week/year/date in external circle with
just custom text: 'www.company.com'
2. I want to reduce a little rotation speed of this text.
3. I want to fix a clock in some place, no need in mouse trail effect.

there is the severe warning in script:
//Alter nothing below! Alignments will be lost!

Your valuable help/support appreciated..

Mistral


Jun 8 '06 #2
change the value of 'speed' variable to .6 or .5 from .8 - This will
slow down the rotation speed.

change the value of 'xmouse' and 'ymouse' to some static value, say
100,100 - this will freez the clock to 100,100 position on the page.
These two variable r given in the function "function Mouse(evnt)".

enjoy.
;)

mistral wrote:
Here is javscript clock:

http://javascript.internet.com/time-...railclock.html

which I want adjust a little:
1. I want replace the days of week/year/date in external circle with
just custom text: 'www.company.com'
2. I want to reduce a little rotation speed of this text.
3. I want to fix a clock in some place, no need in mouse trail effect.

there is the severe warning in script:
//Alter nothing below! Alignments will be lost!

Your valuable help/support appreciated..

Mistral


Jun 8 '06 #3
> mistral wrote:
Here is javscript clock: http://javascript.internet.com/time-...railclock.html which I want adjust a little:
1. I want replace the days of week/year/date in external circle with
just custom text: 'www.company.com'
2. I want to reduce a little rotation speed of this text.
3. I want to fix a clock in some place, no need in mouse trail effect. there is the severe warning in script:
//Alter nothing below! Alignments will be lost! Your valuable help/support appreciated..
Mistral
-------------------------------------------------------------------------------------------

there is problems:

line 32 is:
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+"
"+year;

how exactly this need be modified?

TodaysDate="COMPANY NAME "+d[date.getDay()]+" "+day+"
"+m[date.getMonth()]+" "+year; in this case I see unnecessary date,
time, year -if I remove it, code not work.

change the value of 'speed' variable to .6 or .5 from .8 - This will slow down the rotation speed.
You mean line 43 ? speed=0.6;

change the value of 'xmouse' and 'ymouse' to some static value, say
100,100 - this will freez the clock to 100,100 position on the page.
These two variable r given in the function "function Mouse(evnt)".


Where this is? Is this?

function Mouse(evnt){
ymouse =
(100)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (100)?evnt.pageX+ClockFromMouseX:event.x+ClockFrom MouseX;

This cut off 1/4 part from clock and place it in very top left corner
of page.

Mistral

Jun 8 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Shlomi Schwartz | last post: by
19 posts views Thread by Fran?ois Laroche | last post: by
8 posts views Thread by Prometheus Research | last post: by
reply views Thread by Kamyk | last post: by
12 posts views Thread by cenktarhancenk | last post: by
2 posts views Thread by sorobor | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.