Jump to content


Photo

PHP and scrollbar color


  • Please log in to reply
3 replies to this topic

#1 Tomcat13

Tomcat13
  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 02 April 2006 - 03:37 AM

I've tried the following script to add some color to my scrollbar:

<style type="text/css">

<!--
BODY
{
scrollbar-arrow-color: #FFFFFF;
scrollbar-base-color: #008055;
scrollbar-face-color: #008080;
scrollbar-highlight-color: #83D8B0;
scrollbar-shadow-color: #FFFFFF;
scrollbar-3d-light-color: #FFFFFF;
scrollbar-dark-shadow-color: #FFFFFF;
}
-->

</style>

It works with HTML but not in PHP. Not for me.

Any suggestions?


Thank you in advance

#2 shortj75

shortj75
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationPort Huron,mi

Posted 02 April 2006 - 03:46 AM

try to use echo
echo "style type="text/css"> 

<!-- 
BODY 
{ 
scrollbar-arrow-color: #FFFFFF; 
scrollbar-base-color: #008055; 
scrollbar-face-color: #008080; 
scrollbar-highlight-color: #83D8B0; 
scrollbar-shadow-color: #FFFFFF; 
scrollbar-3d-light-color: #FFFFFF; 
scrollbar-dark-shadow-color: #FFFFFF; 
} 
--> 

</style>
if that doesnt work remove the hide tags <!-- -->
style type="text/css"> 


BODY 
{ 
scrollbar-arrow-color: #FFFFFF; 
scrollbar-base-color: #008055; 
scrollbar-face-color: #008080; 
scrollbar-highlight-color: #83D8B0; 
scrollbar-shadow-color: #FFFFFF; 
scrollbar-3d-light-color: #FFFFFF; 
scrollbar-dark-shadow-color: #FFFFFF; 
} 
 

</style>

The Short One

hopfully this helps if it doesn't sorry
i won't write the code for you!!! you don't learn that way

#3 Tomcat13

Tomcat13
  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 02 April 2006 - 10:59 PM

[!--quoteo(post=360803:date=Apr 1 2006, 10:46 PM:name=shortj75)--][div class=\'quotetop\']QUOTE(shortj75 @ Apr 1 2006, 10:46 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
try to use echo
echo "style type="text/css"> 

<!-- 
BODY 
{ 
scrollbar-arrow-color: #FFFFFF; 
scrollbar-base-color: #008055; 
scrollbar-face-color: #008080; 
scrollbar-highlight-color: #83D8B0; 
scrollbar-shadow-color: #FFFFFF; 
scrollbar-3d-light-color: #FFFFFF; 
scrollbar-dark-shadow-color: #FFFFFF; 
} 
--> 

</style>
if that doesnt work remove the hide tags <!-- -->
style type="text/css"> 
BODY 
{ 
scrollbar-arrow-color: #FFFFFF; 
scrollbar-base-color: #008055; 
scrollbar-face-color: #008080; 
scrollbar-highlight-color: #83D8B0; 
scrollbar-shadow-color: #FFFFFF; 
scrollbar-3d-light-color: #FFFFFF; 
scrollbar-dark-shadow-color: #FFFFFF; 
} 
 

</style>
[/quote]
They don't work partner..
Any more ideas? Anybody...

Thanks


#4 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 03 April 2006 - 01:06 AM

try...

echo '<style type="text/css">

<!--
BODY
{
scrollbar-arrow-color: #FFFFFF;
scrollbar-base-color: #008055;
scrollbar-face-color: #008080;
scrollbar-highlight-color: #83D8B0;
scrollbar-shadow-color: #FFFFFF;
scrollbar-3d-light-color: #FFFFFF;
scrollbar-dark-shadow-color: #FFFFFF;
}
-->

</style>';
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users