Pues eso, que tu mezcla me ha servido de mucho (o todo) y por si a alguien le viene bien dejaré por aquí como quedó el código a falta de meter las "citas" diarias.
Este es:
Código:
var quotes=new Array()
quotes[0]='1'
quotes[1]='2'
quotes[2]='3'
quotes[3]='4'
quotes[4]='5'
quotes[5]='6'
quotes[6]='7'
quotes[7]='8'
quotes[8]='9'
quotes[9]='10'
quotes[10]='11'
quotes[11]='12'
quotes[12]='13'
quotes[13]='14'
quotes[14]='15'
quotes[15]='16'
quotes[16]='17'
quotes[17]='18'
quotes[18]='19'
quotes[19]='20'
quotes[20]='21'
quotes[21]='22'
quotes[22]='Cuanto me has ayudado tunait!!!'
quotes[23]='24'
quotes[24]='25'
quotes[25]='26'
quotes[26]='27'
quotes[27]='28'
quotes[28]='29'
quotes[29]='30'
quotes[30]='31'
var formato1='<p><font face="Verdana"><small><center>'
var formato2='</small></center></font></p>'
fecha= new Date()
dia= fecha.getDate()
var contenidos = formato1 + quotes[dia] + formato2
var marqueewidth=141
var marqueeheight=112
var speed=2
var marqueecontents='<font face="Verdana"><small><center></p> la frase del dia </p></center></font>'
if (document.all)
document.write('<marquee id="marq" direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+contenidos+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(contenidos)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}
function scrollit(){
return cita()
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2
Este codigo lo pasé de un txt a un js. Lo llamé miarchivo.js. La idea es crear archivos (enero.js, febrero.js....) y de esa forma ya tengo las citas preparadas para cambiarlas cada mes.
Aun no me queda claro que sentido tiene esto:
var marqueecontents='<font face="Verdana"><small><center></p> la frase del dia </p></center></font>' ya me lo aclararás tunait
Después toca la llamada desde html (la pagina propiamente dicha)
Código:
<html>
<head>
<title>Prueba</title>
</head>
<body>
<table width="298" bordercolor="#006666" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="294" height="28"> </td>
</tr>
<tr>
<td height="202" align="center" valign="middle"> <script language="JavaScript" src="miarchivo.js"></script> </td>
</tr>
</table>
</body>
</html>
... y funcionó, de tal manera que no me ha quedado ms remedio que ponerlo por aquí como agradecimiento a tunait. Es obvio que sin su ayuda esto.... ni de coña
Salud!!!