Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
scroll bar?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 13.04.2005 15:35    Post subject: scroll bar? Add user to your forum ignore list Reply with quote

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 Smile

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jurka



Joined: 26 Aug 2004
Posts: 1088
Location: Zagreb

PostPosted: 13.04.2005 15:42    Post subject: Add user to your forum ignore list Reply with quote

* 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 Surprised) -- 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
View user's profile Send private message Visit poster's website
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 13.04.2005 15:44    Post subject: Add user to your forum ignore list Reply with quote

God bless you Smile

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jurka



Joined: 26 Aug 2004
Posts: 1088
Location: Zagreb

PostPosted: 13.04.2005 16:42    Post subject: Add user to your forum ignore list Reply with quote

JOJO wrote:
God bless you Smile
Very Happy

_________________
Jedan šest | Behance | Vimeo
Back to top
View user's profile Send private message Visit poster's website
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 14.04.2005 15:20    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
lekke



Joined: 17 Jun 2004
Posts: 860
Location: 25th floor

PostPosted: 14.04.2005 15:25    Post subject: Add user to your forum ignore list Reply with quote

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 Smile

_________________
You need more bass.
Back to top
View user's profile Send private message
jurka



Joined: 26 Aug 2004
Posts: 1088
Location: Zagreb

PostPosted: 14.04.2005 15:30    Post subject: Add user to your forum ignore list Reply with quote

da, pripazi na širinu

_________________
Jedan šest | Behance | Vimeo
Back to top
View user's profile Send private message Visit poster's website
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 15.04.2005 08:08    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group