Hour 23: CSS and JavaScript
In addition to HTML and Cascading Style Sheets, JavaScript is one of the primary languages spoken by Web browsers. The HTML code provides the structure of the content, the style sheet provides the presentation, and the JavaScript provides the interactivity and actions. JavaScript and CSS go hand-in-hand in building the user's experience with the Web site. A full tutorial on JavaScript goes beyond the scope of this book, but nevertheless, in this hour you will learn
- The basic concepts of JavaScript
- How to trigger JavaScripts in Web pages using HTML events
- How CSS can be used with JavaScript to produce Dynamic HTML
- How to move content around the screen using JavaScript and positioning CSS
- How to detect specific browsers using JavaScript and provide an alternate style sheet for each
Sample Code
You can download the sample code from each hour as one package or individual files.
- Download all [69K tar.gz file]
- Listing 23.1 [HTML]
- Listing 23.2 [HTML]
- Background image for Kynn.com [JPEG format]
- Listing 23.3 [HTML]
- Picture of Angie [JPEG format]
- Picture of Kim [JPEG format]
- Picture of Nying [JPEG format]
- Listing 23.4 [HTML]
- Listing 23.5 [HTML]
- Listing 23.6 [CSS]
- Listing 23.7 [CSS]
Web Links
These are the links presented in this hour, given here for easy reference.
- ECMA, the European Association for Standardizing Information and Communication Systems
- Teach Yourself JavaScript in 24 Hours
- Kim, Angie, and Nying
- Tibetan Mastiffs
Updates and Errata
The ISBN number given for Teach Yourself JavaScript in 24 Hours on page 408 is incomplete. The correct ISBN number is 0672320258.