Scrollbar colour changes

  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

i have this script running on HTML files:
Code: [ Select ]
<style>
<!--
BODY{
scrollbar-arrow-color:336633;
scrollbar-base-color:#336633;
scrollbar-dark-shadow-color:336633;
scrollbar-track-color:#ffffff;
scrollbar-face-color:#FFffff;
scrollbar-shadow-color:#ffffff;
scrollbar-highlight-color:#ffffff;
scrollbar-3d-light-color:#ffffff;
}
-->
</style>
  1. <style>
  2. <!--
  3. BODY{
  4. scrollbar-arrow-color:336633;
  5. scrollbar-base-color:#336633;
  6. scrollbar-dark-shadow-color:336633;
  7. scrollbar-track-color:#ffffff;
  8. scrollbar-face-color:#FFffff;
  9. scrollbar-shadow-color:#ffffff;
  10. scrollbar-highlight-color:#ffffff;
  11. scrollbar-3d-light-color:#ffffff;
  12. }
  13. -->
  14. </style>

this works fine. i have a php form and when i try to put the same script in there it doesnt work. is there a work around to get the same effect as my html pages?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

ihave this in the head tag:

Code: [ Select ]
<LINK rel="stylesheet" type="text/css" href="mainscrollstyle.css">


in the 'mainscrollstyle.css' i have all the css coding for the scrollbar. it works on the other pages but not in the php file

any ideas?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Is the Doc Type that PHP outputs different than the one in the HTML files you tested this on ?
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

i have tried to chage the scroll bar properties in the php file but nothing happens. the normal htm files are fine. all my files are xhtml files (htm files with the checkbox for xml complience ticked inside dreamweaver) it works fine. there is a line of code that enables the scrollbard to work in all the html files. here it is:

Code: [ Select ]
<?xml version="1.0" encoding="iso-8859-1"?>


this doesnt mean a thing in the php file but is terribly important in the htm files.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

//Moved

Make sure the doctype that PHP outputs is identical to the one you are using in the HTM files.

Also read up on This Topic

If the HTM files require that tag for the page to be parsed the way you want then why would the output from PHP be any different ?

//Edit, Yes the page gets prepared at the server but the browser across the line still has to parse it the same regardless.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

buzzby365 wrote:
i have tried to chage the scroll bar properties in the php file but nothing happens. the normal htm files are fine. all my files are xhtml files (htm files with the checkbox for xml complience ticked inside dreamweaver) it works fine. there is a line of code that enables the scrollbard to work in all the html files. here it is:

Code: [ Select ]
<?xml version="1.0" encoding="iso-8859-1"?>


this doesnt mean a thing in the php file but is terribly important in the htm files.


The xml prelude does not mean a thing, not in real terms. It's also not got anything to do with being xhtml as far as I know. However it throws IE into quirks mode, in a recent thread (like yesterday) jrzycrim showed that the scrollbar preoperties ONLY work in IE 6 in quirks mode. Therefore if you add the xml thang to the php file, that file should go into quirks and you will probably get the same result for php and htm files.

If not, a link would be super-handy.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

ok this page(like all the others) works fine but this page is where the problem is
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

when i add that xml line in it gives me this error message

Code: [ Select ]
Parse error: parse error, unexpected T_STRING in /path/to/site/getstartedform.php on line 1
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

does anyone actually know how to change the scrollbar properties in a php file?
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

buzzby365 wrote:
does anyone actually know how to change the scrollbar properties in a php file?


Yes, because a php file is the same as an html file as far as CSS is concerned. There is NO DIFFERENCE. It is not the php extension making any difference, the file type is the same when it gets to the browser.

The reason you have an error reported is that the <? is erroneously interpreted as php code. Try echoing it:

PHP Code: [ Select ]
 
<?php
 
echo('<?xml version="1.0" encoding="iso-8859-1"?> ');
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. echo('<?xml version="1.0" encoding="iso-8859-1"?> ');
  5.  
  6. ?>
  7.  
  8.  


Or alter your doctype accordingly as indicated in the thread joebert offered you.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

this is the code that will eradicate any quarms or queries or questions about getting scrollbar properties changed on a php page.

Code: [ Select ]
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>


with this on line 1 any css attachements or css code you put in to your html file will work.

view my form at http://www.buildingdoctors.co.uk/getstartedform.php
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

buzzby365 wrote:
this is the code that will eradicate any quarms or queries or questions about getting scrollbar properties changed on a php page.

Code: [ Select ]
<?php echo "<?xml version="1.0" encoding="iso-8859-1"?".">"; ?>

.

Told ya it would ;)

Gald you got it working. Watch quirks mode though - it can mess things up lots if you are not careful.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

with all due respect rtm223 this is the code you gave me
PHP Code: [ Select ]
<?php
 
echo('<?xml version="1.0" encoding="iso-8859-1"?> ');
 
?>
  1. <?php
  2.  
  3. echo('<?xml version="1.0" encoding="iso-8859-1"?> ');
  4.  
  5. ?>
and it gave me this error message
PHP Code: [ Select ]
Parse error: parse error, unexpected T_STRING in /path/to/site/getstartedform.php on line 1
my code is slightly different.
PHP Code: [ Select ]
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
but you definately helped me get it right.

thanks alot. i am happy my form works
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

weird, I didn't try that before I posted, but I just tried it now with error reporting on full:
PHP Code: [ Select ]
error_reporting(2047);
 
echo('<?xml version="1.0" encoding="iso-8859-1"?> ');
  1. error_reporting(2047);
  2.  
  3. echo('<?xml version="1.0" encoding="iso-8859-1"?> ');

No errors :? No idea why though, guess it doesn't matter
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

Notice how when you use the xml snippet the scrollbar works under the doctype. But the text resize css is enabled

how can you avoid that?

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 74 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.