?? common.js
字號:
//容錯腳本
function ResumeError()
{
return true;
}
window.onerror = ResumeError;
function Getcolor(img_val,Url,input_val){
var arr = showModalDialog(Url, "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0; help:0");
if (arr != null){
document.getElementById(input_val).value = arr;
img_val.style.backgroundColor = arr;
}
}
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function openem()
{
openScript('../gg/upload.asp',400,300);
}
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 overColor(Obj)
{
var elements=Obj.childNodes;
for(var i=0;i<elements.length;i++)
{
elements[i].className="tdbg1"
Obj.bgColor="";
}
}
function outColor(Obj)
{
var elements=Obj.childNodes;
for(var i=0;i<elements.length;i++)
{
elements[i].className="tdbg";
Obj.bgColor="";
}
}
function getlicense()
{
if (document.getElementById('viewlicense').checked==true)
{
document.getElementById('license').style.display='';
document.getElementById('license1').style.display='';
}
else
{
document.getElementById('license').style.display='none';
document.getElementById('license1').style.display='none';
}
}
//顯示圖層
function show_icon_cho(i)
{
var xx=document.FrontPage_Form1.select_icon.options[document.FrontPage_Form1.select_icon.selectedIndex].value;
// if(xx.indexOf("images")!=1)
if(xx.length>5)
{
i.style.display = ""
document.show_icon.src=xx;
document.FrontPage_Form1.icon.value="<img src="+xx+" border=0>";
}
else
{
i.style.display = "none";
document.FrontPage_Form1.icon.value=xx;
}
}
function admin_Size(num,objname)
{
var obj=document.getElementById(objname)
if (parseInt(obj.rows)+num>=3) {
obj.rows = parseInt(obj.rows) + num;
}
if (num>0)
{
obj.width="90%";
}
}
//Obj單擊的對象,ButtonSymbol按鈕狀態,MainUrl--MainFrame的鏈接
function SelectObjItem(Obj,ButtonSymbol,MainUrl)
{
if(MainUrl!='')
{window.parent.parent.frames['main'].location.href=MainUrl;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -