Risen Against Gravity

GenSephyr

I've moved my blog and portfolio to http://fusedthought.com/en/blog. However, this site will still be kept as an archive...

Individual entires can still be accessed using their trackback links.

Sunday, May 27, 2007

Blogskin / style switcher Version 2

In the last post (http://gyeojz.blogspot.com/2007/05/blogskin-style-switcher.html), I've announced the availability of the blogksin switcher.

After some work, I've updated it to remember the user's preferences via the use of cookies. It was some work, but finally it is ready.

For those who want to have a style switcher but are unable to use brothercake's IOTBS in Blogger or some other sites due to the same-origin policy, my style switcher may be the answer. However, it may not be suited for all, but at least it works.



Some good points over the usual "alternate stylesheet method";
1. It loads the styles on demand.
2. Its cross-browser compatible. (at least its tested to work in Firefox, IE6, IE 7 and Opera).
3. Its customizable to load other style required elements like javascript on demand too.
4. The file size is relatively small.

Known Issues
1. In Opera, default is alright. but some layout problems when a alternative style is used. Seems that it doesn't really support link disabled.



The switcher works by getting the ?css= Parameter in the URL.
index.html?css=0 resets to the default style. While other numbers corresponds to the other style types.

I'll be packaging the scripts into a zip file and releasing it under a license once I solve the Opera bug/problem.

So watch this space =)

UPDATE: Opera Problem fixed.

No comments:

Content and Layout by GenSephyr. Copyright © 2007 GenSephyr All Rights Reserved

Site designed with Open Source Technologies.