W
_Who
This works. I get colored scrollbars. But why the error message?
File ColorScrollbar.js contains:
var htmlStyle = document.getElementsByTagName('html')[0].style;
htmlStyle.scrollbarShadowColor = "orange";
htmlStyle.scrollbarFaceColor = "orange";
htmlStyle.scrollbarArrowColor = "orange";
htmlStyle.scrollbarTrackColor = "maroon";
htmlStyle.scrollbarHighlightColor = "MediumVioletRed";
htmlStyle.scrollbar3dlightColor = "maroon";
htmlStyle.scrollbarDarkshadowColor = "maroon";
And Main.Master contains:
<body >
<script type="text/javascript" src="ColorScrollbar.js"></script>
But gives the message:
Warning 2 Error updating JScript IntelliSense: I:\.snip.\ColorScrollbar.js:
'document.getElementsByTagName(...).0.style' is null or not an object @ 1:4
I:\.snip.\Main.master
If I understand the docs (HTML Element | html Object) , the html tag does
not have a style attribute (but it does have styles)
Can you explain a little what is going on and maybe how I can remove the
error message??
Thanks
File ColorScrollbar.js contains:
var htmlStyle = document.getElementsByTagName('html')[0].style;
htmlStyle.scrollbarShadowColor = "orange";
htmlStyle.scrollbarFaceColor = "orange";
htmlStyle.scrollbarArrowColor = "orange";
htmlStyle.scrollbarTrackColor = "maroon";
htmlStyle.scrollbarHighlightColor = "MediumVioletRed";
htmlStyle.scrollbar3dlightColor = "maroon";
htmlStyle.scrollbarDarkshadowColor = "maroon";
And Main.Master contains:
<body >
<script type="text/javascript" src="ColorScrollbar.js"></script>
But gives the message:
Warning 2 Error updating JScript IntelliSense: I:\.snip.\ColorScrollbar.js:
'document.getElementsByTagName(...).0.style' is null or not an object @ 1:4
I:\.snip.\Main.master
If I understand the docs (HTML Element | html Object) , the html tag does
not have a style attribute (but it does have styles)
Can you explain a little what is going on and maybe how I can remove the
error message??
Thanks