Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/09/2012, 05:46
djkiku
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Que falla? Quiero tener un div al centro de la pantalla..

No hay manera....... de hacer que esto funcione, no entiendo por que

Tengo el Javascript (un codigo algo largo, pero ya me vale, mientras funcione):

Código HTML:
<div class="divspoiler">
</div><div><div class="spoiler" style="display: none;">
Aquí el contenido que queremos ocultar
</div></div>


<a href="javascript:void(0);" onclick="if (this.parentNode.nextSibling.childNodes[0].style.display != '') { this.parentNode.nextSibling.childNodes[0].style.display = ''; } else { this.parentNode.nextSibling.childNodes[0].style.display = 'none';}" >Comprar ▼▲</a> 
También tengo el CSS, lo aplique a un nuevo DIV, y no funciona el script deja de funcionar.. luego hago un div nuevo, que envuelva el contenido que aparesca y desaparesca, y igual no funciona... aqui dejo el CSS (quizá es el CSS que no deja funcionarlo o nose :( )

Código HTML:
 .spoiler {
width:400px;
height:500px;
position:fixed;
top:50%;
left:50%;
margin-left: -200px;
margin-top: -250px;
background:url() center no-repeat transparent;

background-color: #999999;
	}


Si alguien me puede salvar!!! le agradeceria mucho!!!!