Created
March 29, 2009 18:19
-
-
Save fitoria/87481 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
var d = new Date(); | |
dom = d.getDate(); | |
month = d.getMonth(); | |
year = d.getYear(); | |
if (year < 2000) year = year - 100; | |
else year = year - 2000; | |
if (year == 9 && month == 2) | |
days = 56 - dom; | |
else if (year == 9 && month == 3) | |
days = 25 - dom; | |
else | |
days = 0; | |
if (days < 0) days = 0; | |
if (days < 10) days = '0' + days.toString(); | |
document.write('<a href="http://www.linuxtour.org/flisol"><img id="flisol2009ni" src="http://www.linuxtour.org/ContadorFlisol/Flisol-' + days + '.png "width="180" height="150" border="0" alt="Flisol Nicaragua 2009" style="padding-top:2px;background-color:#fff"></a>'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment