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…
Comments
No comments yet