Ver Mensaje Individual
  #15 (permalink)  
Antiguo 04/02/2010, 08:04
cugar19
 
Fecha de Ingreso: febrero-2010
Mensajes: 8
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Faviconos en web

Si no os importa os pongo un poco del código html d la pagina principal aunque es un poco extenso y le echais un vistazo y me decis, por que un amigo mio lo a visto dice que el lo ve todo normal, pero tampoco entiende mucho,


<head>
<link rel="shortcut icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Club Nataci&oacute;n Alcantarilla</title>
<title>Reloj con Javascript</title>
<script language="JavaScript">
function mueveReloj(){
momentoActual = new Date()
hora = momentoActual.getHours()
minuto = momentoActual.getMinutes()
segundo = momentoActual.getSeconds()

str_segundo = new String (segundo)
if (str_segundo.length == 1)
segundo = "0" + segundo

str_minuto = new String (minuto)
if (str_minuto.length == 1)
minuto = "0" + minuto

str_hora = new String (hora)
if (str_hora.length == 1)
hora = "0" + hora

horaImprimible = hora + " : " + minuto + " : " + segundo

document.form_reloj.reloj.value = horaImprimible

setTimeout("mueveReloj()",1000)
}
</script>
<style type="text/css">
body {
background-image: url(fondoweb.JPG);
}
.Estilo1 {
color: #000080;
font-weight: bold;
}
a:link {
color: #000080;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000080;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.Estilo3 {color: #000080; font-weight: bold; font-style: italic; }
</style></head>

<body>

<body onload="mueveReloj()">
<SCRIPT type="text/javascript">

msgFont='Arial,helvetiva';
msgFontSize="12";
msgFontColor="black"

function evento(dia,mes,titulo){
this.dia = dia
this.mes = mes
this.titulo = titulo
}

var eventos = new Array()
eventos[0] = new evento (6,2,"3ª Liga Inf-Jun_Abs")
eventos[1] = new evento (13,2,"4ª Liga Benj-Alv")

function b_writeIt(obj, text){
document.getElementById(obj).innerHTML=text
}

function changeText(num){
b_writeIt('divMessage',eventos[num].titulo)
}

function borrarText(){
b_writeIt('divMessage',' ')
}
var day_of_week = new Array('Do','Lu','Ma','Mi','Ju','Vi','Sa');
var month_of_year = new Array('Enero','Febrero','Marzo','Abril','Mayo','Ju nio','Julio','Agosto','Septiembre','Octubre','Novi embre','Deciembre');


var Calendar = new Date();

var month = Calendar.getMonth();
var today = Calendar.getDate();
var weekday = Calendar.getDay();


if(Calendar.getFullYear){
year = Calendar.getFullYear();
}else{
year = Calendar.getYear()+1900;}

var DAYS_OF_WEEK = 7;
var DAYS_OF_MONTH = 31;
var cal;

Calendar.setDate(1);
Calendar.setMonth(month);


var TR_start = '<TR>';
var TR_end = '</TR>';
var highlight_start = '<TD WIDTH="20"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=#FFFFFF BORDERCOLOR=#CCCCCC style="font-size:' +msgFontSize+'px; font-family:'+msgFont+'; color:'+msgFontSize+'"><TR><TD WIDTH=18><B><CENTER>';
var highlight_end = '</CENTER></TD></TR></TABLE></B>';
var TD_start = '<TD WIDTH="20"><CENTER>';
var TD_end = '</CENTER></TD>';

cal = '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR="#000000" style="font-size:' +msgFontSize+'px; font-family:'+msgFont+'; color:'+msgFontSize+'"><TR><TD>';
cal += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 style="font-size:' +msgFontSize+'px; font-family:'+msgFont+'; color:"#AA0000">' + TR_start;
cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#7D0000"><CENTER><B>';
cal += month_of_year[month] + ' ' + year + '</B>' + TD_end + TR_end;
cal += TR_start;

for(index=0; index < DAYS_OF_WEEK; index++)
{
cal += TD_start + day_of_week[index] + TD_end;
}

cal += TD_end + TR_end;
cal += TR_start;

for(index=0; index < Calendar.getDay(); index++)
cal += TD_start + ' ' + TD_end;

for(index=0; index < DAYS_OF_MONTH; index++)
{
if( Calendar.getDate() > index )
{
week_day =Calendar.getDay();

if(week_day == 0)
cal += TR_start;

if(week_day != DAYS_OF_WEEK)
{

var day = Calendar.getDate();
var iEvent;
for(iEvent=0; iEvent < eventos.length; iEvent++)
{
if( ((month+1)==eventos[iEvent].mes) && (day==eventos[iEvent].dia) )
day = "<a href='javascript:void(0)' onMouseOver='changeText(" + iEvent + "); window.status=\"Perl Site\";return true;' onMouseOut='borrarText(); window.status=\"\";return true;'> " + day + '</a>';
}

if( today==Calendar.getDate() )
cal += highlight_start + day + highlight_end + TD_end;
else
cal += TD_start + day + TD_end;
}

if(week_day == DAYS_OF_WEEK)
cal += TR_end;
}

Calendar.setDate(Calendar.getDate()+1);

}

cal += '</TD></TR></TABLE></TABLE>';
</SCRIPT>
<div align="center">
<table width="850" height="135" border="1">
<tr>
<td width="850" height="140"><div align="left"><img src="Logo.gif" alt="Logo" width="645" height="140" /><img src="escudoclub.png" alt="Escudo" width="195" height="140" /></div></td>
</tr>
</table>
</div>
<div align="center">
<table width="850" height="291" border="1">
<tr>
<td width="150" height="40" rowspan="7" valign="top" bordercolor="#D4DF00"><table width="150" height="50" border="1" bordercolor="#D4DF00">
<tr>
<td width="140" height="40" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center" class="Estilo1"><a href="Inicio.html">Inicio</a> </div></td>
</tr>
</table>
<table width="150" height="50" border="1" bordercolor="#D4DF00">
<tr>
<td width="140" height="40" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><strong><a href="quienessomos.html">&iquest;Quienes somos?</a></strong></div></td>
</tr>
</table>
<table width="150" height="50" border="1" bordercolor="#D4DF00">
<tr>
<td width="140" height="40" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><a href="Historia.html"><strong>Historia</strong></a></div></td>
</tr>
</table>
<table width="150" height="50" border="1" bordercolor="#D4DF00">
<tr>
<td width="140" height="40" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center" class="Estilo1"><a href="Fotos.html">Fotos</a></div></td>
</tr>
</table>
<table width="150" height="50" border="1" bordercolor="#D4DF00">
<tr>
<td width="140" height="40" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center" class="Estilo1"><a href="Contenidos.html">Contenidos &Uacute;tiles</a> </div></td>
</tr>
</table> </td>
<td width="500" height="500" rowspan="7" valign="top" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><table width="500" height="71" border="1" align="center">
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF">
<form action="http://www.google.com/search" method="GET">
<input value="UTF-8" name="ie" type="hidden"/>
<input value="UTF-8" name="oe" type="hidden"/>
<table bgcolor="#FFFFFF">
<a href="http://www.google.com/">
<img border="0" alt="Google" src=" http://www.google.com/logos/Logo_40wht.gif"/> </a>
<input maxlength="255" value=""
name="q" size="15" type="text"/> <input value="Buscar" name="btnG" type="submit"/>
<font size="-1">
<input value="CN Alcantarilla"
name="domains" type="hidden"/><br/><input value=""
name="sitesearch" type="radio"/> Buscar en Google<input checked value= "Buscar en CN Alcantarilla" name="sitesearch" type="radio"/> Buscar en CN Alcantarilla<br/>
</font>
</table></form></td>
</tr>
</table>
</td>
<td width="120" height="25" align="center" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><span class="Estilo3"><a href="Calendario.html">Calendario FNRM </a></span></div></td>
</tr>
<tr>
<td width="120" height="25" align="center" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center" class="Estilo3"><a href="Series.html"><em><strong>Series</strong></em></a></div></td>
</tr>
<tr>
<td width="120" height="25" align="center" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><span class="Estilo3"><a href="Resultados.html">Resultados</a></span></div></td>
</tr>
<tr>
<td width="120" height="25" align="center" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><span class="Estilo3"><a href="mailto:[email protected]">Contacta</a></span></div></td>
</tr>
<tr>
<td width="120" height="25" align="center" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><span class="Estilo3"><a href="Directiva.html">Junta Directiva</a> </span></div></td>
</tr>
<tr>
<td width="120" height="25" align="center" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><div align="center"><span class="Estilo3"><a href="Convivencias.html">Convivencias</a></span></div></td>
</tr>
<tr>
<td width="180" align="center" valign="top" bordercolor="#D4DF00" background="Sin t&iacute;tulo-1.jpg"><p align="left"><strong>-Optimizada para Mozilla Firefox y Google Chrome </strong></p>
<p></p>
<p><center>
<form name="form_reloj">
<input type="text" name="reloj" size="10" style="background-color : White; color : Black; font-family : Verdana, Arial, Helvetica; font-size : 8pt; text-align : center;" onfocus="window.document.form_reloj.reloj.blur()">
</form>
</center> </p>
<p align="left"><SCRIPT type="text/javascript">
document.write(cal);
</SCRIPT>
<div id="divMessage" style="position:center; width:175px; height:80px; font-size: 12px; font-family:Arial; color:#000000;"><br>
</div>
</p></td>
</tr>
</table>
</div>
</body>