📄 com.eeshou.www.treecontrol.js.treecontrolsbackground.js
字号:
/////////////////////////////////////////////////////////////////////
//// ////
//// BackGround ////
//// Namespace: TreeControls.js.BackGround.js ////
//// CreateName: Tree ////
//// Email: treeyh@126.com ////
//// Version: 1.0 bate3 ////
//// CreateDate: 2007-5-18 ////
//// ////
/////////////////////////////////////////////////////////////////////
///////pageloadshowMsg
window.onload = function ()
{
iTree_DialogBox_pageHeight=TreeDocumentHeight();
//iTree_DialogBox_pageHeight = document.documentElement.scrollHeight>iTree_DialogBox_pageHeight?document.documentElement.scrollHeight: iTree_DialogBox_pageHeight;
if(TreeDialogBox$('TreeOverlayBackgroundDiv')['style']['display']=="block")
{
var obackGround = TreeDialogBox$('TreeOverlayBackgroundDiv');
obackGround.style.top="0px";
TreeDialogBoxmiddle("TreeDialogBoxDiv");
obackGround.style.height = iTree_DialogBox_pageHeight;
obackGround.style.width = TreeDocumentWidth();
var oDialogBoxDiv = TreeDialogBox$("TreeDialogBoxDiv");
if(oDialogBoxDiv)
{
iTree_DialogBox_MoveMaxHeight = iTree_DialogBox_pageHeight - parseInt(oDialogBoxDiv.offsetHeight);
var sClientWidth = document.documentElement.clientWidth;
var sWidth = document.body.clientWidth;
if(sClientWidth < sWidth)
{
iTree_DialogBox_scrollwidth = parseInt(document.documentElement.scrollWidth) - parseInt(document.body.clientWidth);
iTree_DialogBox_MoveMaxWidth = parseInt(sWidth) - iTree_DialogBox_scrollwidth - parseInt(oDialogBoxDiv.offsetWidth);
}
else if(sClientWidth == sWidth)
{
iTree_DialogBox_MoveMaxWidth = parseInt(document.documentElement.offsetWidth) - iTree_DialogBox_scrollwidth - parseInt(oDialogBoxDiv.offsetWidth);
}
}
//TreeDialogBoxmiddle("TreeDialogBoxDiv");
}
}
/*windowSizeChange*/
window.onresize=function TreeDialogBoxSize()
{
if(TreeDialogBox$('TreeOverlayBackgroundDiv')['style']['display']=="block")
{
TreeDialogBox$('TreeOverlayBackgroundDiv').style.height = iTree_DialogBox_pageHeight;
var oTreeDialogBox = TreeDialogBox$("TreeDialogBoxDiv");
if(oTreeDialogBox)
{
iTree_DialogBox_MoveMaxHeight = iTree_DialogBox_pageHeight - parseInt(oTreeDialogBox.offsetHeight);
TreeDialogBox$('TreeOverlayBackgroundDiv').style.width = TreeDocumentWidth();
iTree_DialogBox_MoveMaxWidth = TreeDocumentWidth() - parseInt(oTreeDialogBox.offsetWidth);
// var sClientWidth = document.documentElement.scrollWidth;
// var sWidth = document.body.clientWidth;
//
// if(sWidth <= sClientWidth)
// {
// TreeDialogBox$('TreeOverlayBackgroundDiv').style.width = sClientWidth;
// // alert("sClientWidth:" + sClientWidth);
// iTree_DialogBox_MoveMaxWidth = sClientWidth - parseInt(oTreeDialogBox.offsetWidth);
// }
// else
// {
// TreeDialogBox$('TreeOverlayBackgroundDiv').style.width = sWidth-iTree_DialogBox_scrollwidth;
// //alert("sWidth:" + sWidth);
// iTree_DialogBox_MoveMaxWidth = sWidth-iTree_DialogBox_scrollwidth - parseInt(oTreeDialogBox.offsetWidth);
// }
TreeDialogBoxmiddle('TreeDialogBoxDiv');
}
}
}
function TreeControls_ShowBackGround()
{
var bgDivHeight = document.body.clientHeight;
bgDivHeight = document.documentElement.clientHeight>bgDivHeight?document.documentElement.clientHeight: bgDivHeight;
TreeDialogBox$('TreeOverlayBackgroundDiv').style.height = bgDivHeight;
var sClientWidth = document.documentElement.scrollWidth;
var sWidth = document.body.clientWidth;
if(sWidth < sClientWidth)
{
TreeDialogBox$('TreeOverlayBackgroundDiv').style.width = sClientWidth;
iTree_DialogBox_MoveMaxWidth = sClientWidth - 398;
}
else if(sWidth == sClientWidth)
{
TreeDialogBox$('TreeOverlayBackgroundDiv').style.width = sClientWidth;
iTree_DialogBox_scrollwidth = parseInt(document.documentElement.offsetWidth) - parseInt(document.body.clientWidth);
iTree_DialogBox_MoveMaxWidth = parseInt(document.documentElement.offsetWidth) - iTree_DialogBox_scrollwidth - 398;
}
else
{
TreeDialogBox$('TreeOverlayBackgroundDiv').style.width = sWidth;
iTree_DialogBox_MoveMaxWidth = parseInt(sWidth)- 398;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -