Libro de Visitas Gratis
Inicio | Directorio de Páginas | Diseño Gráfico | Gadgets | Posicionamiento | Webmasters| Buscador de Artículos | Glosarios

Cambiar frases

Añade Tu Web Al Directorio de NocionDigital.com
La frase cambia al ingresar a una página web.

Para ello usaremos una llamada desde el fichero donde queremos ver la frase a un fichero .js donde estarán todas las frases.

Fichero HTML:

<html>
<body>
<script language="JavaScript1.1" src="frases.js">
</script>
</body>
</html>


Fichero 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]) 
 
 
Hits
DOCUMENTOS RELACIONDOS
1247
Codificar y decodificar en JavaScript.
341
Registro y reconocimiento de usuarios.
289
Calendario del mes con personalización de colores..
422
Saber el Sistema Operativo del visitante.
1903
Validar número de NIF.
249
Clase para acceder a PostgreSQL.
388
Aparición de la imágen.
237
Obligar a visitar un banner.
299
Abriendo una ventana al pasar por encima de un enlace y cerrarla al salir de este.
232
Estudio comparativo de funciones PHP.
2449
Eliminar cache del navegador para evitar problemas de actualizaciones en AJAX.
303
Usar PHP como usuario ROOT.
172
Cálculo de franjas de tiempo.
185
Sistema de opiniones con comentarios incluidos sin bases de datos.
1044
Generar clave aleatoria.
228
Detección del navegador.
923
Limitar el número de carácteres de un textarea.
202
Agrupar campos de formulario con FIELDLIST.
165
Power Equivalents.
223
Visitantes activos.


www.nociondigital.com - Todo para un mundo digital. Páginas Webs, Buscadores y Webmasters....