El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 22/01/2003

text marquee crazy effects

codigo javascript que despliega una marquesina de texto, que se mueve en el mismo sentido en el que movemos el mouse.

Código Javascript



<!-- THREE STEPS TO INSTALL SMART MARQUEE:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script type="text/javascript">
<!-- Original: Sebastian Bender (sebastianbender@hotmail.com) -->
<!-- Web Site: http://behp2.tripod.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var ostat = false;
function scrollstop() {
news.scrollAmount = 0;
ostat = true;
}
function scrollplay() {
news.scrollAmount = 5;
ostat = false;
}
function scrolldir() {
mid = screen.width / 2;
mouse = event.x;
if(mouse > mid) {
if(ostat == false) {
speed = (mouse - mid) / 25;
news.scrollAmount = speed;
}
news.direction = "right";
}
else {
if(ostat == false) {
speed = (mid - mouse) / 25;
news.scrollAmount = speed;
}
news.direction = "left";
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<BODY onMouseMove="scrolldir()">
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<marquee name=news id=news behavior=scroll direction=left scrollamount=5 scrolldelay=1 hspace=0 vspace=0 onmouseover="scrollstop()" onmouseout="scrollplay()">
<b>The JavaScript Source . . . Add this JavaScript to your site!</b>
</marquee>
<br><br>
(Move your mouse from one side to the other to control scrolling direction and speed.)

text marquee crazy effects Categoría: Javascript, Navegacion

Compartir text marquee crazy effects en Facebook Twitter MySpace del.icio.us fresqui Meneame


Scripts Similares:

» javascript mouse estela effects
» Efecto Matrix javascript
» popup abrir imagen con javascript
» cartel link emergente
» efecto mover imagen con el teclado mediante javascript
» redireccion mediante 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