PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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 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 : 2950
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

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