overflow:scroll change the default color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • justml
    New Member
    • Apr 2008
    • 2

    overflow:scroll change the default color

    hy , i'm new in the webdesign domain.
    and i need a code to change the defaul color (blue) of a scroll bar into dark colors:
    this is the code:

    <div align="left" style="width:69 7px;height:577p x;overflow-y:scroll">

    can you help me ?
    Scuze me about my english..
  • justml
    New Member
    • Apr 2008
    • 2

    #2
    i forgot to say something.
    in IE7 with this code:

    [CODE=javascript]<script language="JavaS cript">
    <!--
    document.body.s tyle.scrollbarB aseColor='#2808 14';
    document.body.s tyle.scrollbarA rrowColor='#020 202';
    document.body.s tyle.scrollbarD arkShadowColor= '#4F4F4F';
    document.body.s tyle.scrollbarF aceColor='#ADAD AD';
    document.body.s tyle.scrollbarH ighlightColor=' #F2F2F2';
    document.body.s tyle.scrollbarS hadowColor='#87 8787';
    document.body.s tyle.scrollbarT rackColor='#EDE EEF';
    //-->
    </script>[/CODE]

    into body selection, is seems to working perfect, but in mozilla firefox, the script doesn't work :(
    Why ?
    Last edited by gits; Apr 19 '08, 07:41 AM. Reason: added code tags

    Comment

    • pronerd
      Recognized Expert Contributor
      • Nov 2006
      • 392

      #3
      Did you check Mozilla's DOM reference to see if that is supported?

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        i'm quite sure that this is an IE specific feature and it is not valid CSS ... the only way to have it would be to create a custom javascript scollbar ... which could be implemented for controls in your page ... for a first quick look have a look here so that you have something to start with ...

        kind regards

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Yes. The scrollbar stuff is IE-only and not standard.

          Comment

          Working...