Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials > Programming Tutorials > Javascripting Articles > Javascript Interacting withTime Coding Tutorials
JavaScript Timing Events
With JavaScript, it is possible to execute some code NOT immediately after a function is called, but after a specified time interval. This is called timing events.
Simple timing
Example of Simple timing.
Another simple timing
Example of Another simple timing.
Timing event in an infinite loop
Example of Timing event in an infinite loop.
Timing event in an infinite loop: with a Stop button
Example of Timing event in an infinite loop - with a Stop button.
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
A clock created with a timing event
Example of A clock created with a timing event.
Measuring users' time on a page
This script can tell the visitors of your homepage how much time they have spent on your page. To do that, first we create a function called person_in(). This function creates a new date instance which is called via the onLoad() event handler.
The mystery of time
JavaScript has a number of functions that deal with time…
the months
there is little new to learn to get the months. There is a function getMonth() which which corresponds with getDay(), and as with the days, we need to make an array writing the months in the way we want them displayed.
Visual Clock
This script shows a real-time digital clock using your own images…
Countdown Timer
This script will count down from a set time and will stop when it reaches zero. Very useful and easy to use for sites where a redirection is necessary.
Online Timer
Display how long a visitor has been on your site.
Status Bar Clock Script
This script displays the current time/date in the status bar.
Display Time and Document URL
Display the current time plus the document's URL conveniently using this script.
Time of Day Message Script
This script shows a different message depending on the time of day.
ISO Date
Display the date and time in accordance with the ISO 8601 standard.
Stop Watch Script
Add a nifty JavaScript stop watch to your site! Comes with the basic stop/start and reset feature.
Military to Standard Time Display Script
This script has a textbox containing the time, and below are two radio buttons allowing you to specify how the time will be displayed.
Text Time Format
This script collects the current time from your computer and writes it to HTML format for the browser to display.
Limited Page View Script
Limit the time that a page is viewed using this script.
Clock Pointer
A clever clock that follows the mouse.
Clock Talk
You can set a time for an alert to pop up and say something to your visitor.
World Time for 22 World Capitals
Just doubleclick anywhere on the white space of this webpage and the local time of 22 capitals will appear. Doubleclick again and the worldtime will disappear.
Timers
In JavaScript you usually set things to occur in response to certain event, like when the page loads or after the page loads, or when the user clicks on something.
Display the current time
Simply copy this script inside the of your HTML document. It should be placed wherever you want the time to be displayed.
Date and Time Last Modified Display
Use this code snippet to determine and display the date the document was last modified (date and time)…
Status Date/Time Display
Use this code to display the date/time dynamically on the status bar on a particular page. Take a look at the status bar on this page for an example…
Title Bar Date and Time Display
Use this code snippet to display today's date and current time on your web page TITLE BAR.
Timed Events
There will often be times (particularly if you are creating animated effects) where you want a piece of Javascript code to run after a set amount of time has passed. You may even want the code to run over and over at set intervals. To do this we need to u
Introduction to date and time
This page describes the basics of date and time scripting and explains the millennium problem.
Date and time
On this page I give a script to print out the present time and date, both in 24hrs format and in am/pm format. Many people want this on their website, no doubt because otherwise surfers would completely forget what time and date it is.
Internet Beat
The Internet Beat is a new measure of time, meant especially for the Internet. It divides the day into 1000 beats of 86.4 seconds each. It is written with an @ in front of it. The great advantage of it is that it offers a truly worldwide time, so that ...
RECENT ARTICLES from Graphic Design BloG
Business Cards: Ideas and Inspiration, Part II
Today we continue looking at business cards that stand out, and here’s hoping you get some inspiration and ideas! After all, you only get one first impression, so your business card should be something that showcases the best of your design abilities. On Wednesday we looked at the use of interesting shapes, 3D business cards, [...]
![]() |
![]() |
|
![]() |
![]() |
|
Making the Move from Freelance Work to Full-Time Employment
If you are like me, after graduating from a graphic design school, your goal was to make it as a freelance web designer. The lure of flexible hours, working from home and the freedom to manage your own time was too much to resist. At some point, I decided it may be ?easier? to work [...]
Tips for Asking for a Raise
At some point in our careers, there is a time when we open our paychecks and breathe a sigh of disappointment. After years of studying at a graphic design school and countless hours spent devoted to learning from colleagues and researching new design techniques, the numbers on our pay stub just don?t seem to measure [...]
Stock vs. Original Digital Photography
A picture is worth a thousand words. Graphic design schools teach us that photos on web sites have the potential to capture our attention, motivate us to read more or even propel us to navigate to another web site entirely. They inflict emotion and can establish a connection between site visitors and the goods or [...]
3 Tips to Manage Content Updates
While walking through the pharmacy I passed the aisle filled with red heart-shaped boxes filled with chocolates and remembered Valentine?s Day is quickly approaching. Even though I was surrounded by so many representations of love, it reminded me of one thing that I actually despise ? web content updates! Graphic design schools teach many, many [...]
Should You Drop the Drop-Down Menus?
I was recently on a home improvement web site searching for ideas for renovating my bathroom. After a few minutes on the site I realized that I was not going to find what I was looking for ? it certainly could have been there, but I just could not find it. Menu after menu had me [...]
Sharpen Your Skills and Gain an Edge at 2011 Web Design Conferences
Graphic design schools prepare us well for our immediate future, but it takes effort to stay on top of the ever-changing field of web design. Following are a few of the upcoming conferences and trade shows meant to help you stay a step ahead of the competition.
Interaction Eleven In its fourth year, Interaction Eleven is [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.