Web Hosting Talk







View Full Version : php css color inverter...


ub3r
03-02-2005, 03:35 AM
I want to see a php script that will do the following:

1) take an uploaded, or url-linked .css file

2) on the fly, grab every color, whether it be a the name of the color, a 3 characters hex value, or 6 character hex value, in every #id or .class

3) take every color code, and go over a pre-defined chart of colors, and their inverts

4) take the invert from that pre-defined table, and replace each and every instance of that pre-cached color, and replace it with it's opposite.


Does anybody know of a script that will do this, or is anybody interested in writing something like this?