Created
October 24, 2013 02:56
-
-
Save cieux1/7130562 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function diffDay(y,m,d) { | |
| var diff = Math.floor((new Date(y,m-1,d) - new Date()) / 86400000) + 1; | |
| document.getElementById("count_down_image").innerHTML = '<img src="' + diff + '_days_left.png" />'; | |
| } | |
| diffDay(2013,12,31); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment