January 2001
Beginner
312 pages
6h 4m
English
So, you've seen some CSS in action. Think it's cool, eh? Well, combining it with JavaScript takes it to a whole new level!
The trick with a CSS/JavaScript combination is to realize that what you are always doing is using JavaScript to change CSS attribute values. Now, do this after the page has loaded and the user sees things change on the page right in the browser—and that's Dynamic HTML!
Let's give you the opportunity to dive straight in with an example based on the text color example you saw earlier.
NOTE
This example works only in Internet Explorer 4 and higher.
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- Cloaking device on! // Cloaking device off --> </script> </head> <body> <h1 style="color:red">Welcome ...
Read now
Unlock full access