Author: Dylan Barber Created: 2/2/2009 12:02 PM
Coding in my underwear! - Not really a pleasant thought :(

Timed Skins (for DNN 5)

Change skins based on a schedule. Ever needed to have your site change skins for the seasons or the holidays. Now you can set up a schedule and get on with your work.

 

http://www.snowcovered.com/Snowcovered2/Default.aspx?tabid=242&PackageID=16898

Timed Skins

Change skins based on a schedule. Ever needed to have your site change skins for the seasons or the holidays. Now you can set up a schedule and get on with your work.

 

http://www.snowcovered.com/Snowcovered2/Default.aspx?tabid=242&PackageID=16887

With jQuery and CSS becoming so much more the norm for web development it becomes even more necessary to be able to manipulate classes on elements not in the skin, specifically the body tag.

 

There are really two ways to do this and each has it benefits and problems, jQuery and inline code.

Jquery: This method is so simple simply add $('#Body').addClass('MyNewClass')in the skin and it will add whatever class to the body tag, in DNN the id of the body tag is ‘Body’. The only problem with this method is if you are depending on that class being there even if jQuery fails to run you are out of luck.

Inline Code: the method uses a simple bit of inline vb.net code to add the class to the body tag