PDA

Click to See Complete Forum and Search --> : Browser Scroll bars


Silicon Valley
Nov 6th, 2000, 03:52 PM
Hello everyone.

Is there a way I can change the color of the scroll bars which are used in a browser. So when someone comes to a site it will change their scroll bars to the colors which I have set?

Thanks

N*G*Evangelion
Nov 7th, 2000, 03:27 AM
Yes, but the following ONLY work in IE5.5 :

Using CSS:

BODY{
SCROLLBAR-FACE-COLOR: vColor
SCROLLBAR-ARROW-COLOR: vColor
SCROLLBAR-SHADOW-COLOR: vColor
SCROLLBAR-DARKSHADOW-COLOR: vColor
SCROLLBAR-3DLIGHT-COLOR: vColor
SCROLLBAR-HIGHLIGHT-COLOR: vColor
SCROLLBAR-TRACK-COLOR: vColor
}

Using JavaScript:

object.style.scrollbarBaseColor = vColor;
object.style.scrollbarArrowColor = vColor;
object.style.scrollbarDarkShadowColor = vColor;
object.style.scrollbar3dLightColor = vColor;


*where vColor is a color name or an RGB value.*

I'm not sure those are all the possibilities (there are probably more options for JavaScript), but they should get you started.

[Edited by N*G*Evangelion on 11-20-2000 at 04:18 AM]

Emo
Nov 19th, 2000, 01:52 AM
wow, I tried the first one, and it worked for me... go to http://www.angelfire.com/sd/Emil to see what I did! (and no, I'm not trying to get people to sign up for the programs there)

P.S. If you want the code for the text following the mouse, just tell me! (The cursor is from angelfire)

-Emo