?? common.js
字號:
//---------------彈出選擇顏色窗口-------------------------
function OpenThenSetValue(Url,Width,Height,WindowObj,SetObj)
{
var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;status:0;help:0;scroll:0;');
if (ReturnStr!='') SetObj.value=ReturnStr;
return ReturnStr;
}
//--------------------------------------------------
function unselectall(thisform){
if(thisform.chkAll.checked){
thisform.chkAll.checked = thisform.chkAll.checked&0;
}
}
function CheckAll(thisform){
for (var i=0;i<thisform.elements.length;i++){
var e = thisform.elements[i];
if (e.Name != "chkAll"&&e.disabled!=true)
e.checked = thisform.chkAll.checked;
}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function AddReplace(){
var strthis='替換前的字符串|替換后的字符串';
var str=prompt('請輸入替換前的字符串和替換后的字符串,中間用“|”隔開:',strthis);
if(str!=null&&str!=''){document.myform.strReplace.options[document.myform.strReplace.length]=new Option(str,str);}
}
function ModifyReplace(){
if(document.myform.strReplace.length==0) return false;
var strthis=document.myform.strReplace.value;
if (strthis=='') {alert('請先選擇一個字符串,再點修改按鈕!');return false;}
var str=prompt('請輸入替換前的字符串和替換后的字符串,中間用“|”隔開:',strthis);
if(str!=strthis&&str!=null&&str!=''){document.myform.strReplace.options[document.myform.strReplace.selectedIndex]=new Option(str,str);}
}
function DelReplace(){
if(document.myform.strReplace.length==0) return false;
var strthis=document.myform.strReplace.value;
if (strthis=='') {alert('請先選擇一個字符串,再點刪除按鈕!');return false;}
document.myform.strReplace.options[document.myform.strReplace.selectedIndex]=null;
}
function CheckForm(){
if (document.myform.ItemName.value==''){
alert('項目名稱不能為空!');
return false;
}
if (document.myform.ListStr.value==''){
alert('請輸入遠程列表URL!');
return false;
}
for(var n=0;n<document.myform.strReplace.length;n++){
if (document.myform.ReplaceList.value=='') document.myform.ReplaceList.value=document.myform.strReplace.options[n].value;
else document.myform.ReplaceList.value+='$$$'+document.myform.strReplace.options[n].value;
}
}
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -