Results 1 to 6 of 6

Thread: Horizontal scroll bar color?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Michigan
    Posts
    143

    Horizontal scroll bar color?

    How do some of these web sites have a colored horizontal scroll bar on the left side. How do I do this with my website?

    Is it javascript or what?

    for example
    http://graf-users.edu.ats.dk/maryus1...%20higher).htm


    Thanx

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    You use CSS (Casecading Style Sheets) to pull this off:

    Code:
    <style>
    body{
    	SCROLLBAR-FACE-COLOR: #0099cc;
    	SCROLLBAR-HIGHLIGHT-COLOR: #bec6da;
    	SCROLLBAR-SHADOW-COLOR: #bec6da; 
    	SCROLLBAR-3DLIGHT-COLOR: #000000; 
    	SCROLLBAR-ARROW-COLOR: #ffffff; 
    	SCROLLBAR-TRACK-COLOR: #6481aa; 
    	SCROLLBAR-DARKSHADOW-COLOR: #000000
    }
    </style>
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Unless Netscape, Opera, etc have updated, I believe that only works in IE.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    You are correct, but it is the only way to do it. I believe that it may work in the newest version of Netscape. Anyway, who use Opera anymore?
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by RealisticGraphics
    Anyway, who use Opera anymore?
    According to my web statistics, 0.7% of my visitors.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    WOW! That many!
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width