ie6支持:position:fixed
var ie6=!-[1,]&&!window.XMLHttpRequest;
if (!ie6){
alert("我不是ie6")
}else{
alert("我是ie6,下面使用ie6的与其它浏览器fixed相似功能")
document.getElementBy Id("TB_window").style.setExpressio n("top","eval_r(document.documentElement.scrollTop+"+((h - TB_HEIGHT)/2)+")");
}
来源:http://ju.outofmemory.cn/entry/22844