Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Open Points: 125 Time: 05:16 - Jun 27, 2007  

bc030400030

how can i change scroll bar colors in Asp.net 2.0.

please give me answer of how can i change my scroll bar colors in Asp.Net 2.0.

Answer Discussion
Tutorials

 

nidhi

Date:: Jun 27, 2007

Time:: 06:49

Does it have to be using asp.net? Can you code your web pages to use cascade style sheets and javascript? I would of thought CSS would be the easiest

css example

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:'';
}

You can also do something similar in Javascript if you like
i.e.

document.body.style.scrollbarFaceColor="colorname"
document.body.style.scrollbarArrowColor="colorname"
document.body.style.scrollbarTrackColor="colorname"
document.body.style.scrollbarShadowColor="colorname"
document.body.style.scrollbarHighlightColor="colorname"
document.body.style.scrollbar3dlightColor="colorname"
document.body.style.scrollbarDarkshadowColor="colorname"

more info here http://www.codeproject.com/html/scrollba...

bc030400030

Date:: Jun 30, 2007

Time:: 23:11

No, this code is not helpful for me..

nidhi

Date:: Jul 01, 2007

Time:: 01:51

how is your code setup? Are you talking about scrollbars on the browser window yes?
or on some control? Please expand a little more on what you want

bc030400030

Date:: Jul 01, 2007

Time:: 12:04

I talk about windows scroll bar colors... when i apply those method then only colors changed at IDE (Visual Studio) but when i run the project browser window shows default scrolls.

bc030400030

Date:: Jul 01, 2007

Time:: 12:09

I'm talking about Windows scroll bar colors.... when i use both method only change of scroll bar colors appear in IDE(Visual Studio) but when i run the project browser window display defualt scroll bar style.

nidhi

Date:: Jul 02, 2007

Time:: 11:22

Ok, here is a simple example of colouring scrollbars inside html. Perhaps you can use this and adapt it to your needs.

See sample screenshot here http://i16.tinypic.com/4pugsgi.jpg

This is the code I have for that

<HTML>
<HEAD>
<TITLE>Test Scrollbar Colour</TITLE>

<STYLE TYPE="text/css">

BODY
{
scrollbar-face-color:red;
scrollbar-arrow-color:white;
scrollbar-track-color:blue;
scrollbar-shadow-color:'';
scrollbar-highlight-color:'';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:'';
}
</STYLE>

</HEAD>
<BODY>
Hello
<P>
There
<P>
This
<P>
Is
<P>
A
<P>
Test
</BODY>
</HTML>

Note the colours I specified and note what the scrollbar looks like

When u say u ran it within project browser, is that within your IDE? Have u run it in a browser outside the IDE?

usuarioabandonado

Date:: Jul 04, 2007

Time:: 04:31

bc030400030, I have the same problem. In VS2005 I can see the scroll colors but when I run the project, I can't. Even more, if I do some "Response.Write("xxxx")" in code, the scrolls take their colors when I run the project... ¿¿¿?? Strange!

bc030400030

Date:: Jul 16, 2007

Time:: 12:12

this method is also make no solution of my problem.

nidhi

Date:: Jul 17, 2007

Time:: 03:02

have u tried to create this as a small test? Is it possible for you to post the code that you have tried here?

bc030400030

Date:: Jul 23, 2007

Time:: 04:42

Thanks, now i have the solution of my problem.

admin

Date:: Aug 22, 2007

Time:: 13:25

bc030400030, did you get your question solved?

If you did then please close this question and distribute the points. If you found the solution on your own, we would be very happy if you could explain it here for the sake other users having the same problem.

If you didn't get a solution to your problem, please leave a comment here to let the experts know that you're still looking for an answer.

Thanks,
The Quomon Admin Team

prashanth.guru

Date:: Oct 18, 2007

Time:: 06:50

Make the extensive use of CSS and upon load and change of the scroll call different styles from the CSS.

Thanks,
Prash

alppprince

Date:: Mar 12, 2008

Time:: 02:50

im also having the same pbm. can you tell me the solution? - Prasanna -

rswash

Date:: Mar 28, 2008

Time:: 21:20

the example code, which was provided by nidhi, works only in IE but not firefox..

rcastagna

Date:: Apr 10, 2008

Time:: 07:27

Changing the scrollbar colors is not supported in any of the Gecko (Netscape, Firefox, Mozilla) based browsers. It's an IE only hack/trick.

maheshhamdardmca07

Date:: Mar 11, 2010

Time:: 23:52

the above code written in html to change scrollbar color perfectly runs in html but how can i use this code in asp.net when our website project will run...please send me also on my email id maheshhamdardmca07@gmail.com
when I write the same code in asp.net it gives error...

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es