Link to home
Start Free TrialLog in
Avatar of linque
linque

asked on

<style> change scrollbar color in IE (inside of FRAMESET)

Maybe someone can help with this one.  I was at a DHTML site, and received script to change scroll bar colors.  It is supposed to go in the <Head> section as follows, where the colors are up to me.


<style type="text/css">
body{

scrollbar-3dlight-color: #000080;
scrollbar-arrow-color: #000000;
scrollbar_base-color: #000000;
scrollbar_darkshadow-color: Black;
scrollbar-face-color:#000000;
scrollbar-highlight-color#999999;
scrollbar-shadow-color: #999999
scrollbar-track-color: #00ff7f;

}
</style>

The information stated that if I were to use just one of these, that is, for example, just scrollbar-base-color: #000000; that the rest would adjust around that base color.  It works fine, actually.  But only in a straight html non framed site. Not so far in a framed site.   If any of you are familiar with photoshop's new automated webgallery slide show, I made one of those, which is in essence, a framed site.  I wanted to change the scroll bar color for the left and right frames, but so far, putting this code in the head of those separate pages did not do it, nor did putting it into the head of the main frameset page.  Either some of the code is conflicting, I am doing something wrong, or it won't work.  If you have any clues, could you please help?   Also, if using only one item, do I need to end the color with a ";" or should I leave that off?  (tried with and without, so that's not making it work or not work, but I needed to know that also)

Thanks
Avatar of avner
avner

Well, I used your exact code, and it worked for me.
you might have problems seeing it because some of the properties you defined are same as default so you can't see the difference, change all colors to something more unique to emphasize the difference.

ASKER CERTIFIED SOLUTION
Avatar of bruno
bruno
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of linque

ASKER

hmmm..ok.. i will try this out with other colors.  Avner, it worked for you in a FRAMED page?  you have not told me which page you placed it in.  thanks for help thus far and I will keep you posted, and thank you brunobear.  
Yes, I tried a framed page, I'm using IE 5.5 .
i have not seen this code with the underscores before...


scrollbar_base-color: #000000;
scrollbar_darkshadow-color: Black;


only with hyphens....you sure that is correct?
brunobear  is 100% right, it should be "-" and not "_" in all options.
Because the style must be applied to something (namely body) then the style must be either inserted or linked to each and every document sitting within the frame.

A frameset page has no body so no style can be applied to the body of that document.  Scripting may be written within the frameset that applies the style to the documents within the frame but this will only apply when the frameset is initially opened and not when any of its contents change.

Ditto on the underscore and semicolon.  Underscores should never be used in style names.  No predefined style attributes have underscores.  All attribute settings should be followed by a semicolon.  Including the last one.  This last semicolon won't effect things mostly but if you get into the habit of not having one then you may encounter a browser that has a problem with it (read Netscape here) and not be able to figure out what the issue is.
Avatar of linque

ASKER

I have awarded brunobear the points for his speed and accuracy in answering this problem.  I want, however to thank you also avner and dij8 for your concise and remarkably knowlegeable answers.   There is no way to spread it all around here, but please know I'm grateful.  You answered clearly all my questions, and on top of that, more, since i would never have known about the hyphen as opposed to an underscore, not being a programmer.  

p.s. the code did work for me too in the end, after playing with various colors, etc.  

                            linque
linque,

I'm glad we could all be of service to you here!


BRUNO
As a point of interest (for future reference) it is possible to share points.  Before accepting an answer post a 0 point question in the Community Support area stating you want to split points.  Include a link to the question involved and details on how you want to split the points.  EE moderators will help you out from there.
Avatar of linque

ASKER

wow..never knew that dij8.  ok.  as before.. u are most helpful.  i'll remember that, as this is not the first occasion i've been helped earnestly by more than one for a question.  this is a classy operation.
             linque
I THNK that they are going to automate the splitting of points a bit more in the rewrite....whenever that's done...