[Codes / Scripts] Christmas Countdown 2020 - Coduri / Scripturi - GAMELIFE România Jump to content

Recommended Posts

Posted

christ.png

Script:

<script type="text/javascript">
		today = new Date();

		BigDay= new Date("December 25, 2020");

		msPerDay = 24 * 60 * 60 * 1000;

		timeLeft = (BigDay.getTime() - today.getTime());

		e_daysLeft = timeLeft / msPerDay;

		daysLeft = Math.floor(e_daysLeft);

		e_hrsLeft = (e_daysLeft - daysLeft)*24;

		hrsLeft = Math.floor(e_hrsLeft);

		minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);

		document.write("There are only <BR> <H4>" + daysLeft + " days " + hrsLeft + " hours and " + minsLeft + " minutes left </H4> Until Christmas<P>");
	</script>

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...

Important Information