Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/03/2008, 06:45
happyjime
 
Fecha de Ingreso: septiembre-2003
Mensajes: 10
Antigüedad: 20 años, 7 meses
Puntos: 0
ocultar y mostrar varias capas desde flash

Hola a todos! y muchas gracias de antemano. Estoy en super aprietos. Hace dias que intento resolverlo sin resultados. Tengo una pagina html con 3 capas. Desde un boton Flash necesito mostrar una y ocultar las otras dos. Desde el mismo menu flash, el proximo boton tendría que ocultar la anterior y mostrar la correspondiente ect ect. NO ME SALE! he mirado mil foros y nada. Porfa, una ayuda urgentisima. Mil gracias.

este el codigo HTML:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">






<script type="text/javascript">
function mostrarCapa(identificador) {
var capas = new Array('nosotros','marketing','clientes');
for(var k in capas) document.getElementById(capas[k]).style.display = capas[k]==identificador?'block':'none';
}
</script>

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript">

</script>

<style type="text/css">


.clientes {
font-size: 10px;
margin-left: 30px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin-top: 20px;
width: 300px;
}




#nosotros {
position:absolute;
width:391px;
z-index:1;
height: 223px;
visibility: hidden;
}

#marketing {
position:absolute;
width:391px;
z-index:2;
height: 223px;
visibility: hidden;
}


#clientes {
position:absolute;
width:391px;
z-index:11;
height:223px;
visibility: hidden;
overflow:auto;

}



</style>



</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (plantilla.psd) -->

<p>&nbsp;</p>
<table id="Tabla_01" width="800" height="600" border="0" align="center" cellpadding="0" cellspacing="0">





<div id="nosotros">
balablablablaalbbaabaar
</div>



<div id="marketing" >
blablassdfhjdgkhdfhdfglkfhflkhgfl

</div>


<div id="clientes">
<sdjkdsjksdlflksdfjslksdjflksdjl
</div>




</td>
</tr>
<tr>



</tr>
<tr>
<td colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="26" hspace="0">
<param name="movie" value="flash/botonesMovieprueba2.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="flash/botonesMovieprueba2.swf" width="800" height="26" hspace="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object></td>
</tr>

</table>
<h6>
<!-- End ImageReady Slices -->
</h6>
</body>
</html>


Y este es el codigo en el primer boton del menu flash:

getURL("javascript:mostrarCapa('nosotros');");


Please?

grazie mile!