function cambia() {cab1.style.color="green" } function cambia2() {cab1.style.color="black" } function escribe() {document.write("Navegador: " +navigator.appName + "
"+ "Version : " +navigator.appVersion) } function mostrar_objetos() {nomcapa["capa1"].hide(); nomcapa["capa2"].show(); nomcapa["capa9"].show(); nomcapa["capa7"].show(); actx=650; acty=10; mover_ovni(); actx2=30; acty2=10; movimiento_balon_1(); } function ocultar_objetos() {nomcapa["capa1"].show(); nomcapa["capa2"].hide(); nomcapa["capa9"].hide(); nomcapa["capa7"].hide(); } function mover_ovni() { fin=true; if (actx > 300){ actx = actx-5; fin=false;} if (acty < 270){ acty = acty+5; fin=false;} if (fin)return; nomcapa["capa9"].move(actx,acty); setTimeout("mover_ovni()",3); } function mostrar_balon_1() {nomcapa["capa7"].show(); actx=10; acty=10; movimiento_balon_1(); } function mostrar_balon_2() {nomcapa["capa7"].show(); actx=40; acty=321; movimiento_balon_2(); } // Movimiento del balón function movimiento_balon_1() { fin=true; if (actx2 < 80 && acty2 < 270){ actx2 = actx2+1; fin=false;} if ((actx2 < 80 && acty2 >= 270) || actx2 >= 80){ actx2 = actx2+10; fin=false;} if (actx2 >= 725){ actx2 = 0; fin=false;} if (acty2 < 270){ acty2 = acty2+10; fin=false;} if (fin)return; nomcapa["capa7"].move(actx2,acty2); setTimeout("movimiento_balon_1()",100); } function movimiento_balon_2() { actx2 = actx2+1; if (acty2 > 200){ acty2 = acty2-3; fin = false;} if (acty2 <= 200){ acty2 = acty2+3; fin = false;} if (actx2 == 150){ fin=true;} if (fin)return; nomcapa["capa7"].move(actx2,acty2); setTimeout("movimiento_balon_2()",100); } function ocultar_balon() { nomcapa["capa7"].hide(); }