EffectedCard Moderador


Usuario PRO Mensajes: 3.012 Desde: 20/May/2003 | Calendario con Enlaces
Calendario con enlaces a articulos del dia | Modificacion de calendario | Por EffectedCard
Codigo PHP:
<!-- CALENDARIO -->
<BloqueCalendario>
<div class="titulomenu">
<h4>Calendario</h4>
</div>
<script type="text/javascript" language="JavaScript">
<!--
//sistema calendario para blogs miarroba con links por EffectedCard - <a href="visitar.php?http://webernado.com" target="_blank">http://webernado.com</a>
function calendar()
{
var monthNames = new Array("Enero", "Febrero", "Marzo", "Abril",
"Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
var today = new Date();
var thisDay = today.getDate();
var monthDays = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var nmonth = new Array(01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12);
year = today.getYear();
// ¿año bisiesto?
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
monthDays[1] = 29;
// achar o numero de dias deste mes
nDays = monthDays[today.getMonth()];
nummonth = nmonth[today.getMonth()];
if (nummonth < 10) nummonth = "0" + nummonth;
firstDay = today;
firstDay.setDate(1);
startDay = firstDay.getDay();
if(year < 2000) year = year + 1900;
document.writeln("<CENTER>");
document.write("<TABLE BORDER>");
document.write("<TR><TH COLSPAN=7>");
document.write(monthNames[ today.getMonth() ] + " " + year);
document.write("<TR><TH>");
document.write("D<TH>L<TH>Ma<TH>Mi<TH>J<TH>V<TH>S");
document.write("<TR>");
column = 0;
for (i=0, column=0; i<startDay; i++, column++)
document.write("<TD>");
for (i=1; i<=nDays; i++)
{
day = i;
if(day < 10) day = "0" + day;
document.write("<TD align=\"center\" valign=\"top\">");
if (i == thisDay)
document.write("<a href=\"<@UrlBlog@>/"+ year + "/" + nummonth + "/index.html#" + year + "-" + nummonth + "-" + day + "\"><FONT COLOR=\"#FF0000\">" + i + "</FONT></a>");
else if (i < thisDay)
document.write("<a href=\"<@UrlBlog@>/"+ year + "/" + nummonth + "/index.html#" + year + "-" + nummonth + "-" + day + "\">" + i + "</a>");
else document.write(i);
column++;
if (column == 7)
{
document.write("<TR>"); // inicio de nueva linea
column = 0;
}
}
document.write("</TABLE>");
document.writeln("</CENTER>");
}
calendar();
//-->
</script>
</Calendario>
</BloqueCalendario>
<!-- FIN CALENDARIO -->
Si algun articulo del dia no existe, acude a los articulos del mes. Este calendario ademas arregla el problema de que salga año incorrecto en firefox y/o IE |
23/Dic/2005 21:48 GMT+1 | Perfil · Privado · Desconectado · Web |
Mia008 Okupa del foro

 Mensajes: 753 Desde: 14/Sep/2003 | RE: Calendario con Enlaces
Perdona, pero en que lugar de la plantilla debe ponerse el código?
Gracias
|
01/Sep/2006 19:57 GMT+1 | Perfil · Privado · Desconectado · Web |
NoSetup.org @man / @woman


Usuario PRO Mensajes: 23.388 Desde: 01/Mar/2003 | RE: Calendario con Enlaces
Escrito originalmente por Mia008 Perdona, pero en que lugar de la plantilla debe ponerse el código?
Estas cosas se ponen donde el dueño del blog quiera... habitualmente en una columna... pero donde quieras.
|
01/Sep/2006 20:24 GMT+1 | Perfil · Privado · Desconectado · Web · Fotolog |
k_nelita Okupa del foro

 Mensajes: 792 Desde: 07/Ene/2006 | RE: Calendario con Enlaces
Sigue vigente este calendario? Se puede usar sin problemas? O hay otro modo?
|
27/Sep/2007 23:57 GMT+1 | Perfil · Privado · Desconectado · Web · Fotolog |
EffectedCard Moderador


Usuario PRO Mensajes: 3.012 Desde: 20/May/2003 | RE: Calendario con Enlaces
Usa la variable
<@CalendarioBlog@>
Con eso basta
|
28/Sep/2007 18:39 GMT+1 | Perfil · Privado · Desconectado · Web |
k_nelita Okupa del foro

 Mensajes: 792 Desde: 07/Ene/2006 | RE: Calendario con Enlaces
Solo eso? No tengo que hacerle un bloque? Yo quiero ponerle una imagen de fondo y que los enlaces salgan del color que a mi me guste, como configuro eso? Porque ya he visto que los enlaces salen de un color por defecto y es horrible, yo quiero cambiarlo, cual sería el código y donde debo ponerlo? Gracias
|
29/Sep/2007 22:28 GMT+1 | Perfil · Privado · Desconectado · Web · Fotolog |