The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
how to have a colored scrollbar in vb3 ?
like the one of vb3 ACP, it's dark blue
how to make one for main forum ? I tried but didn't know how to get it correct. thank you |
#2
|
||||
|
||||
Not possible if you want compliant CSS, as there is no attribute for specifying scrollbar color.
If you don't care: Set scrollbar-base-color, scrollbar-3dlight-color, scrollbar-arrow-color, scrollbar-darkshadow-color, scrollbar-face-color, scrollbar-highlight-color, scrollbar-shadow-color and scrollbar-track-color for the BODY-Tag. |
#3
|
|||
|
|||
And do remember, only IE users will see it.
|
#4
|
||||
|
||||
Quote:
NOTE: this is script I wrote by hand - feel free to use it but PLEASE leave the acknowledgement in ... it *should* retain colours that fit with your style automatically but of course will only render colours in IE Code:
<script type="text/javascript"> <!-- /* START I.E. only Flat ScrollBar Colour Script for use with CSS2 Validation */ /* coded by Natch - mobileforces.org */ bg = window.document.bgColor; txt = window.document.fgColor; if (document.all){ with (window.document.body.style){ scrollbarBaseColor=bg; scrollbarFaceColor=bg; scrollbarHighlightColor=txt; scrollbar3dLightColor=bg; scrollbarShadowColor=txt; scrollbarDarkShadowColor=bg; scrollbarArrowColor=txt; scrollbarTrackColor=txt; } } /* END I.E. only Flat ScrollBar Colour Script for use with CSS2 Validation */ //--> </script> |
#5
|
||||
|
||||
Well ... yes
Although I wouldn't do this. |
#6
|
||||
|
||||
Quote:
Natch, yours doesn't seem to work either. Sorry for my idiot question but how can I set up colors in your code ? Of course I'm using IE. thank you guys |
#7
|
||||
|
||||
Quote:
If you wanna set up colours in the code I posted, you replace the txt and bg entries on each line with '#******' where the *'s are your RRGGBB colour codes ... (but as I said it will give u javascript errors in IE6 so don't use it |
#8
|
||||
|
||||
thanks anyway, it's nothing with changing color when it doesn't work T_T
|
#9
|
||||
|
||||
Just put:
HTML Code:
html { scrollbar-base-color: #E7E5E6; scrollbar-arrow-color: #334B71; } |
#10
|
||||
|
||||
thank you NTLDR, it works !
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|