📄 confirm.js
字号:
function confirmlink(str)//参数为“str”的确认提示
{
return confirm("确定要进行"+str+"操作?")
}
function confirmlink1(str)//参数为str的确认提示
{
return confirm(str)
}
function createwindow(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"window","height=300,width=320,toolbar=no,menubar=no,location=no,resizable=yes,directories=no,status=no,scrollbars=no,dependent=no");
h.focus();
}
function createwindoww(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=260,width=320,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function createwindowww(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=370,width=320,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function createwindowm(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=200,width=600,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function createwindowg(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=400,width=550,toolbar=no,menubar=no,location=no,resizable=yes,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function NumberKeyedIn()//text文本中单取数字函数。
{
if (window.event.keyCode>57 || (window.event.keyCode<48 && window.event.keyCode!=45 && window.event.keyCode!=13))
window.event.keyCode=0;
return 1;
}
function NumberKeyedInn()//text文本中单取数字函数。
{
if (window.event.keyCode>57 || (window.event.keyCode<48 && window.event.keyCode!=45 && window.event.keyCode!=46 && window.event.keyCode!=13))
window.event.keyCode=0;
return 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -