Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 03-08-2003, 04:28 PM Scroll bar colours
eyedam's Avatar
Average Talker

Posts: 27
Location: Latvia
Trades: 0
Hello!

Can someone, please, tell me how can I change the colour of the standard scroll bar like it is done on your board (it is dark blue --->).

Thanks!
eyedam
eyedam is offline
Reply With Quote
View Public Profile Visit eyedam's homepage!
 
 
Register now for full access!
Old 03-10-2003, 08:47 AM
Average Talker

Posts: 19
Location: UK
Trades: 0
Hi eyedam,

Got here from your PM over at Aimoo.
(I didnt even know I had a logon on this site, but I have so must have been here before!)


Anyway, its all done with CSS style sheets, two ways you can do it, a quick & easy way, or a lonfer way.

1:Simple, this will change the scrollbar colours based aroud the one colour you provide:
<style type="text/css">
body {
scrollbar-base-color: #FF0000;
}
</style>



Or you can have more control over each individual part of the scrollbar:
<style type="text/css">
body {
scrollbar-arrow-color: #123456
scrollbar-base-color #123456
scrollbar-DarkShadow-Color #123456
scrollbar-Face-Color #123456
scrollbar-Highlight-Color #123456
scrollbar-Shadow-Color #123456
scrollbar-Track-Color #123456
}
</style>


To see how each part of the scrollbar is affected by this, see here:
http://www.htmlgoodies.com/tutors/scrollcolor02.html

Cheers
Mikey
MikeyB987 is offline
Reply With Quote
View Public Profile
 
Old 03-10-2003, 09:06 AM
eyedam's Avatar
Average Talker

Posts: 27
Location: Latvia
Trades: 0
Thanks, Mikey!

In what section of HTML I need to put it? (I put it after </head> and before <body> and it worked, but is it the right place?)

And what about a framed web site? Do I need to put this in every page that is loaded or can I set this in the main framset page so that every page that is loaded somewhere within it, has the custom scroll bar?

Thanks again!
eyedam
eyedam is offline
Reply With Quote
View Public Profile Visit eyedam's homepage!
 
Old 03-10-2003, 09:14 AM
AhmedF's Avatar
Left for Better Places

Posts: 258
Trades: 0
You have to put it in the header tags

so before </head>
AhmedF is offline
Reply With Quote
View Public Profile
 
Old 03-10-2003, 09:53 AM
Average Talker

Posts: 19
Location: UK
Trades: 0
As AhmedF said, it needs to go before </head>

You will need to have it on every page, and as such may be better putting it into an external file & linking to it:

Copy the code (without <style> & </style> into a new file, call it something like styles.css

Then in the <head> section of your pages, add this code:
<link rel="stylesheet" type="text/css" href="styles.css">

This means you can change the one .css file & change every page, rather cool
MikeyB987 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Scroll bar colours
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47439 seconds with 12 queries