Home All Groups Group Topic Archive Search About

change the scrollbar color in a listbox

Author
6 Sep 2006 2:48 AM
sl
Greetings,

Is it possible to change the color of the scrollbars in a listbox in a
browser?  I have seen many references to:

document.body.style.scrollbarFaceColor="colorname"
document.body.style.scrollbarArrowColor="colorname"
document.body.style.scrollbarTrackColor="colorname"
document.body.style.scrollbarShadowColor="colorname"
document.body.style.scrollbarHighlightColor="colorname"
document.body.style.scrollbar3dlightColor="colorname"
document.body.style.scrollbarDarkshadowColor="colorname"

This does not work.  Is it yet a standard?  Was it only around for IE5.5+
then deprecated?  I dont want to change the browser scrollbars just the
scrollbars in a listbox within a browser.  See the page
nflhallofshame.com/database.aspx.  I want the listbox to match the color
scheme.

Any help would be appr.

Steve

Author
6 Sep 2006 8:01 AM
Tim_Mac
hi, here is a good post on the matter:
http://www.ozzu.com/ftopic64883.html

quote:

Support for scrollbar colour properties will be spotty at best. According to
the W3C, "These properties are illegal: they are neither defined in any CSS
specification nor are they marked as proprietary (by prefixing them with
"-vendor-")." Until your post, I actually thought they were IE-only; I
didn't realise Firefox supported them at all.

hope this helps
tim

Show quoteHide quote
"sl" <s*@somewhere.com> wrote in message
news:5GqLg.22856$bZ6.15901@tornado.tampabay.rr.com...
> Greetings,
>
> Is it possible to change the color of the scrollbars in a listbox in a
> browser?  I have seen many references to:
>
> document.body.style.scrollbarFaceColor="colorname"
> document.body.style.scrollbarArrowColor="colorname"
> document.body.style.scrollbarTrackColor="colorname"
> document.body.style.scrollbarShadowColor="colorname"
> document.body.style.scrollbarHighlightColor="colorname"
> document.body.style.scrollbar3dlightColor="colorname"
> document.body.style.scrollbarDarkshadowColor="colorname"
>
> This does not work.  Is it yet a standard?  Was it only around for IE5.5+
> then deprecated?  I dont want to change the browser scrollbars just the
> scrollbars in a listbox within a browser.  See the page
> nflhallofshame.com/database.aspx.  I want the listbox to match the color
> scheme.
>
> Any help would be appr.
>
> Steve
>
>

Bookmark and Share