본문 바로가기

전체 글

(242)
[ jQuery ] 이미지 센타로 오게하는... var left = ( $(window).scrollLeft() + ($(window).width() - $layerPopupObj.width()) / 2 ); var top = ( $(window).scrollTop() + ($(window).height() - $layerPopupObj.height()) / 2 ); $layerPopupObj.css({'left':left,'top':top, 'position':'absolute'});
[ jquery ] 마우스 따라 다니기 $('#img_pop').mousemove(function(e) { //var position = $(this).position(); var offset = $(this).offset(); var x = e.pageX - (offset.left); var y = e.pageY - (offset.top); $('#layer_img_pop').show().css({'left': e.pageX+16, 'top': e.pageY+16}); }); 어찌 하다 보니 아래 처럼 바뀌었네... 아래것은 브라우져 창 크기에 따라 위치가 이동하는 이미지 팝업니다. div 창이 보여질때 마다 이미지 값을 불러오는거라 그런지 느리다.. $('.img_pop').mousemove(function(e) { $('#org_img_..
[ HTML ] iframe 자동 높이 조절 $(document).ready(function(){ $("#board_IFM").load(function(){ alert($(this.contentDocument).find('body').height()); $("#iframe_src").attr('value',$(this.contentDocument).find('body').height()); var iHeight=($(this.contentDocument).find('body').height()); $(this).height(iHeight); }) }) 아.. 삽질 좀 했네.. 잘 써먹어야 할텐데..ㅋㅋ
[ PHP ] class.upload.php class.upload.php samples, a files uploading and images manipulation PHP classThese images are created by the class.upload.php test suite, that you can download part of the package. original file image/png - 150 x 100 - 35.25KB width 50, height auto image/png - 50 x 33 - 4.75KB $foo->image_resize = true; $foo->image_ratio_y = true; $foo->image_x = 50;height 50, width auto image/png - 75 x 50 - 10..
아우.. 어렵다 어려워.... 언능 해결해야 하는데... 게시판....... 참으로 보고 연구하고 손 봐야 할게 많다. 시간은 한정적이라 다 할 수 있을지 모르겟다. 간만에 어려운거 잡은거 같다.. 지금은 일단 넘어 가고 차근히 진행 해봐야 겟다. 급할수록 돌아 가라고 했으니까.. 일단 쉽고 금방 할 수 있는 것 부터 먼저!!!! 오늘은 이만 정리좀 하고 퇴근 하도록 해야 겟다!! 게시판!!!!!! 게시판!!!!!!!!!!! 캬~~~~~~~~~~~~~~~~~~~~~~~~~~~악!!!!
[ JavaScript ] 브라우저 체크 function whichBrs() { var agt=navigator.userAgent.toLowerCase(); if (agt.indexOf("opera") != -1) return 'Opera'; if (agt.indexOf("staroffice") != -1) return 'Star Office'; if (agt.indexOf("webtv") != -1) return 'WebTV'; if (agt.indexOf("beonex") != -1) return 'Beonex'; if (agt.indexOf("chimera") != -1) return 'Chimera'; if (agt.indexOf("netpositive") != -1) return 'NetPositive'; if (agt.indexOf(..
[ javascript ] 콤마 추가, 없애기 // 콤마 없애기 function replaceComma(str) { while(str.indexOf(",") > -1) { str = str.replace(",", ""); } return str; } // 콤마 추가 하기 function numChk(num){ var rightchar = replaceComma(num.value); var moneychar = ""; for(index = rightchar.length-1; index>=0; index--){ splitchar = rightchar.charAt(index); if (isNaN(splitchar)) { alert(splitchar +"는 숫자가 아닙니다. \n다시 입력해주세요"); num.value = ""; //num.value = o..
[ PHP ] crypt 활용 ( 암호화 ) $password = crypt("My1sTpassword"); // salt가 생성됩니다.# 패스워드를 비교할 때, 다른 해슁 알고리즘을 사용하는 문제를# 피하기 위해서, crypt()가 생성한 전체 결과를 salt로 주어야# 합니다. (위에서 밝혔듯이, 표준 DES 기반 암호 해슁은 2 문자# salt를 사용하지만, MD5 기반 해슁은 12 문자를 사용합니다)if (crypt($user_input, $password) == $password) {   echo "패스워드 확인!";}?>