viernes, 26 de marzo de 2010

Redimensionar un popup Thickbox

Con esta función puedes cambiar el tamaño de tu Popup hecho con thickbox:

function resizeTBPopup(width, height){
            if($('TB_ajaxContent')){
                TB_WIDTH = (width*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
                TB_HEIGHT = (height*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL

                $('TB_ajaxContent').style.height = TB_HEIGHT - 45 + 'px';
                tb_position();
            }
        }

No hay comentarios:

Publicar un comentario