Anatoly Lubarsky Logo
MSSQL, .NET, Design. Life and Music

Javascript: How To Change Browser Scrollbars Colors

Small javascript code snippet that demonstrates how to change browser scrollbars colors. Please pay attention to the correct scroll colors attributes names (so they can be accessed using javascript). Usually javascript naming standard is "camel-case".


with(document.body.style)
{
    scrollbarDarkShadowColor = "0000FF";
    scrollbar3dLightColor = "87CEFA";
    scrollbarArrowColor = "0084ff";
    scrollbarBaseColor = "0000FF";
    scrollbarFaceColor = "000020";
    scrollbarHighlightColor = "0000FF";
    scrollbarShadowColor = "0000FF";
    scrollbarTrackColor = "00008b";
}

Related Posts:

Tuesday, July 13, 2004 5:34 AM

If your feedback doesn't appear right away, please be patient as it may take a few minutes to publish.

Post a Comment

Protected by CAPTCHAEnter the code you see
Name (*)  
E-mail (*)  
Url
Remember

Comment (*)