Re: Can Smarty parse a CSS file? |
Subject: Re: Can Smarty parse a CSS file? by Will on 2008/2/3 20:45:16 Considered alternating styles? I released a few themes for whOOPS that do this. http://www.xoops.org/modules/news/article.php?storyid=3627 http://www.xoops.org/modules/news/article.php?storyid=3624 The way I incorporated them then was cheesy as hell, but it does exactly what you wanna do... Even stores the users choice to a cookie. My site is closed down while I make the switch to impress, so here are the direct downloads for these two themes. http://www.dnagamer.com/xoops/halo.zip http://www.dnagamer.com/xoops/MrT_Colors.zip Both use the alternating styles functionality. Be sure to pay close attention to the <a> tags as that is where the magic happens. As far as browser sniffing is concerned it is heavily frowned upon. However you can use conditional statements to knock out pretty much every engine. |