<mce:script type="text/javascript"><!--
window.onresize = window.onscroll = window.onload =function()
{
var win_w = document.documentElement.clientWidth ;//窗口宽
var space_w = 0;//左空白宽
if (win_w > 1000)
{//窗口大于main 有取左边空白
space_w = (win_w-1000)/2;
}
if(navigator.userAgent.indexOf("MSIE 6.0")>0)
{
document.getElementsByTagName('body')[0].style.backgroundAttachment = 'fixed';/*必要,防抖动*/
$e('top').style.setExpression('top','eval( (document.compatMode&&document.compatMode=="CSS1Compat")?'
+ 'documentElement.scrollTop+documentElement.clientHeight-this.clientHeight-1'
+ ':'
+ 'document.body.scrollTop+document.body.clientHeight-this.clientHeight-1)' );
$e('top').style.setExpression('left','eval( (document.compatMode&&document.compatMode=="CSS1Compat")?'
+ 'documentElement.scrollLeft+documentElement.clientWidth-this.clientWidth-1'
+ ':'
+ 'document.body.scrollLeft+document.body.clientWidth-this.clientWidth-1) -' + space_w );
}else
{
$e("top").style.right = space_w + 5 + 'px'; //设置空白;
$e("top").style.bottom = '0px'; //设置下边对齐;
}
}
function $e(objId)
{
return document.getElementById(objId);
}
// --></mce:script>
配合
#top{
position:fixed !important;/*ie7 ff*/
position:absolute;
z-index:999;
bottom:0px;
}
---------------------