I'm assuming you found my thread on how to fix it, but if not, here's
the solution I found.  It actually turned out that sometimes the
jQuery.browser.version sometimes returns an object and sometimes
returns a number so this should work.  (I'm also using v3.1)

function tb_position() {
    jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH /
2),
10) + 'px', width: TB_WIDTH + 'px'});
    var version = jQuery.browser.version;
    if (version instanceof Object)
        version=version.number();
    if ( !(jQuery.browser.msie && version < 7)) { // take away IE6
        jQuery("#TB_window").css({marginTop: '-' +
parseInt((TB_HEIGHT / 2),10) + 'px'});
    }

}

The beauty of thickbox is that even on pages that are a little long
the user won't lose their position by clicking on one of its links, if
you can avoid it you probably shouldn't intentionally scroll them back
to the top for usability sake.
Hope this helps and good luck

On Jan 2, 5:20 pm, cfdvlpr <[EMAIL PROTECTED]> wrote:
> Yes, I was using the latest.  I just downloaded version 3.1 this
> morning fromhttp://jquery.com/demo/thickbox/

Reply via email to