Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/11/2002, 17:45
Avatar de sordo77
sordo77
 
Fecha de Ingreso: noviembre-2002
Ubicación: Rosario
Mensajes: 70
Antigüedad: 22 años, 3 meses
Puntos: 0
Pregunta Una frase por dia

Necesito un código parecido al escrito debajo; nada mas que en vez de por números aleatorios sea por fecha específica, o sea, que tal día tenga una frase determinada que aparezca en una ventana pop-up al entrar al sitio.
Serian 365 frases 1 por día durante 1 año.

ej:
el día 17/08/03, cuando yo entre al sitio me ponga en una ventana pop-up "Hoy se cumplen 153 años de la muerte del Gral. José de San Martín"

Gracias y saludos a todos.

---- script ----- La frase cambia al ingresar a una página web
<html>
<body>
<!-- Copiar dentro del tag BODY -->
<script language="JavaScript1.1" src="frases.js">
</script>
</body>
</html>

<--! Copiar el siguiente código en el Bloc de Notas y guardarlo con el nombre de "frases.js" -->

var quotes=new Array()

//cambiar las frases

quotes[0]='There are some people who live in a dream world, and there are some who face reality; and then there are those who turn one into the other. <i>-By Douglas Everett</i>'

quotes[1]='Whether you think you can or whether you think you can\'t, you\'re right! <i>-Henry Ford</i>'

quotes[2]='I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor. <i>-Henry David Thoreau</i>'

quotes[3]='Do not let what you cannot do interfere with what you can do. <i>-John Wooden</i>'

quotes[4]='Accept everything about yourself - I mean everything, You are you and that is the beginning and the end - no apologies, no regrets. <i>-Clark Moustakas</i>'

quotes[5]='We must accept life for what it actually is - a challenge to our quality without which we should never know of what stuff we are made, or grow to our full stature. <i>-Ida R. Wylie</i>'

var whichquote=Math.floor(Math.random()*(quotes.length ))
document.write(quotes[whichquote])
---------------------------------------------

Última edición por sordo77; 28/11/2002 a las 19:08