forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: boltonline on July 09, 2006, 07:19:05 pm

Title: scroll bar color
Post by: boltonline on July 09, 2006, 07:19:05 pm
I need help changing the color of the scroll bar! i used the css code and its not working!
Title: Re: scroll bar color
Post by: Pascal YAP on July 09, 2006, 07:21:05 pm
Morning,

ScrollBar color work only with IExplorer, not with Friefox in exemple  ;)

PYAP
Title: Re: scroll bar color
Post by: boltonline on July 09, 2006, 07:25:32 pm
i am using IE.  The same css code is working with all my other pages through out the site just not the gallery

the code is


body { color : red; scrollbar-arrow-color: white; scrollbar-base-color: black; scrollbar-dark-shadow-color: black; scrollbar-track-color: FF0000; scrollbar-face-color: black; scrollbar-shadow-color: white; scrollbar-highlight-color: white; scrollbar-3d-light-color: black}
Title: Re: scroll bar color
Post by: Nibbler on July 09, 2006, 07:50:28 pm
Post a link.
Title: Re: scroll bar color
Post by: boltonline on July 09, 2006, 08:18:54 pm
www.trostmotorsports.com/pics/
Title: Re: scroll bar color
Post by: Pascal YAP on July 09, 2006, 11:13:26 pm
Again Mornin',

Try to insert this code inside your Theme before </head> :
Code: [Select]
<style>
       BODY {
              scrollbar-face-color:FFE860;
              scrollbar-track-color:006FA4;
              scrollbar-3dlight-color:C0C0C0;
              scrollbar-arrow-color:000000;
              scrollbar-highlight-color:FFFFFF;
              scrollbar-shadow-color:808080;
              scrollbar-darkshadow-color:004080;
            }
    </style>

PYAP
Title: Re: scroll bar color
Post by: Sami on July 10, 2006, 12:21:23 am
and please upgrade (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14) your gallery to most recent version ( 1.4.8 but very soon it will be 1.4.9 ;) )
1.4.2 has some security issues
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 02:25:48 am
Again Mornin',

Try to insert this code inside your Theme before </head> :
Code: [Select]
<style>
       BODY {
              scrollbar-face-color:FFE860;
              scrollbar-track-color:006FA4;
              scrollbar-3dlight-color:C0C0C0;
              scrollbar-arrow-color:000000;
              scrollbar-highlight-color:FFFFFF;
              scrollbar-shadow-color:808080;
              scrollbar-darkshadow-color:004080;
            }
    </style>

PYAP

I dont have a head section in the theme.php file.
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 03:47:54 am
and please upgrade (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14) your gallery to most recent version ( 1.4.8 but very soon it will be 1.4.9 ;) )
1.4.2 has some security issues
updated!
Title: Re: scroll bar color
Post by: Joachim Müller on July 10, 2006, 07:48:01 am
I dont have a head section in the theme.php file.
That's why it's suppossed to go into template.html instead of theme.php
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 04:45:29 pm
this is what i have it lookin like:
<style>
       BODY {
              scrollbar-face-color:FFE860;
              scrollbar-track-color:006FA4;
              scrollbar-3dlight-color:C0C0C0;
              scrollbar-arrow-color:000000;
              scrollbar-highlight-color:FFFFFF;
              scrollbar-shadow-color:808080;
              scrollbar-darkshadow-color:004080;
            }
    </style>

</head>
still not working.
Title: Re: scroll bar color
Post by: Nibbler on July 10, 2006, 04:47:24 pm
Add hashes in before the colour numbers, eg #FFE860
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 04:53:48 pm
now this is how it looks....<style>
       BODY {
              scrollbar-face-color:#FFE860;
              scrollbar-track-color:#006FA4;
              scrollbar-3dlight-color:#C0C0C0;
              scrollbar-arrow-color:#000000;
              scrollbar-highlight-color:#FFFFFF;
              scrollbar-shadow-color:#808080;
              scrollbar-darkshadow-color:#004080;
            }
    </style>

</head>still didnt work
Title: Re: scroll bar color
Post by: Stramm on July 10, 2006, 04:58:37 pm
are you aware that scrollbar colors only work within IE?
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 05:03:40 pm
yes. thats what i am using and i see the other webpages i used the code on.
are you aware that scrollbar colors only work within IE?
Title: Re: scroll bar color
Post by: Stramm on July 10, 2006, 05:19:43 pm
you're right, it doesn't show on coppermine but on other html pages. However I don't know why.
Title: Re: scroll bar color
Post by: Sami on July 10, 2006, 05:22:05 pm
I checked it if you enable debug the scrolbar of debog frame will change but the main scrolbar not !!!
Title: Re: scroll bar color
Post by: Sami on July 10, 2006, 05:30:42 pm
I found the killer ;)
you should remove document type
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
that's the one who laugh at us ;)
but in this way you should remove vanity too
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 05:34:45 pm
thats what it was! thanks a lot!! now i just have to change the colors back to match the site.
I found the killer ;)
you should remove document type
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
that's the one who laugh at us ;)
but in this way you should remove vanity too
Title: Re: scroll bar color
Post by: Sami on July 10, 2006, 05:40:11 pm
make sure to remove this line from your theme.php
define('THEME_IS_XHTML10_TRANSITIONAL',1);
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 05:42:33 pm
ok thanks again!
Title: Re: scroll bar color
Post by: Joachim Müller on July 10, 2006, 07:52:20 pm
Don't skip the doctype completely. It's mandatory to have a doctype declaration. Go for HTML4 transitional.
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
Remember that scroll-bar colors just are not standards compliant, that's why the browser chokes on the doctype declaration that actually tells the browser "this document is going to respect standards".
Title: Re: scroll bar color
Post by: boltonline on July 10, 2006, 07:58:24 pm
that makes it not work

UPDATE:
it only wont work when i keep the line  "http://www.w3.org/TR/html4/loose.dtd"> in it
Don't skip the doctype completely. It's mandatory to have a doctype declaration. Go for HTML4 transitional.
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
Remember that scroll-bar colors just are not standards compliant, that's why the browser chokes on the doctype declaration that actually tells the browser "this document is going to respect standards".
Title: Re: scroll bar color
Post by: Joachim Müller on July 10, 2006, 08:26:37 pm
sure it only works then - otherwise the tag would be incomplete. Issue solved then?
Title: Re: scroll bar color
Post by: boltonline on July 11, 2006, 02:22:27 am
Yes solved!