Scrollbar color

http://www.bkantik.com/how.jpg

the picture, is what i am trying to do…

I have tried using CSS:
<STYLE type="text/css">
<!--
BODY {
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
scrollbar-shadow-color: #ffffff;
scrollbar-arrow-color: #660066;
scrollbar-track-color: #ffffff;
}
-->
</STYLE>

But no luck…

The site is programmed in ASP.NET 2.0 VB script
damixaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nauman_ahmedCommented:
Where are you pasting the style code? It should be in <Head></Head> section.

Nutrockers Online Scrollbar Stylesheet Color Code Creator
http://www.nutrocker.co.uk/scrollbarcolor.html

-Nuaman.
0
damixaAuthor Commented:
Error      1      'scrollbar-3dlight-color' is not a known CSS property name.      C:\test2\CSS1.css      9      2      http://localhost/test/
0
damixaAuthor Commented:
i have a style.CSS document, i have pasted the code there, ind i have tried in <head>...
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

damixaAuthor Commented:
It doesn’t have to be an iframe, or be like my picture at all.
All I need is a custom scrollbar (vertical) that appears when a table of some kind is wider then 540px
0
damixaAuthor Commented:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

scrollbar-shadow-color: #ffffff;
is NOT supported by XHTML 1.0

if i remove this line, it works...

But i still need an XHTML 1.0 solution
0
deanvanrooyenCommented:
I have tried this:

http://www.experts-exchange.com/Web/Web_Languages/CSS/Q_20854526.html

but i cannot get it work....
0
deanvanrooyenCommented:
i have tried java script in both the src page and the doc loading the iframe and still no luck

    private void Page_PreRender(object sender, EventArgs e)
    {
        // Define the name and type of the client scripts on the page.
        String csname1 = "PopupScript";
        String csname2 = "ButtonClickScript";
        Type cstype = this.GetType();

        // Get a ClientScriptManager reference from the Page class.
        ClientScriptManager cs = Page.ClientScript;

        // Check to see if the startup script is already registered.
        if (!cs.IsStartupScriptRegistered(cstype, csname1))
        {
            String cstext1 = "alert('Hello World');";
            cs.RegisterStartupScript(cstype, csname1, cstext1, true);
        }

        // Check to see if the client script is already registered.
        if (!cs.IsClientScriptBlockRegistered(cstype, csname2))
        {
            StringBuilder cstext2 = new StringBuilder();
            cstext2.Append("<script type=text/javascript> ");
            cstext2.Append("var mode=0 ;");

            cstext2.Append("function blinkscroll(){ ");
            cstext2.Append("if (mode==0) ");
            cstext2.Append("frames['iframetest'].document.body.style.scrollbarFaceColor=\"blue\" ;");
            cstext2.Append("else ");
            cstext2.Append("document.body.style.scrollbarFaceColor=\"green\" ;");
            cstext2.Append("mode=(mode==0)? 1 : 0 ;");
            cstext2.Append("} ");
            cstext2.Append("setInterval(\"blinkscroll()\",1000) ");
            cstext2.Append("</script> ");
            cs.RegisterClientScriptBlock(cstype, csname2, cstext2.ToString(), false);

        }
0
deanvanrooyenCommented:
hi!!

I have been researching this, iframes are not xhtml compliant, therfore there is actually no real "solution".

In the doctype directive though you can experiment, there are different types to suit your needs for compatiblity,
check out

http://www.w3schools.com/xhtml/xhtml_dtd.asp

hopefully this will sort out you needs
0
damixaAuthor Commented:
scrollbarArrowColor is not a member of: document.body.style in javascript...
(in VS2005)

any ideas? How I can make this?

Flash? Problem is I don’t know how.

There has to be a way…
0
deanvanrooyenCommented:
scrollbarFaceColor is what you need I suspect as it work with a text area...
0
damixaAuthor Commented:
how to close a question?
0
deanvanrooyenCommented:
just give someone the points or splits the points... unfortunitly there is no real solution for your question using strict current xhtml, maybe next version will support it?
0
deanvanrooyenCommented:
ps why not try email the w3c?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.