Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/09/2008, 14:38
GastoNike
 
Fecha de Ingreso: marzo-2008
Mensajes: 166
Antigüedad: 17 años
Puntos: 5
Respuesta: Ventana padre Inabilitarla cuando abro la hija

Claro, tienes razón David el Grande... prueba esto masi:

En tu html:
<div id="inhablitar">&nbsp;</div>

En tus estilos:
#inhabilitar {
position: absolute;
top: 0;
left: 0;
z-index: 1000;
background-color: #000;
opacity: .7;
filter: alpha(opacity=70%);
display: none;
}

Luego solo tienes que llamar a esta funcion para activar/desactivar la ventana padre;

function inhabilitar()
{
var div = getElementById('inhabilitar');
if(div.style.display == 'block') {
div.style.display = 'none';
}
else {
div.style.display = 'block';
}
}

Saludos :D