PHP as a server side scripting language can be used to customize CSS. This can make your website more readable and useful to your visitors. In this article, you'll learn what you can do to let them adjust your site so it looks good to them. This is the first part of a two-part series.
In order to maximize customization and options available to the user, you need to present all of the colors used in the HTML and let the user decide the best combination. To make this work and to provide the easiest method. we'll use “sliders” to control the colors.
Granted, this is not a common interface; only a few exist on the Internet. I found the “Text box slider” from http://www.dhtmlgoodies.com/ , which is a website library of DHTML/Java scripts. The original (unedited) slider looks like this:
You can download the unedited code (original) of this slider here:
In this application, we will only be using the RGB (Red, Green and Blue) color scheme to control both background and font colors. We're doing this because they are the most common in web and color applications.
The slider is powered by JavaScript. When you download the file, the main HTML file for the slider is “form_widget_amount_slider.html.” You will be editing this file and converting it to a PHP file to integrate it with AJAX applications.