Articulos PHP
Agosto 29, 2008, 03:40:53 *
Bienvenido(a), Visitante. Por favor, ingresa o regístrate.

Ingresar con nombre de usuario, contraseña y duración de la sesión
Noticias: Canciones Traducidas - Daforos.com - Fondos Gratis - Portatiles - Hosting - - Recursos Gratuitos Webmaster - elhacker dragonjar - sexo gratis - letras de canciones - Trucos Gratis - Juegos Gratis - Sexe gratuit - Juegos De Coche - porno - Start - Page0 - Page1 - Page2 - Page3 - Page4 - Page5 - Page6 - Page7 - Page8 - Page9 - Page10Page11 - Page12 - Page13 - Page14 - Page15 - Page16 - Page17 - Page18 - Page19 - Page20Page21 - Page22 - Page23 - Page24 - Page25 - Page26 - Page27 - Page28 - Page29 -

Páginas: 1   Ir Abajo
  Imprimir  
Autor Tema: Cambiar frases  (Leído 688 veces)
administrador
Administrator
Hero Member
*****
Desconectado Desconectado

Mensajes: 15975


Ver Perfil
« : Septiembre 16, 2004, 05:25:35 »

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. -By Douglas Everett'

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

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

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

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

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. -Ida R. Wylie'

var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])
 
En línea
Páginas: 1   Ir Arriba
  Imprimir  
 
Ir a:  

Mas buscadas: apuntes audio belleza bolsa cancer carpet carrera casas computadora credito cross curso informatica divx dolar drivers e mule economia explorer grafica hardware higiene industria industrial informatica internet libros linux mantenimiento manuales media medicina nutricion online paginas web politica posicionamiento programacion red red alert salud seguro seo software tecnologia trucos windows universidad venta video web windows winrar

UseBB Port by Gaia Modified & Upgraded by Croco Articulos PHP | Impulsado por SMF 1.1.5.
© 2005, Simple Machines LLC. Todos los Derechos Reservados.

Página creada en 0.09 segundos con 19 consultas.