Web Analytics Made Easy -
StatCounter Drop Down Menu Colors - CodingForum

Announcement

Collapse
No announcement yet.

Drop Down Menu Colors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Drop Down Menu Colors

    I am new to this board so if this doesn't get posted in the right place...I am sorry. Anyway on to my problem. I have a drop down menu on a site and I was wondering if I can change the color of the arrow? I know the script for changing the navigation bars to the right of the screen but is it possible to do that to the arrow of a drop down menu? Can someone help me out!

    Thanks

  • #2
    Dave is 100% right.
    You can though change the font and background color.
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

    Comment


    • #3
      If you enable XBL bindings for form elements in Gecko, you can change the dropdown arrow through css with an image of your own.
      jasonkarldavis.com

      Comment


      • #4
        Could you show me an example of that,please?

        Comment


        • #5
          Well firstly, do you have an installation of Mozilla? If you do, look at /pathTo/Mozilla/res/forms.css

          For example, on my computer it is:
          file:///F:/Program%20Files/mozilla.org/Mozilla/res/forms.css

          There is where you can see how form widgets are created.

          This in particuklar is what seems to be significant to your question:
          Code:
          select > input[type="button"] {
            width: 12px;
            height: 12px;
            white-space: nowrap;
            -moz-user-focus: none;
          
            position: static !important;
            background-image: url("arrow.gif") !important;
            background-repeat: no-repeat !important;
            background-position: center !important;
          }
          
          select > input[type="button"]:active {
            background-image: url("arrowd.gif") !important;
          }
          Keep in mind, Mozilla users are < 1% of all web surfers, and on top that, the number of people enabling XBL form widgets I can probably count on my fingers and toes. I may be surprised though....
          jasonkarldavis.com

          Comment


          • #6
            ok thanks for all your help

            Comment


            • #7
              The code that you posted can be found in resource://res/forms.css ,and yeah,I don't think anyone actually uses XBL based form elements.

              Comment

              Working...
              X