Posts tagged thickbox 3.1
Resize and Centered Thickbox 3.1
May 17th
Con este código re-dimensionamos la ventana abierta de Thickbox
<script> function dm_simpleResize(TB_newWidth , TB_newHeight ) { jQuery('#TB_window').width(TB_newWidth).height(TB_newHeight).css({marginLeft: '-' + parseInt((TB_newWidth / 2),10) + 'px', width: TB_newWidth + 'px'}); if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_newHeight / 2),10) + 'px'}); } } </script> </script>
Re-dimensionamos la ventana abierta de Thickbox con animación
<script> function dm_animateResize(TB_newWidth , TB_newHeight, TB_speedAnim ) { jQuery('#TB_window').animate({ width: TB_newWidth , height: TB_newHeight , marginLeft: '-' + parseInt((TB_newWidth / 2),10) + 'px', marginTop: '-' + parseInt((TB_newHeight / 2),10) + 'px' },TB_speedAnim ); } </script>
Con este cambiamos el titulo de la ventana abierta
<script> function dm_renameWindow(TB_newTitle) { jQuery('#TB_ajaxWindowTitle').html(TB_newTitle).fadeIn('slow'); } </script>
Para manejar la el contenido o el centro de la ventana abierta hay que modificar css con siguiente id “#TB_ajaxContent”.
![[Dm211] [Dm211]](http://blog.dm211.com/wp-content/uploads/blackBox_7cm_glow.png)






