exppage.js

来自「supermap开发的基站管理系统」· JavaScript 代码 · 共 59 行

JS
59
字号
// JScript 文件

 function txt_lg_1_txtcount()
    {
        if(window.event.keyCode == 39)
            form1.STAT_LG_2.focus();
        else if(form1.STAT_LG_1.value.length == form1.STAT_LG_1.getAttribute("maxLength"))
        {
            form1.STAT_LG_2.focus();
        }
    }
    
     function txt_lg_2_txtcount()
    {
        if(window.event.keyCode == 39)
            form1.STAT_LG_3.focus();
        else if(form1.STAT_LG_2.value.length == form1.STAT_LG_2.getAttribute("maxLength"))
        {
            form1.STAT_LG_3.focus();
        }
    }
    
     function txt_la_1_txtcount()
    {
        if(window.event.keyCode == 39)
            form1.STAT_LA_2.focus();
        else if(form1.STAT_LA_1.value.length == form1.STAT_LA_1.getAttribute("maxLength"))
        {
            form1.STAT_LA_2.focus();
        }
    }
    
     function txt_la_2_txtcount()
    {
        if(window.event.keyCode == 39)
            form1.STAT_LA_3.focus();
        else if(form1.STAT_LA_2.value.length == form1.STAT_LA_2.getAttribute("maxLength"))
        {
            form1.STAT_LA_3.focus();
        }
    }                                                            
function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange();
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate();
		oSel.text = ""
		var srcRange = obj.createTextRange();
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
	function keydown()
	{
	    if(event.keyCode == "32") return false;
	    else
	        return true;
	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?