473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
3 2509
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Shlomi Schwartz | last post by:
Hi all, Why do I get the folowing date when creating it like so: var d = new Date(2003,9,2); Wed Oct 1 23:00:00 UTC+0200 2003 Isent it soposed to be:
19
by: Fran?ois Laroche | last post by:
hey guys, I know that you will tell me that's easier to do in php or even in asp, but I just dont have the time to learn it 1- I need a javascript that will show the date of tomorrow 2- I need a...
8
by: Prometheus Research | last post by:
http://newyork.craigslist.org/eng/34043771.html We need a JavaScript component which will auto-submit a form after a set period has elapsed. The component must display a counter that dynamically...
0
by: Kamyk | last post by:
Hello all! I have problem with code. Firstly I have created the VBScript code which count me the time and days which left to the end of working week. I work from 8:00 am till 4 pm. I would like...
21
by: Trint Smith | last post by:
This will be a customer number that is automatically assigned. I want it to be fast (so that it doesn't have to be checked for existance in sql server) and impossible to ever reoccure. Could it...
12
by: cenktarhancenk | last post by:
is there a way to display a ticking clock in a web page using javascript? but not in a textbox, rather as text that i can change the style, font etc. cenk tarhan
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
5
by: Charles May | last post by:
Anyone have a simple concept for the best way to store timeclock information in a database. I currently have my table set up like this with a typical daily entry. tcID empID Type ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.