Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.


Go Back   Techwarelabs Community > Tech > General Board

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-28-2001, 03:23 PM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default Create a Color Scrollbar on Your Website

If you use IE 5.5, you may have noticed that your browser's scrollbars get a little fancy when you visit NetSmog.com. . It's actually quite simple to make them and I will show you how.
The trick involves cascading style sheets (CSS), which allow you to set the styles for your entire website. If you haven't worked with CSS before, now is the time to learn.  Follow these steps to beautify your own website.

CSS information lives in the header of your page between the <head> and </head> tags.

Here is some sample code:
Code:
<style>
body {
scrollbar-face-color: #99c0e6;
scrollbar-shadow-color: #dceaf4;
scrollbar-highlight-color:#dceaf4;
scrollbar-3dlight-color: #99c0e6;
scrollbar-darkshadow-color: #dceaf4;
scrollbar-track-color: #dceaf4;
scrollbar-arrow-color: #003366;
}
</style>
All told, your code should look something like this:

Code:
<html>
<head>
<style>
body{
scrollbar-face-color: #99c0e6;
scrollbar-shadow-color:#dceaf4; 
scrollbar-highlight-color: #dceaf4;
scrollbar-3dlight-color:#99c0e6; 
scrollbar-darkshadow-color: #dceaf4;
scrollbar-track-color: #dceaf4; 
scrollbar-arrow-color: #003366;
}
</style>
</head>
<body> 
Lots of cool stuff
</body>
</html>
It's a little hard to describe which attribute affects which part of the scroll bar. I'd recommend making a simple page using the hex colors mentioned above. To get a solid understanding of which attribute controls which color, try replacing your hexes with black (#000000). The black will help you see clearly which hex corresponds to which feature of the bar.


If you want to learn more about CSS, try clicking on these helpful links.

Mulders style sheets tutorial via Webmonkey
Project Cool's CSS Reference
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
  #2  
Old 08-30-2001, 04:10 PM
geekgirl
 
Posts: n/a
Default Re: Create a Color Scrollbar on Your Website

Thanks admin!  I am going to add a bar like that to my site.  One question though, what happens to netscape users that try to go to your site?
Reply With Quote
  #3  
Old 09-15-2001, 01:53 PM
dave
 
Posts: n/a
Default Re: Create a Color Scrollbar on Your Website

Netscape users will just see a normal bar I think that code works for netscape 6.x users though
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:06 PM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.