|
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!
|
Attributes (move mouse over them for description) | ||
|
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?
<style type="text/css"> BODY{ scrollbar-face-color:#DFFFBF; scrollbar-shadow-color:green; } </style> <BODY> " " </BODY> |
As 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!