Other Issues - Colored scroll bar for browser

Asked By sasi rekha
20-Nov-08 06:06 AM
how to get required color scroll bar for my browser

re  re

20-Nov-08 06:26 AM

use css for color scroll bar

<style type="text/css">
BODY{
scrollbar-face-color:#DFFFBF;
scrollbar-shadow-color:green;
}
</style>

Colored scroll bar  Colored scroll bar

20-Nov-08 06:29 AM
To get a colored scroll bar for a webpage, you can adapt this CSS class -

body {scrollbar-3dlight-color:#ffd700;
scrollbar-arrow-color:#ff0;
scrollbar-base-color:#ff6347;
scrollbar-darkshadow-color:#ffa500;
scrollbar-face-color:#008080;
scrollbar-highlight-color:#ff69b4;
scrollbar-shadow-color:#f0f}

For more info & example, check this link - http://websitetips.com/articles/css/scrollbars/

Note that these may not be supported on all browsers.

If you need a colored scrollbar for your complete browser & not just for specific pages, you could try this Firefox addon -
https://addons.mozilla.org/en-US/firefox/addon/3699

i used this code..but giving errors  i used this code..but giving errors

20-Nov-08 07:33 AM
i used this code in masterpagse.i wrote this code before </hear>tag
but giving error saying that these are not a valid CSS property names
yes  yes
20-Nov-08 08:00 AM

u write </hear>tag

this is not valid

</head> is valid one

before </head> tag  before </head> tag
20-Nov-08 08:29 AM
sorry Aravind i typed worngly..i placed the below code
<style type="text/css">
BODY{
scrollbar-face-color:#DFFFBF;
scrollbar-shadow-color:green;
}
</style>
before </head>tag..but saying these are not valid CSS properties..wat is the solution
reply  reply
20-Nov-08 11:25 AM

 Use the following before the </HEAD>

<style type="text/css">
html
    {
        scrollbar-face-color:#DFFFBF;
        scrollbar-shadow-color:green;
    }
</style>

 The Entire code would look like:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPages_MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
html
    {
        scrollbar-face-color:#DFFFBF;
        scrollbar-shadow-color:green;
    }
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
       
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html

reply  reply
20-Nov-08 11:26 AM
The CSS like this in head tag would work perfectly for IE but in firfox it will not work.
<style type="text/css">
html
    {
        scrollbar-face-color:#DFFFBF;
        scrollbar-shadow-color:green;
    }
 Firefox does not support this, and it is unlikely to change as this is a deliberate design decision by the firefox development team. There is no workaround, unfortunately.
Try this to get diifernt coloures scrollbar  Try this to get diifernt coloures scrollbar
20-Nov-08 11:28 AM

Insert the following in your HTML page to change the scrollbars:

<style>
body {
scrollbar-base-color: #0025CC;
scrollbar-arrow-color: #00E81B;
scrollbar-3dlight-color: #C64C00;
scrollbar-darkshadow-color: #00A889;
scrollbar-face-color: #00ED5E;
scrollbar-highlight-color: #DD00C0;
scrollbar-shadow-color: #050066;
scrollbar-track-color: #093800;
}
</style>

Create New Account
help
How can we know a state of a thread? (A) What is use of Interlocked class ? (A) What is a monitor object? (A) What are wait handles? (A) What is ManualResetEvent and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to inherit? (I) what are two different types of remote Cache substitution? Chapter 6: OOPS (B) What is Object Oriented Programming? (B) What is a Class? (B) What is an Object? (A) What is the relation between Classes and Objects? (B Overriding? (I) what is the difference between delegate and events? (B) If we inherit a class do the private variables also get inherited? (B) What is the different accessibility levels defined in .NET? (I) Can you prevent a class from overriding? (I) what is the use of “Must inherit” keyword in VB.NET? (I Do interface have accessibility modifier. (A) What are similarities between Class and structure? (A) What is the difference between Class and structure’s? (B) What does virtual keyword mean? (B) What are shared (VB.NET 9: ADO.NET (B) What is the namespace in which .NET has the data functionality class? (B) Can you give an overview of ADO.NET architecture? (B) What are the two
cannot be used with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example a. Static int var / / in c#.net b. static void theory this allows very tight interop between different .NET languages - for example allowing a C# class to inherit from a VB class. • 07. What is IL? • Ans : IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language to in the context of Managed Extensions (ME) for C++. When using ME C++, a class can be marked with the _ _gc keyword. As the name suggests, this means that the memory for instances of the class is managed by the garbage collector, but it also means more than that. The class becomes a fully paid-up member of the .NET community with the benefits and restrictions benefit is proper interop with classes written in other languages - for example, a managed C++ class can inherit from a VB class. An example of a restriction is that a managed
with crystal reports with brief example? <H1> <B style = "mso-bidi-font-weight: normal"> <SPAN class = search-highlight> <FONT color = #ff0000> Working< / FONT> < / SPAN> with <SPAN class = search-highlight> <FONT color = #ff0000> Crystal< / FONT> < / SPAN> <SPAN class = search-highlight> <FONT color = #ff0000> Reports< / FONT> < / SPAN> in .Net < / B> < / H1> <P> < / P> <P> < / P> <P> <B style normal"> < / B> < / P> <P> This article will walk through some of the functionalities in <SPAN class = search-highlight> <STRONG> <FONT color = #ff0000> crystal< / FONT> < / STRONG> < / SPAN> <SPAN class = search-highlight> <STRONG> <FONT color = #ff0000> reports< / FONT
style = "width: 483px; height: 230px; z-index: 101; left: 279px; position: absolute; top: 145px; border-color:Gray" > < tr > < td align = "center" colspan = "2" style = "COLOR: black; HEIGHT: 23px; BACKGROUND-COLOR:Gray" > < strong > < span style = "color:#ff9933"> Employee Login < / span > < / strong > < / td > < / tr > < tr > < td align = "center" style = "height: 30px; width 384px; background-color: ActiveBorder" > < asp : Label ID = "lblUserID" runat = "server" Text = "UserID :" ForeColor = "#003300" > < / asp : Label > < / td > < td align = "center" style = "height: 28px; width: 312px; background-color: ActiveBorder" > < asp : TextBox ID = "txtUserID" runat = "server" style = "z-index: 100; left: 274px; position: absolute 54px"> < / asp : RequiredFieldValidator > < / td > < / tr > < tr > < td align = "center" style = "height: 30px; width: 384px ; background-color: ActiveBorder"> < asp : Label ID = "lblPassword" runat = "server" Text = "Password :" ForeColor = "#003300" > < / asp : Label > < / td > < td align = "center" style = "height: 30px; width: 312px; background-color: ActiveBorder"> < asp : TextBox ID = "txtPassword" runat = "server" Width = "150px" > < / asp : TextBox > &nbsp; &nbsp;&nbsp; < asp
alert('updated'); } else { return false; } } else { var ans; ans = window.confirm('Do you want to insert values?'); if (ans = = true) { _ _doPostBack('InsertEmail()'); / / PageMethods.InsertEmail(); / / control.InsertEmail(); / / alert('Inserted'); } else { return false 0" cellspacing = "0" > < tr style = "background-image: url(images / title.gif)" > < td style = "height: 10%; color: Black; padding: 2px; font-size: larger; font-family: Calibri" align = "center" > Information < / td > < td style = "color: White; font-weight: bold; padding: 3px; font-size: larger" align = "Right" > < a href = "javascript:void runat = "server" ImageUrl = "~ / images / button_ok.gif" / > < / td > < / tr > < / table > < / asp:Panel > < / ContentTemplate > < / asp:UpdatePanel > < div class = "main2" style = "margin: 30px 0px 0px 20px;" > < div id = "Print_Div" class = "" / > < div class = "head_bg" > < div class = "inv_main_hedding" > Invoice <!- -< asp:Button ID = "btnPrintPreview" runat = "server" OnClick = "btnPrintPreview_Click" Style = "z-index: 105; left png" OnClick = "cmdPrint_Click" / > < / span > < / div > < / div > < asp:Panel ID = "pnlInvMain" runat = "server" Visible = "true" > < div class = "inv_hed" > < div class = "inv_hed_data" style = "background-color: #d0e4f7; width: 650px; height: 20px; border: 1px solid