|
Scrollbar coloring in IE 5.5+Developers have long whined for the ability to alter the browser's scrollbar colors, and starting in IE 5.5+, that wish is granted, through, what else, CSS! The syntaxThere are 7 CSS attributes responsible for controlling the scrollbar's coloring, everything from the background, foreground, to the little arrow at the two ends of the scrollbar. So without further adieu, here are our attributes!
These attributes can be applied not only to the BODY element, but basically any element on your page that contains a scrollbar (such as <TEXTAREA>), for refinement. This page would look nice with a gentle greenish right bar, wouldn't you say?
ScriptingAs you can probably tell through the above examples, the CSS attributes relating to scrollbar coloring are scriptable. The syntax are simply the attribute themselves, but without the hyphens (-), and the first letter after the hyphen capitalized. For example: <script type="text/javascript"> //changes color of scrollbar arrows to red document.body.style.scrollbarArrowColor="red" </script> On a compatibility note, IE 5.5+ is the only browser that supports scrollbar coloring. Other browsers like Firefox and Opera 8 all do not. Have fun painting your browser's scrollbars! |