Craig Rowe

Techlead / Developer

12th April 2009

The Old Switcharoo

Having had only non-designer girls appreciate my design for cargowire I managed to cajole co-Headscapist Ed Merritt into creating an alternative.

Ed provided me with a flat image source to work from (so I can be blamed for the ragged CSS implementation which will no doubt be fixed up over time) and I decided, instead of throwing away my design, to implement a style chooser (based on the classic 'alternate stylesheet' ALA article).

This is all relatively simple stuff. The main issue I had was that I was running sIFR which would already have run before a user switches styles. This essentially throws away my ability to switch styles without a page refresh (whereby my JS can check for the style in use before running sIFR).

Additionally Eds design contained some slightly different content to my own, and this meant some markup changes, which I was kind of against. However I would rather add markup and modify my css for the original design to hide it, than add in content using jQuery for an alternate design. If anything semantically speaking the changes added to the content anyway but it did highlight how coupled designs and content can be regardless of an abstracted presentation layer.

A Javascript switcher is available at the base of the page if you wish to check out the results.

I'm off to investigate a nice way to turn sIFR off dynamically...


Other Recent Posts

It's alive! (again) (16th April 2025)

I once wrote an article entitled "Why you should make your own site". How clever I was to talk about content ownership and using side projects to learn...Fast forward a decade or more and I'd given myself a long term code and design maintenance project to progressively narrate over the years via various blogs and social media posts... [1], [2], [3], [4], [5] (to name but a few).…

re:develop 2016 (14th October 2016)

Having not made the trip down to Bournemouth for re:develop 1 or 2 it was great to be in attendance for it's third incarnation.…

DevSouthCoast GameJam 2013 (15th September 2013)

Making games over a weekend... competitively... and we chose a dead technology... why the hell not!…

NodeCopter Southampton 2013 (11th August 2013)

Hack Days are awesome. How could they not be? you get to make stuff with like minded people with no bosses, no client deadlines, no point but the love of it. …

Joining Dootrix (24th November 2012)

It's been a while since I posted. I'd like to say that's because a lot's been going on. In reality I got lazy and now I just happen to have something to write about that can make it sound like a lot has been going on.