Navigation bar

Home
Back to the front page
Blog Map
All posts, by category

Use lateral arrows to navigate through posts

Posts tagged style selector

Cascading Style Sheet Switcher

PHP

This code snippet will allow your users to choose between different styles to apply to your website.
Yes, it’s a PHP skin selector for websites!

You can view a live example of it in this weblog itself: it’s the switch style icon on the top right corner (Click it right now!).
Due to an heavy layout restyling, this function is no longer available on my blog. Sorry for the inconvenience

Here is a little presentation of the features that this little code provides:

  • Have a default style (in absence of previous choices)
  • Unlimited choices (depending on your fantasy and ability)
  • Style choose take effect immediately, and site-wide
  • Switcher link brings you back to the page you were seeing, but restyled
  • The preference is saved for each user, for successive visits

And now, let’s explain the technique.
Read the rest of this article … »