473,769 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.co m'
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 2530
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.co m'
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.co m'
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.co m'
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="COM PANY 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.page Y+ClockFromMous eY-(window.pageYOf fset):event.y+C lockFromMouseY;
xmouse = (100)?evnt.page X+ClockFromMous eX:event.x+Cloc kFromMouseX;

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
3188
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
9131
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 javascript that will show the date in 2 days actually I have a script that show me the current date.... there it is: <script>
8
3032
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 shows the minutes and seconds remaining before submission. We have a fairly tight deadline (by 5PM EST, Friday, June 25); we are using a "bounty" in the hope of getting a few good responses in a hurry. BOUNTY: $200 for first place, plus a $50...
0
1120
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 to show this information on the screen by using "input form element" and using onload event which is refreshed after every 1 second. Unfortunately I don`t want to replace vbscript code on javascript code to do so. I want to have vbscirpt. Could...
21
1332
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 be date/hour/minute/second all as one integer? Thanks, Trint .Net programmer trintsmith@hotmail.com
12
4099
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
3156
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 then the calender gone actually i want if i click outside off the calender then it should me removed ..How kan i do this ... Pls inform me as early as possible .. I am waiting for ur quick replay ...Here i attached the source code .... <!DOCTYPE...
5
2203
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 Date Time 1 37 'Clockin' 1/18/08 7:45:39 AM 2 38 'Clockin' 1/18/08 7:55:42 AM 3 39 'Clockin' 1/18/08 7:55:42 AM 4 38 'BreakOut' 1/18/08 ...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.