HTML DOM scrollbarDarkShadowColor Property
Complete Style Object Reference
Definition and Usage
The scrollbarDarkShadowColor property sets the color of the right and bottom sides
of the arrows and scroll boxes.
Tip: This function can be used together with the scrollbarShadowColor to set
shadow effects on a scroll bar.
Syntax
Object.style.scrollbarDarkShadowColor=color
|
Possible Values
Value |
Description |
color |
The color value can be a color name (red), an rgb value
(rgb(255,0,0)), or a hex number (#ff0000) |
Example
The following example sets the color of the right and bottom sides of the
arrows and scroll boxes:
<html>
<head>
<script type="text/javascript">
function setScrollbarDarkShadowColor()
{
document.body.style.scrollbarDarkShadowColor="darkred";
}
</script>
</head>
<body>
<input type="button" onclick="setScrollbarDarkShadowColor()"
value="Set ScrollbarDarkShadowColor" />
</body>
</html>
|
Try-It-Yourself Demos
scrollbarDarkShadowColor
scrollbarDarkShadowColor and scrollbarShadowColor
Complete Style Object Reference
|
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|