📄 div_show.js
字号:
// JScript 文件
//用于层的显示
/*Div_Show方法
//将遮蔽层和编
//辑层同时显示出来
//参数解释
//Edit是编辑层
//back_Div是遮蔽层
*/
function Div_Show(Edit,back_Div)
{
document.getElementById(Edit).style.display = "block";
document.getElementById(Edit).style.left =parseInt((document.documentElement.scrollWidth-document.getElementById(Edit).offsetWidth)/2)-30+document.documentElement.scrollLeft+"px";
document.getElementById(Edit).style.top=Math.abs(parseInt((document.documentElement.clientHeight-document.getElementById(Edit).offsetHeight)/2))+document.documentElement.scrollTop+"px";
document.getElementById(back_Div).style.display="inline";
document.getElementById(back_Div).style.height=document.documentElement.scrollHeight+"px";
}
/*Div_Sun_Show()方法
//将显示的是子层
//子层显示在父层之上
//同时将子层显示在传递的
//坐标位置上
//父层是一个已经显示的层
//参数解释
//F_Div父级层
//S_Div需要显示的层
//Div_top显示层的top
//Div_Left显示层的left
*/
function Div_Sun_Show(F_Div,S_Div,Div_top,Div_Left)
{
//alert(document.getElementById(S_Div).style.display);
document.getElementById(S_Div).style.display="block";
document.getElementById(S_Div).style.top=Div_top+"px";
document.getElementById(S_Div).style.left=Div_Left+"px";
document.getElementById(S_Div).style.display="inline";
//document.getElemenById(S_Div).style.
}
/*Div_Close()方法
//将显示的是层关闭
*/
function Div_Close(Div_ID)
{
document.getElementById(Div_ID).style.display="none";
}
//test
function showDilog()
{
window.open();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -