View previous topic :: View next topic |
Author |
Message |
jojo
Joined: 27 Jan 2005 Posts: 1591 Location: insula aurea
|
Posted: 13.04.2005 15:35 Post subject: scroll bar? |
|
|
Kako mogu napraviti svoj scroll bar, ili barem promijeniti boje kod onog koji se sam stvori? Znate neki dobar tutorial za tako nešto?
I kako napravit da kad ga sam stavi da bude samo onaj desno a ne i ovaj dolje?
unaprijed thanx |
_________________ deviant / malomorgen / videoholik / cimer fraj |
|
Back to top |
|
|
jurka
Joined: 26 Aug 2004 Posts: 1088 Location: Zagreb
|
Posted: 13.04.2005 15:42 Post subject: |
|
|
* How do I change the scrollbar color?
The declaration used in CSS for colored scroll bars is:
<style type="text/css">
body,html {
scrollbar-arrow-color: red;
scrollbar-base-color: #1C4764;
scrollbar-dark-shadow-color: blue;
scrollbar-3dlight-color:white;
scrollbar-face-color: #1F5171;
scrollbar-highlight-color: blue;
scrollbar-shadow-color: blue;
scrollbar-darkshadow-color: yellow;
}
</style>
Change colors as desired. Limited browser support (see below). Why "body,html"?
MSIE looks at the scrollbar properties on the <body> tag when it's in Quirks mode and looks at the same properties on the <html> tag when it's in Standards mode. If you're designing a page and you don't use a DOCTYPE, you can leave out the ",html" because IE will always be in Quirks mode. But if you include a doctype in your page, I think you have to use "body,html" to make it work with all versions of IE. If you're writing a user style sheet, you must use "body,html" or your styles will be ignored on standards-mode pages. -- [Jesse Ruderman]?
[Harmony Hollow Software] have created a tool to work out your colours automatically. It sounds like the sort of thing that only newbies would go for, but whatever works for you... -- Mark Gallagher
Comments
Not valid in CSS 1 or 2.
Only works in IE5.5 and above, actually. Now works in Konqueror as well.
Note that changing the colour of the scrollbar may annoy some viewers, albeit less than some of the fancier things javascript does ) -- Mark Gallagher
i find it incredibly annoying and arrogant of people when they screw with my browser settings (what right have they got to change them?) so i use my own CSS to override changing the scroll bar colors.
BODY,HTML {
scrollbar-face-color: #??? !important;
scrollbar-shadow-color: #??? !important;
scrollbar-highlight-color: #??? !important;
scrollbar-3dlight-color: #??? !important;
scrollbar-darkshadow-color: #??? !important;
scrollbar-track-color: #??? !important;
scrollbar-arrow-color: #??? !important;
}
change #??? to what your normal colors are, save it as a CSS file and tell your browser to use it for formatting your docs.
with IE its: tools>internet options>accessibility>user style sheet>format documents using my style sheet. click browse to locate where you saved the CSS file
(!important is used to ensure your CSS takes precedence over the authors CSS. further reading: http://www.w3.org/TR/REC-CSS2/cascade.html#important-rules )
brucie
If you like changing your desktop colours regularly, or don't know what they are, use this CSS instead:
body,html {
scrollbar-base-color: ButtonFace ! important;
scrollbar-3dlight-color: transparent ! important;
scrollbar-arrow-color: transparent ! important;
scrollbar-darkshadow-color: transparent ! important;
scrollbar-face-color: transparent ! important;
scrollbar-highlight-color: transparent ! important;
scrollbar-shadow-color: transparent ! important;
scrollbar-track-color: transparent ! important;
}
Which means you get your default styles whatever the so called "designer" of the page thinks! Donald Noble |
_________________ Jedan šest | Behance | Vimeo |
|
Back to top |
|
|
jojo
Joined: 27 Jan 2005 Posts: 1591 Location: insula aurea
|
|
Back to top |
|
|
jurka
Joined: 26 Aug 2004 Posts: 1088 Location: Zagreb
|
Posted: 13.04.2005 16:42 Post subject: |
|
|
JOJO wrote: | God bless you | |
_________________ Jedan šest | Behance | Vimeo |
|
Back to top |
|
|
jojo
Joined: 27 Jan 2005 Posts: 1591 Location: insula aurea
|
Posted: 14.04.2005 15:20 Post subject: |
|
|
to lijepo radi al kako da skinem onaj bar dolje koji ničemu ne služi, da mi bude samo onaj desno...
i čisto da znam u čemu se inače to može napravit u svom nekom designu. JScript možda? |
_________________ deviant / malomorgen / videoholik / cimer fraj |
|
Back to top |
|
|
lekke
Joined: 17 Jun 2004 Posts: 860 Location: 25th floor
|
Posted: 14.04.2005 15:25 Post subject: |
|
|
JOJO wrote: | to lijepo radi al kako da skinem onaj bar dolje koji ničemu ne služi, da mi bude samo onaj desno... |
Nemoj radit preširoke sajtove |
_________________ You need more bass. |
|
Back to top |
|
|
jurka
Joined: 26 Aug 2004 Posts: 1088 Location: Zagreb
|
|
Back to top |
|
|
jojo
Joined: 27 Jan 2005 Posts: 1591 Location: insula aurea
|
Posted: 15.04.2005 08:08 Post subject: |
|
|
ma pazim stavila sam 800 px širinu
al on tutne scroll bar i dolje i desno po defaultu valjda, mada onaj dolje nema onog čuda za micanje, tj. nije aktivan ili kako to već reći
e a ja bi da ga uopće nema... |
_________________ deviant / malomorgen / videoholik / cimer fraj |
|
Back to top |
|
|
|