|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Scrollbar Color Change
I have added in a piece of coding into my style sheet which should make the scrollbar change color (im sure youve all come across it ... a big amount of sites do this) ... but my problem is the code isnt changing the scollbar for the window ... however it is changing the scrollbar for my text area on my form ... below is the coding ...
Code:
body {
scrollbar-face-color:#BCBCBC;
scrollbar-highlight-color:#F3F3F3;
scrollbar-3dlight-color:#DFDFDF;
scrollbar-darkshadow-color:#ffffff;
scrollbar-shadow-color:#F3F3F3;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#CDCDCD; }
The address to the site which has the form in is ... http://www.andertoncorporatewear.co.uk/contactform.php |
|
#2
|
||||
|
||||
|
RE: Scrollbar Color Change
I noticed you were missing the ";" in your css, not sure if that will fix it.
#BCBCBC; scrollbar-highlight-color: #F3F3F3; scrollbar-shadow-color: #F3F3F3; scrollbar-track-color: #CDCDCD } I also noticed most your css isn't followed by the ";" |
|
#3
|
|||
|
|||
|
RE: Scrollbar Color Change
I have tried putting ';' at the end of everything but still i am not having any success ...
Does anybody has any solutions? |
|
#4
|
|||
|
|||
|
RE: Scrollbar Color Change
I have tried putting ';' into the css coding but still the scrollbar is not changing colors for me ...
Does anybody have any other ideas? |
|
#5
|
|||
|
|||
|
RE: Scrollbar Color Change
Code:
body {
scrollbar-face-color: #336600;
scrollbar-arrow-color: #ffffff;
scrollbar-track-color: #000000;
scrollbar-3dlight-color: #b8d7e6;
scrollbar-shadow-color: #003300;
scrollbar-highlight-color: #000000;
scrollbar-darkshadow-color: #003300;
}
This is verbatim to what mine uses and it works fine. Couple of things to think about: 1) the scrollbar hack only works with IE (I think) 2) Are you importing the stylesheet: Code:
<STYLE TYPE="text/css"> <!-- @import url (yourfile.css); --> </STYLE> -or- calling it relative with Code:
<link rel="stylesheet" href="stylesheet.css" type="text/css" /> I think it makes a difference as to what attributes are carried in. |
|
#6
|
||||
|
||||
|
RE: Scrollbar Color Change
You can start troubleshooting by adding the <html> tags and you also have two <body> tags
|
|
#7
|
|||
|
|||
|
RE: Scrollbar Color Change
I have this same problem. Colored scrollbars in IE work fine in HTML pages but once I converted to PHP, everything in the CSS file works except the scrollbars. Is there any solution?
|
|
#8
|
|||
|
|||
|
RE: Scrollbar Color Change
The only solution I see to it is to go the long way round. This may possibly but i dont know till i test it myself.
You could have your web page as a .html ... create your header and footer pages but also make them with a .html extension. From here using javascript tell it to call the page and place it in. This will of course rule out using any php coding which wouldnt be good for a big site which needs information to be pulled from a database but for smaller non database needed sites I guess it would work fine. You could try calling a php page from the javascript but it may or may not work. Ill have a try and see wot happens. |
|
#9
|
|||
|
|||
|
RE: Scrollbar Color Change
For it to work in PHP, you have to remove this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Scrollbar Color Change |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|