anyone know where i can find the style command and attributes/descriptions for customizing the look of the scroll bar like on this site?
Ex: chaning the bar and arrows bg color etc.
Thanks all.
| SitePoint Sponsor |





anyone know where i can find the style command and attributes/descriptions for customizing the look of the scroll bar like on this site?
Ex: chaning the bar and arrows bg color etc.
Thanks all.
It is quite simple to change the scollbar colour, this was one of those things that used to puzzle me, but now I know how its done, I realise it's quite easy.
If you put this in your <head> section or within a css style sheet.
i.e.
SCROLLBAR-FACE-COLOR: #5566aa; SCROLLBAR-HIGHLIGHT-COLOR: #5566aa; SCROLLBAR-SHADOW-COLOR: #5566aa; SCROLLBAR-3DLIGHT-COLOR: #7788cc; SCROLLBAR-ARROW-COLOR: #334488; SCROLLBAR-TRACK-COLOR: #334488; SCROLLBAR-DARKSHADOW-COLOR: #7788cc
I hope this has been of some use, and if you are using Dreamweaver you can download an extension which will make it even easier. If you need more help, PM me, and I will be more than happy to show you some examples.
Michael Prosser
Last edited by mic2020; Jun 19, 2001 at 16:19.





i don't generally use WYSIWIG's





what tag? <style> tags are used in the <head> i thought?
Sorry I have changed my error you are right defender1, put it in the head section.

Defender> Yes it goes in Style tags bro.
ravio.com
Email: corey@ravio.com





so you'd use this:also would it work if i tossed aCode:<head> <style> SCROLLBAR-FACE-COLOR: #5566aa; SCROLLBAR-HIGHLIGHT-COLOR: #5566aa; SCROLLBAR-SHADOW-COLOR: #5566aa; SCROLLBAR-3DLIGHT-COLOR: #7788cc; SCROLLBAR-ARROW-COLOR: #334488; SCROLLBAR-TRACK-COLOR: #334488; SCROLLBAR-DARKSHADOW-COLOR: #7788cc </style> </head>
A:hover {color: #ffffff} in there?

You mean to hover the scrollbar? Or you mean just for the rest of your site for link rollovers?
Last edited by c-pr0mpt; Jun 19, 2001 at 23:28.
ravio.com
Email: corey@ravio.com



No, you have to do it like this:Originally posted by Defender1
so you'd use this:Code:<head> <style> SCROLLBAR-FACE-COLOR: #5566aa; SCROLLBAR-HIGHLIGHT-COLOR: #5566aa; SCROLLBAR-SHADOW-COLOR: #5566aa; SCROLLBAR-3DLIGHT-COLOR: #7788cc; SCROLLBAR-ARROW-COLOR: #334488; SCROLLBAR-TRACK-COLOR: #334488; SCROLLBAR-DARKSHADOW-COLOR: #7788cc </style> </head>
Also keep in mind the only one you *have* to specify is SCROLLBAR-BASE-COLOR. IE will make an intelligent guess based on that color to fill in the rest of the colors.Code:<head> <style> body { SCROLLBAR-FACE-COLOR: #5566aa; SCROLLBAR-HIGHLIGHT-COLOR: #5566aa; SCROLLBAR-SHADOW-COLOR: #5566aa; SCROLLBAR-3DLIGHT-COLOR: #7788cc; SCROLLBAR-ARROW-COLOR: #334488; SCROLLBAR-TRACK-COLOR: #334488; SCROLLBAR-DARKSHADOW-COLOR: #7788cc; } </style> </head>Yes.also would it work if i tossed a
A:hover {color: #ffffff} in there?
Kevin





No, i mean all in one style tag.Originally posted by c-prompt
You mean to hover the scrollbar? Or you mean just for the rest of your site for link rollovers?
so like this:Code:<head> <style> body { SCROLLBAR-FACE-COLOR: #5566aa; SCROLLBAR-HIGHLIGHT-COLOR: #5566aa; SCROLLBAR-SHADOW-COLOR: #5566aa; SCROLLBAR-3DLIGHT-COLOR: #7788cc; SCROLLBAR-ARROW-COLOR: #334488; SCROLLBAR-TRACK-COLOR: #334488; SCROLLBAR-DARKSHADOW-COLOR: #7788cc; } A:hover {color: #ffffff} </style> </head>





Ofcourse it would work, just two different defined styles, right?


Waht if I wanted to amek the scrollbar a different color on hover?
[javascript scrollbars?]





You would have to use a dhtml scrollbar because regular ones won't trigger hover or onmouseover.





Hey, you can always check http://www.hotscripts.com
I know they got such a script/tutorial there.
Bookmarks