Foros del Web » Creando para Internet » HTML »

Cambiar por día un texto

Estas en el tema de Cambiar por día un texto en el foro de HTML en Foros del Web. Hola a todos: Cómo puedo hacer para que día a día cambie un determinado texto, ojalá sin PHP, que imagino es muy bueno, pero desconozco. ...
  #1 (permalink)  
Antiguo 13/08/2002, 20:54
 
Fecha de Ingreso: junio-2002
Mensajes: 49
Antigüedad: 21 años, 10 meses
Puntos: 0
Cambiar por día un texto

Hola a todos:
Cómo puedo hacer para que día a día cambie un determinado texto, ojalá sin PHP, que imagino es muy bueno, pero desconozco. Ojalá un CGI a prueba de tontos, ejem...
Gracias

Rodrigo
  #2 (permalink)  
Antiguo 14/08/2002, 00:52
Avatar de laweb  
Fecha de Ingreso: junio-2002
Ubicación: BS AS
Mensajes: 183
Antigüedad: 21 años, 10 meses
Puntos: 0
Re: Cambiar por día un texto

Holas

En el Foro de JavasCript encontraras respuesta a ello.
Quedate tranquilo que es muy, pero muy simple.

Aqui te pongo un Codigo que genera Frases al Azar cada vez que se abre tu URL.
No es dia a dia, sino al Azar.

----------------------------------------
<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])
------------------------

Tal vez puedas salir del Paso hasta que encuetres algo mejor.
Lo tenía a mano, solo eso...

Suerte

LAWEB
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:18.