print.js
来自「JSP工程应用与实践」· JavaScript 代码 · 共 43 行
JS
43 行
function blockEvents() {
var deadend;
opener.captureEvents(Event.CLICK, Event.MOUSEDOWN, Event.MOUSEUP, Event.FOCUS);
opener.onclick = deadend;
opener.onmousedown = deadend;
opener.onmouseup = deadend;
opener.focus = deadend;
}
function unblockEvents() {
opener.releaseEvents(Event.CLICK, Event.MOUSEDOWN, Event.MOUSEUP, Event.FOCUS);
opener.onclick = null;
opener.mousedown = null;
opener.mouseup = null;
opener.onfocus = null;
}
function finished() {
setTimeout("close()", 1000);
}
function installNsPlugin(pluginUrl, registryName, pluginVersion) {
if (InstallTrigger.enabled()) {
var existingVersion = InstallTrigger.getVersion(registryName);
if (!existingVersion || existingVersion != pluginVersion) {
xpi = {'ActiveX Print Control':pluginUrl};
InstallTrigger.install(xpi, callback);
}
}
}
function callback(url, status) {
if (status) {
alert("Installation of the ActiveX Print Control failed. Error code: " + status);
}
}
function checkModal(dlgWindow) {
if (dlgWindow && !dlgWindow.closed)
dlgWindow.focus();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?