10/29/2003 ↓

CSS Switcher with cookie handling

Author: Mark Ghosh Category: WordPress Hack

Thanks for visiting! We would like to serve you better. Please subscribe to our RSS feed for daily updates. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. You can also receive updates from this blog via email if you want that method of notification.

I found a really interesting article at A List Apart dot com about dynamic stylsheet changes using a simple javascript and storing the information as a cookie. I was really itching to try it out with all the talk in the WordPress Forums about retro stylesheets for WordPress. Check out the switcher at http://dinki.mine.nu/weblog/ On the top right hand side of the menu you will see the themes I have installed for my version of WordPress, albeit with a few modifications to suit my second menu column. Feel free to play around and see which one you like best. If you would like to implement this on your site ( no matter which CMS you use, this will work for you ) simply visit the List Apart link above, download the javascript and follow the instructions. If you are confused, feel free to email me and I will try to help.
PS: once you choose a templte/style, a cookie is set on your computer which remembers your choice for the next time :-) The themes break in Mozilla (for now) and do not degrade well, but thats not the point of this exercise

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Visitors who read this post, also read:

    Friends

    Translate

    Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

    Latest Videos

    2 Comments | Leave a comment | Comments RSS

    1. this is a test

      [Reply] Mark — 10/30/2004 @ 8:33 pm
    2. this is a test

      [Reply] Mark — 10/30/2004 @ 8:42 pm

    Leave a comment

    Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    (required)

    (required, will not be published)


    S2