View Full Version : Scroll bar colours (no CSS)


thejermyn
04-11-2004, 10:53 AM
Does anyone know how to change the scroll bar colours without the use of CSS?

Neptune
04-11-2004, 12:59 PM
<script type="text/javascript">
window.onload = function()
{ var htmlStyle = document.getElementsByTagName('html')[0].style;
var bodyStyle = document.body.style;
bodyStyle.scrollbarFaceColor = htmlStyle.scrollbarFaceColor = '000000';
bodyStyle.scrollbarArrowColor = htmlStyle.scrollbarArrowColor = 'ffffff';
bodyStyle.scrollbarTrackColor = htmlStyle.scrollbarTrackColor = '000000';
bodyStyle.scrollbarShadowColor = htmlStyle.scrollbarShadowColor = 'ffffff';
bodyStyle.scrollbarDarkshadowColor = htmlStyle.scrollbarDarkshadowColor = '000000';
bodyStyle.scrollbarHighlightColor = htmlStyle.scrollbarHighlightColor = 'ffffff';
bodyStyle.scrollbar3dlightColor = htmlStyle.scrollbar3dlightColor = '000000';
}
</script>

The forum puts a weird space in the ('html') part. If you take away the space away and put this in your head code things should work :)