Javascript Essentials Part 2
by Hiroshi on November 1st, 2008
Scroll bar color
Add the following css in your styles.css file. Change color values in following as required.
BODY{ SCROLLBAR-FACE-COLOR: #cfced2; SCROLLBAR-HIGHLIGHT-COLOR: #f6f6f7; SCROLLBAR-SHADOW-COLOR: #cfced2; SCROLLBAR-3DLIGHT-COLOR: #b3b3b3; SCROLLBAR-ARROW-COLOR: #4a5b86; SCROLLBAR-TRACK-COLOR: #e5e5e5; SCROLLBAR-DARKSHADOW-COLOR: #919194; BACKGROUND-COLOR: #ffffff }
OR
For HTML Page Add the following in head section:
<style type="text/css"> BODY { SCROLLBAR-FACE-COLOR: #FFA3A3; SCROLLBAR-HIGHLIGHT-COLOR: #FFA3A3; SCROLLBAR-SHADOW-COLOR: #FFA3A3; SCROLLBAR-3DLIGHT-COLOR: #FFA3A3; SCROLLBAR-ARROW-COLOR: #FF7979; SCROLLBAR-TRACK-COLOR: #FF7979; SCROLLBAR-DARKSHADOW-COLOR: #000000 } </style>
Left Scroll bar
Inside of your
tag add:style="direction:rtl"
Then, before adding any content, put this line:
<div style="direction:ltr">
i.e.
<BODY style="DIRECTION: rtl"> <DIV style="DIRECTION: ltr">
No Scroll bar
For No Scroll bar in Page, use ‘scroll is equals to no’ in body tag.
<body scroll=no>
Related Posts
- Javascript Essentials Part 6
- Javascript Essentials Part 5
- Javascript Essentials Part 4
- Javascript Essentials Part 3
- Javascript Essentials Part 1
- Use Any Font in Webpages As Text
- Advanced JS Calendar
- Create Simple Javascript Based Calendar
- Change Image Opacity Easily Using CSS or JS
- Create jQuery Smooth News Rotator
advertisements
Author
Hiroshi (published 103 Posts on Web Style Press, Best Practices from all the Web, Build Better Websites)
