jscript.js
来自「尚洋仓库管理系统,对仓库」· JavaScript 代码 · 共 89 行
JS
89 行
// JScript 文件
var currentTR,orgColor,orgColor2;
window.status="尚洋精密工业有限公司";
function RowMouseOver(obj)
{
if(obj.style.backgroundColor=="#677287")
{
return;
}
orgColor=obj.style.backgroundColor;
obj.style.backgroundColor="#f6f6f6";
}
function RowMouseOut(obj)
{
if(obj.style.backgroundColor=="#677287")
{
return;
}
obj.style.backgroundColor=orgColor;
}
function changeBorder_In(obj)
{
obj.style.borderTopColor="#ffffff";
obj.style.borderLeftColor="#ffffff";
obj.style.borderBottomColor="#a0a0a0";
obj.style.borderRightColor="#a0a0a0";
obj.style.backgroundColor="#ffffff";
}
function changeBorder_Out(obj)
{
obj.style.borderTopColor="#f6f6f6"
obj.style.borderLeftColor="#f6f6f6"
obj.style.borderBottomColor="#f6f6f6"
obj.style.borderRightColor="#f6f6f6"
obj.style.backgroundColor="#f6f6f6";
}
function changeBorder_In2(obj)
{
obj.style.backgroundColor="#ffffff";
}
function changeBorder_Out2(obj)
{
obj.style.backgroundColor="#f6f6f6";
}
function chooseTr(objTr)
{
// if(objTr.style.backgroundColor!="#677287")
// {
// orgColor2=objTr.style.backgroundColor;
// }
if(currentTR!=null)
{
currentTR.style.backgroundColor="#ffffff";
currentTR.style.color="#000000";
}
currentTR=objTr;
objTr.style.backgroundColor="#677287";
objTr.style.color="#ffffff";
}
//只接收数字类型,且大于0
function jsIsNumber(obj)
{
if(jsIsEmpty(obj))
{
return true;
}
}
//只接收日期类型
function jsIsDate(obj)
{
return true;
}
//非空
function jsIsEmpty(obj)
{
return true;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?