This is The World According to Buchs - Keepin’ it moving since 2003!

Twitter: bbuchs
  • Could not connect to Twitter
More @ twitter

Style Switcher

I’ve just finished up adding a few new features to the site. First is a style switcher, something I’ve seen on other sites. There’s a great article over at A List Apart detailing how to get it done - the implementation is incredibly simple. The hard part is in the details - coming up with different style sheets.

There are many methods that can be used to get it done, but this one uses a cookie to store a user’s choice of style. For visitors that have cookies disabled, the default style is applied. For now, I have two finished styles available - blue and grey. You can choose between them by clicking on the icons in the upper-right corner of the page. These styles are identical, with the exception of the color pallette. But, since the site is entirely css-friendly XHTML, it would be possible to generate completely different layouts by use of different style sheets. I have a few ideas in mind, so it’s just a matter of sitting down and getting it done. I’ve also thrown together a quick test theme - black.

The other new feature is the addition of a random photo from the gallery. There’s a nice little script out there that integrates nicely into Gallery. It uses an iFrame, which I’m not 100% comfortable with, but it works. Unfortunately, I’m still trying to work my way through stripping out all of the table-based layouts within Gallery, so the display is currently a little buggy. For one thing, I need to integrate the style-switching component into the Gallery header. I’m working on it…

This entry was posted on April 11, 2004 at 10:48 am, filed under Sports & Games and tagged . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Both comments and trackbacks are currently closed.

Comments

No comments yet

Respond