Musicos Amigos®

27 Julio 2002
383
0
47
foro.lamisionband.com
Soy musico y me gustaria conocer a otros ....
<html>

<head>

<style>

.animado {position:absolute;visibility:visible;top:-50px;font-size:10pt;font-family:Arial;font-weight:bold;color:black;}

</style>

<script language=JavaScript>

var x,y

var tempo=10

var espera=0

var texto="LamisionBand 2002"

texto=texto.split("")

var xpos=new Array()

for (i=0;i<=texto.length-1;i++) {

xpos=-50

}

var ypos=new Array()

for (i=0;i<=texto.length-1;i++) {

ypos=-50

}

function seguir(e){

x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX

y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY

espera=1

}

function animar_cursor() {

if (espera==1 && document.all) {

for (i=texto.length-1; i>=1; i--) {

xpos=xpos[i-1]+tempo

ypos=ypos[i-1]

}

xpos[0]=x+tempo

ypos[0]=y

for (i=0; i<texto.length-1; i++) {

var camada = eval("span"+(i)+".style")

camada.posLeft=xpos

camada.posTop=ypos

}

}

else if (espera==1 && document.layers) {

for (i=texto.length-1; i>=1; i--) {

xpos=xpos[i-1]+tempo

ypos=ypos[i-1]

}

xpos[0]=x+tempo

ypos[0]=y

for (i=0; i<texto.length-1; i++) {

var camada = eval("document.span"+i)

camada.left=xpos

camada.top=ypos

}

}

var timer=setTimeout("animar_cursor()",30)

}

</script>

<script Language=JavaScript>

for (i=0;i<=texto.length-1;i++) {

document.write("<span id='span"+i+"' class='animado'>")

document.write(texto)

document.write("</span>")

}

if (document.layers){

document.captureEvents(Event.MOUSEMOVE);

}

document.onmousemove = seguir;

animar_cursor()

</script>

</head>

<body>

</body>

</html>