📄 func.htm
字号:
//得到id
function $(id) {
if (document.getElementById != null) {
return document.getElementById(id);
}
else if (document.all != null) {
return document.all[id];
}
else {
return null;
}
}
function openModalDialog(strurl,width,height)
{ // 2.0
window.showModalDialog(strurl,window,"help: No; resizable: No; status: No;scrollbars:No;center: Yes;dialogWidth:" + width + "px;dialogHeight:" + height + "px;");
}
function selAll(selitem)
{
var obj=self.document.all.item(selitem);
if (obj)
{
if (obj.checked != "undefined") obj.checked = !obj.checked;
for(var i=0;i<obj.length;i++)
{
obj[i].checked = !obj[i].checked;
}
}
}
function openWin(strurl,n_width,n_height)
{
window.open(strurl,"","width="+n_width+" height="+n_height+" menubar=no toolbar=no scrollbars=yes left=0 top=0");
}
function openWin2(strurl,strtitle,n_width,n_height)
{
window.open(strurl,strtitle,"width="+n_width+" height="+n_height+" menubar=no toolbar=no scrollbars=yes left=0 top=0");
}
function objInnerText(ObjSP,vStr)
{
if (document.getElementById(ObjSP) != null)
document.getElementById(ObjSP).innerHTML=vStr.toString();
}
function objSetValue(Obj,vStr)
{
if (document.getElementById(Obj) != null)
document.getElementById(Obj).value=vStr;
}
function secBoard(n)
{
try
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells
[i].className="sec1";
secTable.cells[n].className="sec2";
}
catch(e){}
/*
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies
[i].style.display="none";
mainTable.tBodies
[n].style.display="block";
*/
}
function s12(n)
{
try
{
secTable.cells[n].className="s2";
}
catch(e){}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -