index:
cell 1-1 | cell 1-2 |
cell 2-1 | cell 2-2 |
cell 3-1 | cell 3-2 |
index:
cell 1-1 | cell 1-2 |
cell 2-1 | cell 2-2 |
cell 3-1 | cell 3-2 |
/** * 화페단위 등 3자리수마다 콤마찍기 * @param value 문자열 * ex) new dak.utils.StringUtil().getMoneyFormatter("123456") */ getMoneyFormatter: function(value) { value = value.replace(/,/ig, ""); value = (value=String(value)).match(RegExp("^[0-9]{"+(value.length%3||3)+"}|[0-9]{3}","g")); if( value == null || value == "" || value == "null" ) return ""; else return value; }
var dak = {}; dak.utils = {}; dak.utils.CommonUtil = function(){} dak.utils.CommonUtil.prototype = { /** * 숫자만 입력 가능하게 * new dak.utils.CommonUtil().onlyNumber(event);, onKeyDown 이벤트 * @param e Event * @return */ onlyNumber: function(e){ var event = e ? e : event; var target = event.target ? event.target : event.srcElement; target.setAttribute("stryle", "ime-mode:disabled"); // BackSpace,Delete, <-, ->, Tab 키 통과 if( e.keyCode == 8 || e.keyCode == 46 || e.keyCode == 37 || e.keyCode == 39 || e.keyCode == 9 || e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105 ) { } else { if( e.preventDefault ){ e.preventDefault(); }else{ e.returnValue = false; } } } }
/** * 브라우저 버전 정보 얻기 */ function getBrowserVersion(){ var bVersion; try{ var bInfo = navigator.appVersion; var bInfoArr = bInfo.split(";"); bVersion = parseInt(bInfoArr[1].split("MSIE").join("")); }catch(e){ bVersion = -1; } return bVersion; }
_divBG = document.createElement("div"); _divBG.style.position = "absolute"; _divBG.style.top = 0; _divBG.style.left = 0; _divBG.style.backgroundColor = "black"; _divBG.style.width = document.body.clientWidth; _divBG.style.height = document.body.clientHeight; _divBG.style.filter = "alpha(opacity=20)"; _divBG.style.zIndex = 99; _divBG.style.display = "block"; document.body.appendChild(_divBG);