IN THIS CHAPTER
Useful CSS manipulation
CSS can be a powerful tool for creating dynamic pages with special effects. In this chapter, you see how you can change a CSS property dynamically in various browsers. Here, you'll see how to access CSS properties and script them to perform tasks, such as change text colors. You'll see that every CSS property can be changed programmatically.
You'll also find that some browsers, most notably Internet Explorer, feature CSS-like syntax for creating dynamic filtered effects such as drop shadows and blurs.
Generally, CSS properties are all accessed the same way, via reading values as properties and setting values via methods. To access the CSS properties in script, you use the property name, unless there's a hyphen in the name. In the case of hyphenated property names, delete the hyphen and uppercase the next letter. The rest of the property name remains in lowercase. For example: