dark-tiger Admin
Cantidad de envíos : 115 Fecha de inscripción : 29/06/2009
| Tema: Calendarios Dark's 09 Jue Jul 09, 2009 1:11 pm | |
| Para los webmasters un calendario especial de este foro, un regalo de los DARK'S Aqui teneis el code, ponetlo en formato HTML! I Esta es la foto del calendario para que la veais si os gusta: - Spoiler:
https://2img.net/r/ihimizer/img9/585/calendarioohf.png
I El code del Calendario! - Código:
-
<center><table border="1" cellpadding="0" cellspacing="0" width="172" height="200" bgcolor="#000000"> <tr><td><p align="center"><img src="http://img9.imageshack.us/img9/585/calendarioohf.png" width="170" height="130"><br> <script language="Javascript"> <!-- Begin var week = new Array("D", "L", "M", "Mi", "J", "V", "S"); var monthdays = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); var today = new Date(); var month = today.getMonth(); var day = today.getDay(); var dayN = today.getDate(); var days = monthdays[month]; if (month == 1) { var year = today.getYear(); if (year%4 == 0) days = 29; } document.write("<table border='0' width='170' bgcolor='#000000' cellspacing='0' cellpadding='0'>"); document.write("<tr>"); for (var i=0; i<7; i++) { document.write("<td width='29' height='17'><font color=#ffffff><b>"); document.write("<div align='center'>" + week[i] + "</div>"); document.write("</b></font></td>"); } document.write("</tr>"); var jumped = 0; var inserted = 1; var start = day - dayN%7 + 1; if (start < 0) start += 7; var weeks = parseInt((start + days)/7); if ((start + days)%7 != 0) weeks++; for (var i=weeks; i>0; i--) { document.write("<tr>"); for (var j=7; j>0; j--) { document.write("<td><font color=#ffffff><b>"); if (jumped<start || inserted>days) { document.write("<div align='center'></div>"); jumped++; } else { if (inserted == dayN) document.write("<div align='center' >[" + inserted + "]</div>"); else document.write("<div align='center'>" + inserted + "</div>"); inserted++; } document.write("</b></font></td>") } document.write("</tr><a href='http://webcp.es.tl'><font color=#000000>.</font></a>"); } document.write("</table>"); // End --> </script></td></tr> </table></center>
Espero que os guste! Salu2! | |
|