![]() | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
Valid Scrollbar
If you want to have your css validated, and still want to use colored scrollbars for IE users, this is the tutorial for you. It uses javascript to change the scrollbar color, instead of css, so the css will validate. Create a file called scroll.js and put the following code in it. The reason we're making a separate file, is so you can include it on each page, and be able to update the scrollbar code when you change layouts. You will include this code in your header.
Now, each file for your webpage will have the following added to it: In the HEADer, add
Next, in the BODY of your pages, you will have the following:
If you already have a body tag, just add onload="doscrolls();" to the tag, don't make a new one. So for example it might look like this.
Here is an image that explains what each part of the scrollbar code means:
| |||||||||