473,786 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the colours of scrollbars and pulldown arrows

JJ
With all the skinning possibilities of asp.net 2.0 I am surprised that I
cannot (easily) change the colour of a controls scrollbars/border or a
dropdownlist's arrow.

I realise that I may have to do this via javascript, if it is possible, can
anyone help me?

I have found a way to chaange the scrollbars (see below) but not the drop
down arrows nor borders:

<style>

<!--

BODY{

scrollbar-face-color:#8080FF;

scrollbar-arrow-color:#FFFFFF;

scrollbar-track-color:#DDDDFF;

scrollbar-shadow-color:'';

scrollbar-highlight-color:'';

scrollbar-3dlight-color:'';

scrollbar-darkshadow-Color:'';

}

-->

</style>

JJ
Sep 28 '06 #1
1 2488
That is not a limitation in ASP.NET, but a limitation in html/css and in
the browsers used.

You can change the scrollbar colors, but that is an Internet Explorer
only feature. Other browsers uses the system colors.

You can change the borders of a dropdownlist, but that only works in
some browsers. Internet Explorer is not one of them.

You can't change the colors of the dropdownlist arrow. The system colors
is used for that.

JJ wrote:
With all the skinning possibilities of asp.net 2.0 I am surprised that I
cannot (easily) change the colour of a controls scrollbars/border or a
dropdownlist's arrow.

I realise that I may have to do this via javascript, if it is possible, can
anyone help me?

I have found a way to chaange the scrollbars (see below) but not the drop
down arrows nor borders:

<style>

<!--

BODY{

scrollbar-face-color:#8080FF;

scrollbar-arrow-color:#FFFFFF;

scrollbar-track-color:#DDDDFF;

scrollbar-shadow-color:'';

scrollbar-highlight-color:'';

scrollbar-3dlight-color:'';

scrollbar-darkshadow-Color:'';

}

-->

</style>

JJ

Sep 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2624
by: R.G. Vervoort | last post by:
I would like to select an option in a pulldown, select a record in a mysql database depending on the pulldown selection and then put the data from the record in the textfields. I can retrieve the pulldown value using javascript I can open the database and select the record using php how can i combine the 2 to within the onchange option of the pull down.
7
2319
by: jason | last post by:
Is there a way - possibly a disconnected rs? - to update the contents of an existing pulldown on a page without having to re-submit the page for the user to see the pulldown populated with an additional value? I realise there are javascript possibilities (and I am still searching for a usable one) but I thought perhaps it may be possible to allow a user to add a new entry to a drop down box that had been dynamically populated from an...
1
6633
by: cgplays.com | last post by:
I have a select-pulldown at http://computergroupplays.com/fb-pres2.asp that changes the 3rd pulldown (Dbase) depending on what the user enters in the 2nd (Wk). My associate wants the values inside the select box to retain their values after hitting the Go-Submit button when selecting the 3 choices- they want to see the values retained on the next page when you look at the form. Below is the include file used to generate the dynamic...
4
1970
by: david.graham18 | last post by:
Hi I spotted some nice code to change the background colour of a web page to one of four different colours at random but I can't find it now! The method was to select a number at random from 1 to 4 by using the rnd() function and then dividing by modulus 4. The result was then used to select a cell in a 4 cell array which was holding a different colour in each cell of the array. I would like to have this code but lack the knowledge to...
4
8819
by: Richard MSL | last post by:
I am making a combobox, where I add items to the combobox as they are required, as the user scrolls to the top or bottom of the list of items. It is a sorted combobox. Scrolling down works fine, but when they scroll up, the positioning gets confused. If the ComboBox contains record 60-79, and they pressed Up on 60, I trap the keypress and add records 40-59. I set the SelectedItem to 59, and the SelectedIndex to its index, and the textbox...
11
2495
by: Hugh Janus | last post by:
OK, this is driving me crazy! As far as I can tell it should work. It compiles fine. I am saving the fore and back colour of a RTB to the registry like this: Srx.SetValue("ForeColour", Console.ForeColor.ToArgb.ToString) Srx.SetValue("BackColour", Console.BackColor.ToArgb.ToString) Then, I try to read the colours back in at runtime and change the
9
2215
by: Annelies | last post by:
I've come across a strange problem I can't seem to solve. Every now and then the scrollbars in IE for http://www.websaid.be/ disappear. Most of the time the problem can be reproduced by following a link on the page and then returning to the home page by clicking on the arrows in the top left corner: suddenly the vertical scrollbar disappears (although there is content outside the viewport) only to reappear when hovering over the menu at...
3
1193
Mague
by: Mague | last post by:
Hey, I need to change colours in a richtextbox. I am making a simple html editor. i want to make the tags different colours. I have searched google so please dont say search google. I also use vb.net which makes it a bit harder to find anything Open to any ideas but searching google. ty Mague ps. Im a kid (13) Not to technicle thanks
7
7415
by: emlimeng | last post by:
Hello, I have a label on the form to draw people's attention so they do not forget to input the data in a particular section. e.g. "Please carefully check all the options on the form". I hope I can automate the colour of the label, so that the colours for the label can keep on changing nicely and smoothly from one end to the other. Such as the colours moves per letter or per word from left to right towards the end of the sentence, or from a...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.