Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the scroll-bar in a select box 1

Status
Not open for further replies.

Einstein47

Programmer
Nov 29, 2001
737
US
I can change the color, background, and border of my text input boxes and select boxes, I can even change the browser scroll-bar, so why can't I change the scroll-bar that is on the select box drop-down list?

Is it not possible, or is it something hidden?

It would be bad to control the look of my form elements, and have this ugly, standard, scroll-bar on my drop-down lists. Einstein47
(How come we never see the headline, "Psychic Wins Lottery"?)
 
Hi,

You can't do it. It is the one scrollbar you can't change.

Sorry! NATE
spyderix.gif

 
<!--
this could be a solution *affect all in the page
-->
<style type=&quot;text/css&quot;>
<!--
BODY{
scrollbar-face-color:darkblue;
scrollbar-arrow-color:#ffffff;
scrollbar-track-color:#140a35;
scrollbar-shadow-color:'';
scrollbar-highlight-color:'#ffffff';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:'';
}
-->
</style> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
That won't work either.

I have tried so hard to do this. But you will never get it to work. Unless you make a DHTML menu or flash menu or something and simulate the scrollbar with a picture.

Hope this helps! NATE
spyderix.gif

 
Thanks guys.

Neversleep - I have already tried that, it will change the browser scroll-bars (even for frames and iframes). But it doesn't touch the select drop-down list.

Spyderix - I appreciate your insight. I don't know anything about flash, so I'll just have to put up with the one sore thumb on my site. If something does come to you (or anyone), please let me know. I'll be willing to try almost anything. Einstein47
(How come we never see the headline, &quot;Psychic Wins Lottery&quot;?)
 
A
star.gif
for liking my signature. (and for being helpful) Einstein47
(How come we never see the headline, &quot;Psychic Wins Lottery&quot;?)
 
The select box is a system control, as mentioned before it is the only set of scrollers you cannot color on a HTML page
 
Would it be possible...

Could DHTML use a normal textbox with the image of a drop-down arrow next to it? And then when someone clicks on the arrow, or when the textbox gets focus, a DIV layer is displayed below the textbox.

This would require more expertise than I have, but essentially you could control all aspects of the element. The BIG problem would be fooling the DOM so that when the submit is clicked the correct value gets sent.

This probably isn't the right forum for this question, but I would like to know if you (all) think this would be possible. Einstein47
(How come we never see the headline, &quot;Psychic Wins Lottery&quot;?)
 
This is very possible, in fact probably quite easy. Javascript could handle all of the requirements you stated.

In fact in IE55 you could create your own select control and add it to a HTML page. The advantage being you yourself code for all the events etc. Look into .htc files if you are interested, IE55 only though :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top