Alright, I'm stumped.
I've been trying to create this script:
<script>
$(document).ready(function(){
var d = new Date();
n = d.getMonth();
if (n == 11) {
src="extrafiles/effect/snow.js";
}
});
</script>
to load "snow.js" when the month is December.
But it's not working. Any suggestions?
UPDATE:
Maybe taking a different approach would be better?
if ( d.getMonth().match(11) ) { //do call snow.js; }
UPDATE 2:
This code can help determine the season, and can be adjusted down to the specific month:
<script>
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var total = month;
if (total == 12 || total == 1 || total == 2)
{
//beginning of script
START JS FILE VIA ???
//end of script
}
</script>