HOLA quiero poner un par de scripts en mi pagina, de hecho me funcionan
pero, creo que me ocupan un espacio excesivo y que se deben de poner en otro lado.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<HTML LANG="es">
<HEAD>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=ES">
<META name="Generator" content="WebScope 3">
</HEAD>
<BODY><span id="theText" style="width:100%">
<h3 align="center"><font color="#3a6ca3"><font size="+5">LEZKAIRU REMACHA</font>
</font><font color="#666666">
<script>
var from = 5;
var to = 11;
var delay = 55;
var glowColor = "red";
var glowColor2 = "orange";
var glowColor3 = "yellow";
var glowColor4 = "lime";
var glowColor5 = "blue";
var glowColor6 = "magenta";
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
}
function textPulseUp2()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
}
function textPulseDown2()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
}
function textPulseUp3()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor5 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
}
function textPulseDown3()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor6 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
</script></font></h3></span>
</BODY>
</HTML>
ESTE ES EL DE CABECERA LO HE PUESTO POR ENCIMA DE TODO EN LA PLANTILLA,
mi pregunta es: ¿ los puedo quitar de la plantilla?
y este otro es un RELOJ DE CUENTA ATRAS:
<script languaje="javascript">
//cambiar el texto
var before="SAN FERMIN"
var current="Hoy ES SAN FERMIN!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countdown(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
if (difference==0)
document.write(current)
else if (difference>0)
document.write("Faltan "+difference+" días para "+before)
}
//cambiar la fecha
countdown(2009,07,07)
</script>
pero, creo que me ocupan un espacio excesivo y que se deben de poner en otro lado.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<HTML LANG="es">
<HEAD>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=ES">
<META name="Generator" content="WebScope 3">
</HEAD>
<BODY><span id="theText" style="width:100%">
<h3 align="center"><font color="#3a6ca3"><font size="+5">LEZKAIRU REMACHA</font>
</font><font color="#666666">
<script>
var from = 5;
var to = 11;
var delay = 55;
var glowColor = "red";
var glowColor2 = "orange";
var glowColor3 = "yellow";
var glowColor4 = "lime";
var glowColor5 = "blue";
var glowColor6 = "magenta";
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
}
function textPulseUp2()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
}
function textPulseDown2()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
}
function textPulseUp3()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor5 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
}
function textPulseDown3()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor6 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
</script></font></h3></span>
</BODY>
</HTML>
ESTE ES EL DE CABECERA LO HE PUESTO POR ENCIMA DE TODO EN LA PLANTILLA,
mi pregunta es: ¿ los puedo quitar de la plantilla?
y este otro es un RELOJ DE CUENTA ATRAS:
//cambiar el texto
var before="SAN FERMIN"
var current="Hoy ES SAN FERMIN!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countdown(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
if (difference==0)
document.write(current)
else if (difference>0)
document.write("Faltan "+difference+" días para "+before)
}
//cambiar la fecha
countdown(2009,07,07)
</script>