Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Is there any way to change the scrollbar with PHP?
Old 08-01-2008, 03:02 AM Is there any way to change the scrollbar with PHP?
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
you know, the scrollbar in the right side of the screen
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-01-2008, 04:11 AM Re: Is there any way to change the scrollbar with PHP?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope!

the scroll bar is clientside as part of the browser, PHP runs serverside.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-01-2008, 10:29 PM Re: Is there any way to change the scrollbar with PHP?
dlaroche22's Avatar
Skilled Talker

Posts: 84
Name: Dustin Laroche
Trades: 0
If you are wanting to do it with strictly PHP then it can be done, but with alot of unnecessary coding. You would have to use a postback or simulated one, then you would have to manipulate the css stylesheet with PHP to change the look. A more straight forward and seemless aproach would be to use some AJAX and javascript to achieve what you are wanting.
__________________
Under Construction, But A Work In Progress
Webhosting isn't cheap, sponsors are important

Please login or register to view this content. Registration is FREE
dlaroche22 is offline
Reply With Quote
View Public Profile
 
Old 08-01-2008, 10:51 PM Re: Is there any way to change the scrollbar with PHP?
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Dustin, dude, you confused me. To change the scrollbar shown by default in a browser, you have only 2 options: CSS or a browser plugin. CSS is much easier, of course.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 08-01-2008, 11:00 PM Re: Is there any way to change the scrollbar with PHP?
dlaroche22's Avatar
Skilled Talker

Posts: 84
Name: Dustin Laroche
Trades: 0
Sorry to confuse you I don't think I was clear enough. Lets say you have a button or buttons to change the color and a hidden input box with value 1 in a form. Now when one is clicked you can submit the page to its self. At the top of the page is where the code will go. First you will check to see if the hidden input box value equals 1. This just test to see if this is a postback of a sort. If the value equals 1 then you will need to use php to open the stylesheet and edit it to change the color of the scrollbar depending on what color was selected. You then close the file in php and then do a redirect to the pages self. This will now show the updated page with the updated stylesheet, therefor, showing the new scrollbar color. Now I didn't say it was elegant, but it can be done.
__________________
Under Construction, But A Work In Progress
Webhosting isn't cheap, sponsors are important

Please login or register to view this content. Registration is FREE
dlaroche22 is offline
Reply With Quote
View Public Profile
 
Old 08-01-2008, 11:03 PM Re: Is there any way to change the scrollbar with PHP?
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
You could just as easily change it without reloading the page using JavaScript. Actually, it would be much easier.
__________________
Want new web resources every day? - Follow me on
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 08-01-2008, 11:04 PM Re: Is there any way to change the scrollbar with PHP?
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Oh, you were cracking a joke. In essence saying that it's pure CSS, but you can choose to update the CSS via Javascript or PHP. See, I'm just too serious to get humor.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 08-01-2008, 11:05 PM Re: Is there any way to change the scrollbar with PHP?
dlaroche22's Avatar
Skilled Talker

Posts: 84
Name: Dustin Laroche
Trades: 0
I take it your not so confused now
__________________
Under Construction, But A Work In Progress
Webhosting isn't cheap, sponsors are important

Please login or register to view this content. Registration is FREE
dlaroche22 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is there any way to change the scrollbar with PHP?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27285 seconds with 12 queries