?? dialog.js
字號:
var IsSP2 = (navigator.userAgent.indexOf("SV1") != -1);
function IsColor(color){
var temp=color;
if (temp=="") return true;
if (temp.length!=7) return false;
return (temp.search(/\#[a-fA-F0-9]{6}/) != -1);
}
function ToInt(str){
str=BaseTrim(str);
if (str!=""){
var sTemp=parseFloat(str);
if (isNaN(sTemp)){
str="";
}else{
str=sTemp;
}
}
return str;
}
function IsURL(url){
var sTemp;
var b=true;
sTemp=url.substring(0,7);
sTemp=sTemp.toLowerCase();
if ((sTemp!="http://")||(url.length<10)){
b=false;
}
return b;
}
function initDialog(w,h){
window.dialogWidth = w + "px";
window.dialogHeight = h + "px";
window.dialogLeft = (screen.availWidth - w) / 2;
window.dialogTop = (screen.availHeight - h) / 2;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -