With Halloween approaching, I am eager to transform my website's BODY css into a spooky Halloween theme. The challenge is that my .Net pages are Templates. Is there a way for me to ensure that the body class checks for an existing CSS theme override?
Can I switch themes by following this method:
CSS:
/* standard theme */
body {
background-color: white;
font-color: #000;
}
/* halloween theme css */
body.halloween {
background-color: black;
font-color: #666;
}
Then this code goes in the HEAD's editable region:
<%
'CSS Theme overwrite - uncomment if required
cssTheme = "halloween"
%>
My BODY tags
<body class="<%=cssTheme%">
content........
</body>
Although I have attempted the above steps, it seems to be ineffective.
Do I require a function like doOnLoad() attached to the <body>
that checks for the cssTheme and applies it if one exists?