?? jsfun.js
字號:
function ShowPic(id) {
var winClose = 0;
if (window.viewimage != null && ! viewimage.closed)
{
viewimage.close();
winClose = 1;
}
if (window.viewimage == null || viewimage.closed || winClose)
{
url="ClassAlbum.asp?Action=ShowPhoto&PhotoID="+id;
var w_opt="width=720,height=600,resizable=0,scrollbars=1,menubar=0,status=1";
viewimage=window.open(url,"Preview",w_opt);
if (window.viewimage != null)
viewimage.focus();
}
}
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
}
function PopWindow()
{
openScript('messanger.asp?action=newmsg',420,320);
}
function DoTitle(addTitle) {
var revisedTitle;
var currentTitle = document.frmgbk.title.value;
revisedTitle = currentTitle+addTitle;
document.frmgbk.title.value=revisedTitle;
document.frmgbk.title.focus();
return; }
function strlength(str)
{
var l=str.length;
var teststr="???";
var t=l;
if (teststr.length==3){
for(i=0;i<l;i++){
thischar=str.charCodeAt(i);
if(thischar>255){
t=t+1;}
}
}
return t;
}
var ie = (document.all)? true:false
if (ie){function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.frmgbk.submit();}}}
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements[i];
if (e.name != 'chkall') e.checked = form.chkall.checked;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -