Question:

Does anyone know how to make a hex code for like scroll bars like not colors but the <div> code and stuff??

by  |  earlier

0 LIKES UnLike

Does anyone know how to make a hex code for like scroll bars like not colors but the <div> code and stuff??

 Tags:

   Report

4 ANSWERS


  1. You can use Javascript or CSS.  

    For Javascript:

    &lt;head&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;

    function changeScrollbarColor(){

    if (document.all){

    document.body.style.scrollbarBaseColor...

    document.body.style.scrollbarTrackColo...

    document.body.style.scrollbarFaceColor...

    document.body.style.scrollbarHighlight...

    document.body.style.scrollbarDarkShado...

    document.body.style.scrollbarShadowCol...

    document.body.style.scrollbarArrowColo...

    }

    }

    &lt;/script&gt;

    &lt;body onload=&quot;changeScrollbarColor()&quot;&gt;

    -or-

    CSS (Cascading Style Sheets):

    &lt;head&gt;

    &lt;style type=&quot;text/css&quot;&gt;

    BODY {

    scrollbar-arrow-color: #000000;

    scrollbar-base-color: #000000;

    scrollbar-darkshadow-color: #000000;

    scrollbar-face-color: #000000;

    scrollbar-highlight-color: #000000;

    scrollbar-shadow-color: #000000;

    scrollbar-track-color: #000000;

    }

    &lt;/style&gt;

    &lt;/head&gt;

    For either of these, just change the hex value to whatever you want.


  2. Color scroll bars are only effective for Internet Explorer and browsers that use the IE engine.  Waste of time unless you expect to have only visitors that use IE.

    Ron

  3. Your question isn&#039;t really clear...i&#039;ll try to answer it the best i can

    ***** Adding scrollbars to div layers

    to add scrollbars, assign an ID to the div layer

    &lt;div id=&quot;NAME&quot;&gt;

    CONTENT HERE

    &lt;/div&gt;

    then in your css file, add this code

    #name {

    width: 500px;

    height: 400px;

    overflow: auto;

    }

    ***** Customizing scrollbar colors for div layers (i think this only works in IE)

    #name {

    scrollbar-arrow-color: yellow;

    scrollbar-base-color: black;

    scrollbar-dark-shadow-color: yellow;

    scrollbar-track-color: green;

    scrollbar-face-color: blue;

    scrollbar-shadow-color: white;

    scrollbar-highlight-color: silver;

    scrollbar-3d-light-color: black;

    }

    hope this helps..:D


  4. go to towerlyts.com and then add their myspace, they have that code on there! idk it by ehart but i go on their site all the time because nahee and me are affies. nahee is the owner&#039;s name )

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions