I wanted to open up this latest experiment for comments since it was the comments to Roger Johansson’s Build your own PHP style sheet switcher article that inspired me to add cookie acceptance detection functionality to my own PHP Style Changer Experiment. It seems to work nicely but I figure it’s always good to get some real-world feedback. And since I don’t accept comments at MikeCherim.com I figured I’d do it here. The link above leads to the supporting article, but here’s the actual experiment page, and here’s the well-commented script provided as a text file. Feel free to use it and tell others if you like it — it is safe from XSS so use it with confidence. It’s been in use a long time but I never released it.
For this experiment I’d like to say thanks to “ClamCrusher” at the SitePoint Forums who helped me unloop a loop that was driving me crazy. I also owe a nod to PHP.net without whom I’d be dead in the water. I think Jona should also get a thank you for help with the original script over a year ago. He’s helped me so many times in the past I don’t really remember if he helped me with this or not, but I’d rather err on the side of caution and give thanks if thanks are indeed due. I’m just a PHP novice, but the language blows me away and I will continue to learn it. It’s amazing.
If you’ve never seen my experiments before, check it out as I have a number of them. Some are cool. Of the better ones I offer my CSS: Smart Corners, PHP: Font Sizer, CSS: Map Pop (combination CSS Image Map and CSS Popups), and many more; some refined, some quite experimental.