From: James Britt Date: 2005-10-05T13:39:19+09:00 Subject: Re: CSS switcher in Ruby? Tom Cloyd wrote: > I have no idea if this is a goofy idea or not (and I'm only just > starting with Ruby and unable to attempt this project myself), but > might a CSS switcher for web pages be possible in Ruby? Seems quite > possible to me, but... What might this do? CSS switchers I'm familiar with use JavaScript to rewrite the DOM and change the selected CSS in the browser: http://www.alistapart.com/articles/alternate/ Having some server code emit different CSS, or change the CSS link specified in some Ruby-generated HTML page, seem trivial. One might, I suppose, combine these things and use remote scripting to fetch a custom CSS file or modify inline CSS in the browser. James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys