AJAX & Prototype Page 2 - Create a User-Defined CSS Website with PHP |
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: http://www.dhtmlgoodies.com/index.html?whichScript=form_widget_amount_slider 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.
blog comments powered by Disqus |