Click to See Complete Forum and Search --> : scroll colour


stancreator
07-12-2003, 01:49 PM
I@m not quite sure if this would be done with HTML or with JavaSCript but can anyone tell me how to change the colour of the scroller bars in your internet browser. I only want to change their colour, not make them flash. Any replies would be greatly apreciated. Thank you.

fla5hba5h
07-12-2003, 01:59 PM
scrollbar-face-color:COLORHERE;
scrollbar-arrow-color:COLORHERE;
scrollbar-track-color:COLORHERE;
scrollbar-shadow-color:COLORHERE;
scrollbar-highlight-color:COLORHERE;
scrollbar-3dlight-color:COLORHERE;
scrollbar-darkshadow-Color:COLORHERE;

stancreator
07-12-2003, 02:16 PM
thanks, i take it you put that in the head content??? how much longer will each page take to load???

DaveSW
07-12-2003, 02:32 PM
not much longer. if you're adding it in the head then drop this anywhere.

<style type="text/css"><!--
scrollbar-face-color:COLORHERE;
scrollbar-arrow-color:COLORHERE;
scrollbar-track-color:COLORHERE;
scrollbar-shadow-color:COLORHERE;
scrollbar-highlight-color:COLORHERE;
scrollbar-3dlight-color:COLORHERE;
scrollbar-darkshadow-Color:COLORHERE;
--></style>

Don't forget to change the 'colorhere' for whatever colors you want in hexidecimal values.

fla5hba5h
07-12-2003, 02:42 PM
Put this in the <head> tag.

<style>
body { different properties here }
</style>


It probably won't slow down the page much.


Don't forget to change the 'colorhere' for whatever colors you want in hexidecimal values.
There are other values.

RGB. rgb(redval,greenval,blueval)
Preset color values. most of the common colors (ex.red, blue)

DaveSW
07-12-2003, 02:45 PM
yeah I forgot that. But you've forgotten the type property and to comment it out.

The correct code would be

<style type="text/css"><!--
BODY {
scrollbar-face-color:COLORHERE;
scrollbar-arrow-color:COLORHERE;
scrollbar-track-color:COLORHERE;
scrollbar-shadow-color:COLORHERE;
scrollbar-highlight-color:COLORHERE;
scrollbar-3dlight-color:COLORHERE;
scrollbar-darkshadow-Color:COLORHERE;
}
--></style>

fla5hba5h
07-12-2003, 02:47 PM
Oh yeah, sorry.

brendandonhue
07-12-2003, 05:33 PM
FYI these are nonstandard CSS properties and will not work in most browsers. Also you can not use them and have valid CSS. (There is a workaround using javascript but its not that big of a deal if it doesnt validate, since your not following standards anyway).

stancreator
07-13-2003, 05:05 AM
so what are you saying, if i use that then my page won't work?

blufive
07-13-2003, 05:41 AM
If you use them, only Internet explorer will pay attention (and get coloured scrollbars). All other browsers should ignore it.

stancreator
07-13-2003, 05:46 AM
that's not too bad then.

kipkreations
07-13-2003, 06:52 AM
Most people these times, especially consumers, are using Internet Explorer..
So, at least a lot of people will see those pretty scrollbars..