📄 js.js
字号:
<!--
/*
程序名称:萍萍多用户简历系统
程序版本:v1.0
开发环境:SQL Server 2005 + IIS6.0(SQL Server 2000也能用)
程序设计:秋忆工作室
作者网站:http://www.skymean.com
联系邮箱:mylove21@163.com
*/
function $(_sId){return document.getElementById(_sId);}
function backurl(Form)
{
try{Form.url.value=window.location.href;}
catch(e){}
}
function resizepic(picobj,maxwidth,maxheight)
{
if(picobj.width>maxwidth && picobj.height>maxheight)
{
if((picobj.height*maxwidth/picobj.width)>maxheight)
{
picobj.width=picobj.width*maxheight/picobj.height;
picobj.height>maxheight;
}
else
{
picobj.height=picobj.height*maxwidth/picobj.width;
picobj.width=maxwidth;
}
}
else if(picobj.height>maxheight)
{
picobj.width=picobj.width*maxheight/picobj.height;
picobj.height>maxheight;
}
else if(picobj.width>maxwidth)
{
picobj.height=picobj.height*maxwidth/picobj.width;
picobj.width=maxwidth;
}
}
function formatstr(obj)
{
if(obj==null) return;
var cont=obj.value;
if((cont==null || cont=="") || cont=="undefined")
{
obj.value="";
}
else
{
while (cont.indexOf(",")!=-1)
{
cont=cont.replace(",",",");
}
obj.value=cont;
}
}
function SelectDate(SetObj)
{
try{
var ReturnStr=showModalDialog("inc/SelectDate.asp",window,"dialogWidth:280pt;dialogHeight:110pt;status:no;help:no;scroll:no;");
if (ReturnStr!="007007007007") SetObj.value=ReturnStr;
SetObj.focus();
return ReturnStr;
}catch(e){}
}
function OpenWin(url,width,height)
{
var Ver = navigator.appVersion;
if (Ver.indexOf("MSIE") > -1 && Ver.substr(Ver.indexOf("MSIE") + 5, 1) > 4) {
window.showModelessDialog(url,window,"dialogWidth="+width+"px;dialogHeight:"+height+"px;help:no;status:no");
}
else
{
window.open(url,"_blank","width="+width+",height="+height+",menubar=no,toolbar=no,location=no,scrollbars=no,status=no,dialog=yes");
}
}
function trSwitch(trID)
{
var obj=$(trID);
if(obj==null) return;
if(obj.style.display=="none")
{
try{
if($("openHistory").value!="")
{
$($("openHistory").value).style.display="none";
}
$("openHistory").value=trID;
}catch(e){}
obj.style.display="";
}
else
{
obj.style.display="none";
}
}
function operAdmin(obj)
{
if(obj.checked)
{
if(!window.confirm('警告:一旦执行将无法恢复,确定要进行此操作?'))
{
obj.checked=false;
}
}
}
//-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -