Table of Contents
 Home
 About this Tutor
 Introduction
 HTML Editors
 Basic Code
 Utter Basics
 The Body Tag
 Headings
 The Font Tag
 Images
 Tables
 Tables Part Two
 Tables Part Three
 Nesting Commands
 Some Design Tips
 Meta Tags
 Web Hosts
 Uploading Your Site
 Copyright Issues
 HTML Mail Lists
 Future of HTML
 Marketing
 Style Sheets
 CSS and Text
 CSS and Fonts
 CSS and Cursors
 CSS and Backgrounds
 CGI
 CGI Scripts
 JavaScripts
 Affiliate Programs List
 Browsers
 Dang 404 Errors
 Color Chart One
 Color Safe Chart
 Color Chart Three
 Code Chart
 Arial Character Map
 Times Character Map
 Wing Ding Character Map

 Meta Tag Generator
 BBS Forum
 Contact Us
 Glossary
 SiteMap
This Site Has Been Rated:
Rating = 7.69By 180 Users
Please Vote Here:

JavaScript

There is Java, and there is JavaScript. JavaScript is much easier to get a handle on, and since the online world is such a nice place, you don't even have to learn it to make your web pages come alive with the effects that only JavaScript can perform.

There are a few different methods of deploying JavaScript on your web pages. Sometimes the code comes in two chunks. One chunk will be pasted within the <head> and </head> tags and another chunk somewhere within the <body> and </body> tags. Sometimes it is only placed within the body of your document. Sometimes it's placed within the head, and then called through the <body> tag with an "onload" handler.

Each JavaScript will come with instructions on how to deploy it within your web page. It's simplified, easy, and you don't have to know anything about writing java to get javascript into your web sites.

Here is a short script I use to update the year in my copyright notices at the bottom of my web pages. Simply paste this in where you want the four digit year to appear. It will change each year without your intervention. This will work on a web page, but not on a text or other type of page. The JavaScript needs to interact with the web browser and server.

<!-- get year --><SCRIPT LANGUAGE="Javascript"><!--
var Date=new Date()
var Year=Date.getYear()
if (Year < 1000)
Year+=1900
document.write(""+Year+"")
//--></SCRIPT><!-- end get year -->

Below are links to the cgiscript.net site providing you with JavaScript that you can cut and paste into your own web pages. Check these out (you must be online). Spend some time experimenting. It's fun. I would suggest you stay away from anything that will become annoying after you've seen it once. Flashing, animations, etc., etc., etc., become annoying after a few times. It will be worth you copying some of these off into your editor and playing with them. Keep a file on your machine of these little tidbits for quick and easy access and reference.


Background Effects JavaScripts



Date and Time JavaScripts



Form Elements JavaScripts



Generators JavaScripts



User Information Display JavaScripts



Miscellaneous JavaScripts



Mouse Tricks JavaScripts



Random Items



Redirection JavaScripts



Scrollbars, Title Bars, and Status Bars



Windows and Frames



< >



Daily SEO Tips eMail
SEO Blog
SEO Training
SEO Basics 101 eBook
Learn All the Basics to SEO





© Copyright Night Train Web Productions Night Train Web Productions — All Rights Reserved
No Part of This Work May be Reproduced by any Means Without Prior Written Authorization
8153 / 051006 / 301776