PC Review


Reply
Thread Tools Rate Thread

ColorScrollbar.js works but gives error message

 
 
_Who
Guest
Posts: n/a
 
      28th Aug 2008
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










 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Works Calendar 6.0 error message =?Utf-8?B?Z3Vpbm4=?= Windows XP Help 0 20th Dec 2005 01:27 AM
RE: Works Calendar 6.0 error message =?Utf-8?B?Z3Vpbm4=?= Windows XP Help 2 19th Dec 2005 05:38 PM
Re: Works Calendar 6.0 error message ozlock Windows XP Help 0 2nd Dec 2005 07:52 AM
Re: Error message for works CS Windows XP General 0 24th Feb 2004 03:14 AM
Microsoft Works Error Message roger s Windows XP General 3 25th Nov 2003 04:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:25 PM.