Question: How do I apply this style via JavaScript ?
jQuery also welcome 🙂
Note:
It must be applied to the <HTML> element, not the document.body element.
Otherwise it doesn’t work.
<style type="text/css">
html {
scrollbar-arrow-color: Orange;
scrollbar-base-color: Black;
scrollbar-dark-shadow-color: Black;
scrollbar-track-color: Gray;
scrollbar-face-color: Black;
scrollbar-shadow-color: Silver;
scrollbar-highlight-color: Silver;
scrollbar-3d-light-color: Silver;
}
</style>
Never mind, actually it’s dead simple:
Full example:
Where SetScrollbarStyle is called from a form-button onclick event.