473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

overflow:scroll change the default color

2
hy , i'm new in the webdesign domain.
and i need a code to change the defaul color (blue) of a scroll bar into dark colors:
this is the code:

<div align="left" style="width:697px;height:577px;overflow-y:scroll">

can you help me ?
Scuze me about my english..
Apr 18 '08 #1
4 2255
justml
2
i forgot to say something.
in IE7 with this code:

Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript">
  2. <!--
  3.  document.body.style.scrollbarBaseColor='#280814';
  4.  document.body.style.scrollbarArrowColor='#020202';
  5.  document.body.style.scrollbarDarkShadowColor='#4F4F4F';
  6.  document.body.style.scrollbarFaceColor='#ADADAD';
  7.  document.body.style.scrollbarHighlightColor='#F2F2F2';
  8.  document.body.style.scrollbarShadowColor='#878787';
  9.  document.body.style.scrollbarTrackColor='#EDEEEF';
  10. //-->
  11. </script>
into body selection, is seems to working perfect, but in mozilla firefox, the script doesn't work :(
Why ?
Apr 18 '08 #2
pronerd
392 Expert 256MB
Did you check Mozilla's DOM reference to see if that is supported?
Apr 19 '08 #3
gits
5,390 Expert Mod 4TB
i'm quite sure that this is an IE specific feature and it is not valid CSS ... the only way to have it would be to create a custom javascript scollbar ... which could be implemented for controls in your page ... for a first quick look have a look here so that you have something to start with ...

kind regards
Apr 19 '08 #4
drhowarddrfine
7,435 Expert 4TB
Yes. The scrollbar stuff is IE-only and not standard.
Apr 21 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ingrid | last post by:
Dear group, I wanted to make a scrollable list-menu that is fixed in place and fitted to the height of the browser window, so I tried: ol#nav{ position: fixed; top: 2em; bottom: 0; height:...
9
by: kjs | last post by:
Is there any was to control the color of the scrollbars when using the 'overflow: scroll' attribute? TIA, Karl
9
by: petermichaux | last post by:
Hi, Is it possible to use JavaScript to control how far down an overflowing div is scrolled? The situation might be like the following. <div style="overflow:scroll; height:3em;"> <p>One</p>...
1
by: Miked | last post by:
Hi: I have overflow: scroll style property set in a bunch of containers. Want to be able to suppress the horizontal scroll bar, as I know that the contents of my containers won't go over the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.