Javascript if function for executing script based on the month

Go down

Javascript if function for executing script based on the month Empty Javascript if function for executing script based on the month

Post by jamied_uk on 20th November 2014, 22:08

Code:
Code to put inside JavaScript tags to customise a script!



Code:
var d = new Date();
var month = new Array();
month[0] = "January";
month[1] = "February";
month[2] = "March";
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "August";
month[8] = "September";
month[9] = "October";
month[10] = "November";
month[11] = "December";
var n = month[d.getMonth()];
if ( n = 'December') {
SnowStart();
// document.getElementById("snow").innerHTML = n;

}

Merry Xmas From J~Net Have A Snow Flakes JavaScript that runs automatically when included on December and January months and can be customized!:

https://app.box.com/s/dbzrpudxvh1ayuix058l


https://app.box.com/s/dbzrpudxvh1ayuix058l
jamied_uk
jamied_uk
Admin

Posts : 2471
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum