How to change the color of Scroll Bar

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
szms
Forum Contributor
Posts: 101
Joined: Thu Jun 26, 2003 12:23 pm

How to change the color of Scroll Bar

Post by szms »

I am wondering how to change the color of scroll bar.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You can do it in CSS but only for Internet Explorer, try a Google on 'CSS scrollbar'.

Mac
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

Code: Select all

<style>
body&#123;
	scrollbar-3dlight-color: #424242;
	scrollbar-arrow-color: #D9B900;
	scrollbar-darkshadow-color: #72767E;
	scrollbar-face-color: #323641;
	scrollbar-highlight-color: #C0C2C5;
	scrollbar-shadow-color: #82868E;
	scrollbar-track-color: #72767E;
&#125;
</style>
:D
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

twigletmac wrote:You can do it in CSS but only for Internet Explorer, try a Google on 'CSS scrollbar'.

Mac
why only ie? is is a standard something that ie added on?
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

Post by cybaf »

just did a google search of "scrollbar site:www.w3c.org" and the result showed nothing so the scrollbar property is not a standard, and what I know it only works in IE...
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

http://www.iota-six.co.uk/html/33_ie.htm
More interesting IE-only features...
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

you could also use:

Code: Select all

<style>
body &#123;
scrollbar-base-color: #ff3333;
&#125;
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

JAM wrote:http://www.iota-six.co.uk/html/33_ie.htm
More interesting IE-only features...
iframe's works well on my Mozilla Firebird :roll:
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

Post by cybaf »

as of html 4.0 IFRAME is a standard
check this out http://www.w3.org/TR/REC-html40/present ... tml#h-16.5
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

i think ti iframe was discussed elsewhere. netscape 4xx was previous to it's add, but due to it's ability to be used as an embedded element so you could have other stuff on the page, it's functionality was actually good enough to be added to the w3c standard, so as of netscape 6, and actually an earlier version of mozilla (i have 1.3.1 but a friend who only uses linux informed me they've had it since about 1.0) have supported it. opera also supports it (i think version 6 and up)
Post Reply