Alberty Innovations

Archive for July, 2006

Multi-Language Support with CSS Style Switcher

Friday, July 14th, 2006

Yesterday I ran into an issue with a client that wants multi-language support on their website. I had 2 things going for me when I started looking into this. 1) The client could create and update all of the languages and 2) A thought came out of nowhere to use a style sheet switcher to display and hide divs with the alternate content in it. I would not recommend hiding and displaying divs if your site is huge, but my client only has about 10 categories on their site and only a few paragraphs on each page. I began searching on the web and I found a style switcher on A List Apart. Sure, I could have coded it myself, but why waste my time doing that when Zeldman provides it for you? I already setup a sample page and it loaded quote fast. I will follow up with the final site once the project is complete. I also noticed that Dan Cederholm is using a switcher on his site for a different purpose, but it is evidence that he find them useful. My test case - mult-language support - is the first I have seen of its kind.

Update: The style sheet switcher worked great! You can view it at www.stewartmexico.com.

Steaming Podcast and iTunes XML feed

Monday, July 10th, 2006

Today I lauched a streaming podcast for a client. I used the ODEO player for online play, but our team at work plans on building a flash player with more advanced controls such as volume control. I also created an XML feed that you can drop into any aggregator (such as iTunes, WinAmp, or even Windows Media Player) that will automatically download new podcasts when they are available.