Theme Chooser (and Konqueror's handling of alternate stylesheets)

Posted on 4 October 2003 in Internet, Planet Bods, Web Development (No comments)

So here's the conundrum.

  1. I wanted to do something new with the Bods Central site design.
  2. I actually really like the blue/purple/grey thing that is the Bods Central site design, and was loathe to get rid of it.

Yes. Sort of conflicting aims really. And then I had an idea. A few sites have 'style switchers' and offer users a choice of site designs. So I decided that's what I'd do. And here it is - I put it live this evening.

Assuming you have a recent browser (Internet Explorer 5 or above, Mozilla, Netscape 6 and above, Opera 7 and above and more) you should see two little boxes in the right navigation which enable you to switch between the new green/grey design and the default blue/purple design. A little cookie will save your choice for a year, unless you change it before hand.

Rather pointless but never mind. It also works without JavaScript, although the changing effect is quicker if you have JavaScript enabled.

Konqueror Spoils the Party.

The one annoying browser is Konqueror which handles 'alternate stylesheets' differently to other browsers. If you're not technically minded you may want to skip this... If not, here goes.

Alternate stylesheets are set in the browser using a special link tag, similar to how stylesheets can normally called. The idea is that they're available for a browser to use (and some browsers offer a menu so you can use them), but not used by default.

Unfortunatly Konqueror 3.1 (which I'm using) uses the first alternative stylesheet it finds and won't budge from using it - hence using the Theme Chooser, you always end up with the default blue/purple colour scheme. As far as I can tell, there is no way round it.

Rather annoying really.

Anyway, enough of the jargon, why only two designs to choose from?

Yes, why only two designs? Well give me a chance! I'm not much of a designer, and the black/green gradient effect on the new colour is hardly ground breaking (although I do like it's simplicity in a way).

When I get chance I might put my design 'skills' into practise and try to do something a bit more interesting instead! Of course if you want to design some for me, feel free!

< previous | top ^ | next >

Share this page on

Have your say

Sorry but comments on this post are closed, but you can still email me.

Cookies Policy | Contact Us