Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/08/2011, 13:39
hiram_ramirez8
 
Fecha de Ingreso: enero-2011
Mensajes: 104
Antigüedad: 13 años, 3 meses
Puntos: 0
Respuesta: como puedo hacer que el navegador cargue un DIV central?

ok vere haber si funciona, pero ya lo intente algo asi y no me funciono:

<script>
$("#location_left").show();
</script>
<script>
if (document.getElementById ('location_left'). style.display == "none"){

$(window).resize(function(){
$('.global').css({
position:'absolute',
left: ($(window).width() - $('.global').outerWidth())/2,
top: ($(window).height() - $('.global').outerHeight())/2
});

});

// Ejecutamos la función
$(window).resize();

}

</script>