📄 popup.js
字号:
<script Language="JavaScript" type="text/javascript"><!--
// (1) pop up the reference form
function popup_reference( mode )
{
if ( !mode ) {
if ( window.myLogin ) {
if ( !myLogin.closed ) { myLogin.focus(); return true; }
}
myLogin = window.open('login.php','myLogin','scrollbars=no,status=no,alwaysRaised=yes,dependent=yes,titlebar=no,menubar=no,resizable=no,width=300,height=200,screenX=200,left=200,top=160,screenY=160' );
return true;
}
if ( window.myReference ) {
if ( !myReference.closed ) { myReference.focus(); return false; }
}
myReference = window.open('','reference','scrollbars=no,status=no,width=400,height=540,screenX=0,screenY=50,left=50,top=0');
myReference.location.href = "reference.php";
return false;
}
// (2) pop up the standard form
function popup_standard( mode, tname, tdesc, ww, hh, xx, yy )
{
if ( !mode ) {
if ( window.myLogin ) {
if ( !myLogin.closed ) { myLogin.focus(); return true; }
}
myLogin = window.open('login.php','myLogin','scrollbars=no,status=no,alwaysRaised=yes,dependent=yes,titlebar=no,menubar=no,resizable=no,width=300,height=200,screenX=200,left=200,top=160,screenY=160' );
return true;
}
if ( window.myStandard ) {
if ( !myStandard.closed ) { myStandard.focus(); return false; }
}
myStandard = window.open('','standard','scrollbars=no,status=no,width='+ww+',height='+hh+',screenX='+xx+',screenY='+yy+',top='+xx+',left='+yy );
myStandard.location.href = tname + ".php";
return false;
}
function popup_employee( mode, tname, tdesc )
{
if ( !mode ) {
if ( window.myLogin ) {
if ( !myLogin.closed ) { myLogin.focus(); return true; }
}
myLogin = window.open('login.php','myLogin','scrollbars=no,status=no,alwaysRaised=yes,dependent=yes,titlebar=no,menubar=no,resizable=no,width=300,height=200,screenX=200,left=200,top=160,screenY=160' );
return true;
}
if ( window.myEmployee ) {
if ( !myEmployee.closed ) { myEmployee.focus(); return false; }
}
myEmployee = window.open('','employee','fullscreen=yes,scrollbars=no,status=no,width=750,height=650,screenX=10,screenY=10,left=10,top=10');
myEmployee.location.href = "employee.php";
return false;
}
function popup_payroll( mode, tname, tdesc, ww, hh, xx, yy )
{
if ( !mode ) {
if ( window.myLogin ) {
if ( !myLogin.closed ) { myLogin.focus(); return true; }
}
myLogin = window.open('login.php','myLogin','scrollbars=no,status=no,alwaysRaised=yes,dependent=yes,titlebar=no,menubar=no,resizable=no,width=300,height=200,screenX=200,left=200,top=160,screenY=160' );
return true;
}
if ( window.myPayroll ) {
if ( !myPayroll.closed ) { myPayroll.focus(); return false; }
}
myPayroll = window.open('','payroll','scrollbars=no,status=no,width='+ww+',height='+hh+',screenX='+xx+',screenY='+yy+',top='+xx+',left='+yy );
myPayroll.location.href = tname + ".php";
return false;
}
//--></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -