Home | Pop-up's | Code 4 U | Learning Center | Links ]


JavaScript Code for You
(to copy)


Scripts for clocks, scrollers, dates, time, menus, mouse-over events, back buttons, browser information are here for you to copy from my page to yours. Some Scripts here are unique and some are like you will find on other sites. All were individually done by me.

Date & Time Today's date, time, time for a specific time zone, and days prior/after a certain date are displayed in several different formats (17 Scripts).
Date Modified Display the date your page was last updated in several different formats (6 Scripts).
Clocks Clocks that display your local time, GMT time and time for a specific Time Zone, 12 Hour and 24 hour formats (6 Scripts).
Scrollers Text scrolling in a text box or your status bar and images scrolling on your page (4 Scripts).
Menus Menus for you to use to navigate your site (5 Scripts).
Miscellaneous Back buttons, displaying information in the status bar, browser information, mouse-over events, document.write() method, simple pop-up's, information on JavaScript status, and etc. (14 Scripts).
Advanced Scripts that are more advanced and require a working knowledge of JavaScript - Menus for Use on Multiple Pages, Timestamp Picker and Banner Rotator (6 Scripts).

 

How to Cut-and-Paste Scripts

I display the code so that you can copy it to your page and it should work, as is, with no changes or you can tailor it to your liking.

Code, identified with a green background, goes between the HEAD tags on your page and code, identified with a gold background, goes between the BODY tags. Note that not all scripts will have code in both sections.

Sometimes code must be entered into an existing tag such as the BODY tag. When this happens, I show the existing tag code in white.

Each script section below contains first a title, then a sample of what the code renders and finally the code itself.

Here is the layout of each section.


TITLE

(What the code renders)

Code to copy and past into HEAD section.
(green background)
Code to copy and past into BODY section.
(gold background)


Copy the code by first highlighting it using your mouse, then press Control-C on your keyboard. Next click on your source code for your page where you want the code to go and press Control-V.




Advanced     Date & Time