页面大小调整
/**
* 页面大小调整
*/
function reSizeNewsPage(){
var submenu = document.getElementById("sub-menu");
var submenuHeight = submenu ? submenu.offsetHeight : 0;
$('#newslist-frame', parent.document).height($(window.parent).height());
var winHeight = document.documentElement.clientHeight
|| document.body.clientHeight;
var header = document.getElementById("header");
var headerHeight = header ? header.offsetHeight : 0;
var footer = document.getElementById("footer");
footer.innerHTML = GeoESB.pageConfig.copyright;
//var footerHeight = footer ? footer.offsetHeight : 0;
var main = document.getElementById("news-main-section");
var mainMinHeight = parseInt(main.getAttribute("minHeight"));
var mainHeight = winHeight - headerHeight - submenuHeight;
if (mainHeight < mainMinHeight)
mainHeight = mainMinHeight;
main.style.height = mainHeight + "px";
}
})();
//页面初始化
PortalManage.NewsListHome.run();