Java Script CMP050
Make Web pages interactive, learn animation, design forms for user input, and build efficient, cost-effective Web pages using Java Script.
Prerequisites:
HTML Basic and HTML
Advanced, or equivalent experience.
Technology update: Please bring a Flash Drive/Memory Stick 512MB or larger to class which will enable you to save your class work.
Textbook:
Books may be purchased at the MC Bookstore or online. You will need to know the CMP#(Continuing Education classes) for the class you are taking in order to look up information about the textbook.
Classroom Hours: 15
Course Content:
Unit 1: Getting Acquainted with JavaScript
What JavaScript Is
What JavaScript Can Do
JavaScript Isn’t Java
The Snap-together Language
Handling Events
Values and Variables
Assignments and Comparisons
What Tools to Use
Unit 2: Start Me Up
Where to Put Your Scripts
Hiding Scripts for Old Browsers
Putting Comments in Scripts
Alerting the User
Redirecting the User with a Link
Browser Detection and Conditionals
Plug-in Detection
Around and Around with Loops
Functions
Putting More than One Script on a Page
Scrolling Status Bars
Status Bar Messages
Unit 3: Fun with Images
Creating Rollovers
Creating More Effective Rollovers
Triggering Rollovers from a Link
Multiple Images Changing a Single Rollover
Working with Multiple Rollovers
Using a Function to Simplify Coding Multiple Images with a Single Rollover
Using a Function to Simplify Coding Multiple Rollovers
Creating Cycling Banners
Making the Banner Cycling Wait for the User
Adding Links to Cycling Banners
Building Slide Shows
Building Wraparound Slide Shows
Displaying a Random Image
Combining a Rollover with an Image Map
Browser Detection with Frames
Unit 4: Frames, Frames, and More Frames
Keeping a Page out of a Frame
Forcing a Page into a Frame
Forcing a Site into a Frame
Loading a Frame
Creating and Loading Dynamic Frame
Sharing Functions Between Frames
Storing Information in Frames
Loading Multiple Frames a Once
Browser Detection with Frames
Unit 5: Working with Browser Windows
Opening a New Window
Loading Different Contents into a Window
Opening a New Window Using an Image Link
Scrolling a Window
Updating one Window from Another
Creating New Pages with JavaScript
Closing a Window
Creating a Control Panel
Positioning a Window on the Screen
Displaying an Alert when a Window is Loaded
Unit 6: Verifying Forms
Verifying Passwords
Select-and-Go Navigation
Selecting Menu Items
Working with Radio Buttons
Setting One Field with Another
Validating Zip Codes
Validating Email Addresses
Unit 7: Making Your Pages Dynamic
Putting the Current Date into a Web Page
Working with Days
Customizing Your Message for the Time of Day
Converting Military Time to AM/PM
Creating a Countdown
Working with Referrer Pages
Writing Text into a Document on the Fly
Date Methods
Unit 8: JavaScript and Cookies
Baking Your First Cookie
Reading a Cookie
Showing Your Cookies
Using Cookies as Counters
Deleting Cookies
Handling Multiple Cookie
Displaying “New to You” Messages
Unit 9: Java and Plug-ins
Checking if Java is Enabled
Getting the User’s Monitor Size
Using Java to Display Text
Playing Sounds using a Plug-in
Playing a Sound on a Rollover