|
|||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
HTML scripting
Writing scripts is a light version of programming. To write scripts is to write programs. Programming is outside the scope of this Web site, so if you actually want to learn how to write your own scripts, just go to your favorite search engine site and search for scripting or Web page scripting and you will find many sites to show you how. Javascript commands must be placed within a pair of SCRIPT tags. You must always close script tags. There are two places where Javascript can reside on an HTML page. Javascript can live within the HEAD tags and also the BODY tags. All of the pages which make up ITarama contain some Javascript. On this page we will show you the scripts we used and will provide brief explanations of what is going on. The following script is a Javascript function that checks to be sure that something is entered into each required field on our sign up page. If the user tries to submit a form by hitting the "Sign me up" button and any of the required information is missing, an alert box pops up and tells the user what is missing and places the cursor into that field to await input. This next script is a function that generates the pulldown link box at the top of each page. This script can also work with non Javascript browsers via a CGI script housed on the server through the use of the NOSCRIPT tags. This script reads the system date and converts it into the day of the week, the month and the year and displays it near the top of all ITarama pages. This script creates a clock and displays it in the title bar of every page of the IT-arama site. This script does not work in the Mozilla Firefox browser. |
|||||||||||||||||||||||||
|
Text formatting
| Headings
| Lists
| Images
| Linking
| Tables
| Forms
| Scripting
| CSS
| Sign up here
| Contact us
| Resume
|
|||||||||||||||||||||||||
| © 2000 - 2010 by 985 computing LLC ITarama - The home of short sweet Web tutorials |
|||||||||||||||||||||||||