El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 04/08/2005

Cap Scroll javascript

Esta rutina javascript lo que hace es pasar las letras que aparecen en la barra de estado de minusculas a mayusculas.

Código Javascript



<html>
<TITLE>Cap Scroll</TITLE>
<HEAD>
<script lanuage="JavaScript">
// This script was written by Nathan Wenneker
// naw@3eagles.com
// http://www.geocities.com/SiliconValley/Pines/7183
// http://www.geocities.com/SiliconValley/Lakes/3595
// This script is free to use as long as you keep
// these comments with it.
// This script will go through a message one character at a
// time and change the caps of that character. It
// looks neat but if in a non fixed type font, it will
// lose some of the effect. Set "speedtogo" higher to
// go slower and lower to go faster. Set a[1] and a[2]
// to the sets of alternating caps you want. I have
// chosen a[1] to be all small and a[2] to be all big
// but you can set then to anything. Just make sure
// you have them reversed in the a[2] or you will
// lose effect.

// Este script fue escrito por Nathan Weeneker
// naw@3eagles.com
// http://www.geocities.com/SiliconValley/Pines/7183
// http://www.geocities.com/SiliconValley/Lakes/3595
// Este script es de uso libre con la condicion de que
// se mantengan estos comentarios.
// Qué es lo que hace?
// -------------------
//
// Este Script lo que hace es pasar las letras que aparecen en la barra de estado
// de minusculas a mayusculas.

var count = -1;
var counter;
var nchar
var speedtogo = 200;
var a = new Array();

a[1] = "este es otro ejemplo javascript";
a[2] = "ESTE ES OTRO EJEMPLO JAVASCRIPT";

longi=a[1].length;
function capswitch() {
count++
if(count == 0){
document.wow.display.value = a[1]
}
if(count == 1){
document.wow.display.value = a[2].substring(0, 1) +
a[1].substring(longi, 1)
}
if(count > 1){
a[3] = a[1].substring(0, count - 1) + a[2].substring(count - 1,
count) + a[1].substring(longi, count)
document.wow.display.value = a[3]
}
if(count == a[1].length){
count = -1
}
counter = setTimeout("capswitch()",speedtogo);
}
</script>
</HEAD>
<body bgcolor="#ffffff" onload="capswitch()">
<center>
<form name="wow">
<input type="text" size="25" name="display" value="">
</form>
</center>
</body>
</html>

Cap Scroll javascript Categoría: Javascript, Varios

Compartir Cap Scroll javascript en Facebook Twitter MySpace del.icio.us fresqui Meneame


Scripts Similares:

» Calculadora javascript
» ventana mover con javascript
» download time javascript
» bloquear boton izquierdo del mouse con javascript
» text effects javascript maquina de escribir
» status bar scroller javascript
Ver el perfil de Gabriel Marcelo Rodriguez en LinkedIn

Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio Sitio creado y mantenido por Gabriel Marcelo Rodriguez
Hosting de alta calidad a bajo costo Neolo.com.ar