2017년 1월 29일 일요일

Jquery 이미지 드래그 설정 ( Web, Mobile )

1.  스크립트 파일을 추가한다. 웹 2개 모바일 2개 모바일은 jquery.ui.touch-punch.min.js 파일을 다운받아 하나더 추가한다. 주소 : https://github.com/furf/jquery-ui-touch-punch //웹용 스크립트 파일 <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> //모바일용 스크립트 파일 <script src="http://code.jquery.com/jquery.min.js"></script> 사용시...
Share:

sublime Text SFTP 기본 설정

{     // The tab key will cycle through the settings when first created     // Visit http://wbond.net/sublime_packages/sftp/settings for help         // sftp, ftp or ftps     "type": "ftp",     "save_before_upload": true, //저장하기 전에 업로드할지 여부를 체크한다.     "upload_on_save": true, // 업로드 하면서 저장할지 여부를 체크한다     "sync_down_on_open":...
Share:

2017년 1월 26일 목요일

2017년 1월 18일 수요일

iframe 에서 부모창 접근하기

부모창 소스 <html> <body> <iframe id="test1" frameborder="0" src="test.jsp"></ifame> <body> <html> 이라고 가정한다면 test.jsp 소스에서 parent.document.getElementById(부모창에 있는 iframe아이디)  를 통해 iframe 속성에 접근한다. test.jsp 안에서 부모에 있는 iframe 창의 높이를 수정해서 보여줄려고 한다면 onload 나 document.ready 를 활용해서  parent.document.getElementById("test1").height = document.body.offsetHeight; 을...
Share:

2017년 1월 14일 토요일