분류 전체보기 148

카드번호형식 입력

입력란에 숫자가 몇글자 들어가면 자동으로 하이픈이 들어가게 하는 스크립트 정규식만 고쳐쓰면 되게 해놨는데.... function testreg(){ var objThis = document.getElementById("aaa"); var pattern1 = /(^\d{4}|^\d{4}-\d{3}|^\d{4}-\d{3}-\d{7})(\d+)/; var strTempThisValue = objThis.value; while(/[-]/.test(strTempThisValue)){ strTempThisValue = strTempThisValue.replace("-",""); } while(pattern1.test(strTempThisValue)){ strTempThisValue = strTempThisValue..

프로그램/html 2010.12.14

centos에서 asterisk를 yum으로 설치

뭔말인지 모르겠지만 일단 해보는그야 ㅡㅡ;; Installing a binary distribution of Asterisk makes it easier to maintain your system. Using the package management tools that are included with your Linux distribution, you can install and update software without manually managing dependencies (libraries and utilities on which applications rely). Currently Asterisk is available for automated binary installation using the..

프로그램/Linux 2010.12.14

내가 만든 구질구질한 넘버패드 스크립트

내가 만든 구질구질한 넘버패드 스크립트 ㅎㅎ function ShowNumPad2(p_strTargetName) { var objTarget = document.getElementById(p_strTargetName); var TargetTop = objTarget.offsetTop; var TargetLeft = objTarget.offsetLeft + objTarget.offsetWidth; var arrNumString = new Array("7", "8", "9", "4", "5", "6", "1", "2", "3", "←", "0", "C"); if (document.getElementById("NUMPAD") != null) { var Target = document.getElementById..

프로그램/html 2010.12.14