⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsfun.js

📁 亚太主机域名系统,域名、主机销售功能
💻 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 + -