<html>
<head>
<title></title>

<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script language=JavaScript>
//전체 선택/해제
 function selectAll(){
 var c = $('#checkAll').attr('checked');
 $('input[name=chkid]').attr('checked',c);
 }
 //선택된 값 보기
 function getSelectVal(){
 var idlist = [];
 var itemstr ="";
 $('input[name=chkid]:checked').each(function(){idlist.push(this.value)});
 
 $.each(idlist,function(index, item){
  itemstr += item + ',';
 });

 $('#resultID').text(itemstr);
 }
</script>

</head>
<body>

 <input type="checkbox" id="checkAll" class="chk" onclick="selectAll()" /> 전체선택<P/>


 <input type="checkbox" name="chkid"  value="1" class="chk" />1<P/>
 <input type="checkbox" name="chkid"  value="2" class="chk" />2<P/>
 <input type="checkbox" name="chkid"  value="3" class="chk" />3<P/>
 <input type="checkbox" name="chkid"  value="4" class="chk" />4<P/>
 <input type="checkbox" name="chkid"  value="5" class="chk" />5<P/>
 <input type="checkbox" name="chkid"  value="6" class="chk" />6<P/>
 <input type="checkbox" name="chkid"  value="7" class="chk" />7<P/>


 <input type="button" id="showval" onclick="getSelectVal()" value="선택값 보기" />


  당신이 선택하신 값은<span id="resultID"></span> 입니다.


</body>
</html>

Posted by 아로스

CVS 사용하다가 공백때문에 싱크 안맞는 소소한 불편이 있어서
에디트플러스처럼 저장할때 끝줄 공백제거해주는 옵션을 찾아서 공유해봅니다.
필요 시 엣지있게 사용바람


1. Window 메뉴 에서 Preferences 창을 엽니다.

2. Java -> Editor -> Save Actions 선택  (아니면 type filter text 에서 save 라고 입력하면 쉽게 검색됨)

3. Addtional actions 옵션을 체크해서 활성시킴

4. Configurre 버튼 클릭

5. Code Organizing 탭 선택

6. Remove trailing whitespace 옵션 체크

7. 라디오버튼에서 모든 라인 혹은 빈라인의 공백 무시중 필요한 것으로 선택

[출처] [이클립스] 에디터에서 저장시 줄끝 공백 제거하기 (Lit의 프로그램 세상) |작성자 쪼코아몬

Posted by 아로스
 

1. 자동 줄바꿈 기능 사용하기
Virtual World Wrap
http://ahtik.com/eclipse-update/
Ctrl+M 사용


2. htm, html파일 php로 인식시키기
- Window > Preferences > Editors 검색 > File Association > 선택
- .htm, html 확장자 크릭후 하단 Associated editors > Add.. 클릭후
PHP Editor 선택후 확인 > Default 큭릭하여 기본으로 선택함
- 상단에 "Contents Types"를 클릭후 Text > PHP Content Type에서 *.htm, *.html을 추가해준다
- 이클립스 재실행후 .htm, .html 파일을 열어본다.


3. 폰트변경하기
- Window > Preferences > Editors 검색 > General > Appearance > Colors and Fonts
- Basic 메뉴을 선택후 > Font라고 표기된 부분을 원하는 폰트로 변경
- Apply 적용

4. 인코딩설정하기
- 전체적용 : 디폴트 설정
- 계정별 적용 :

5. 괄호나 따옴표 자동없애 꺼주기
- Window > Preferences > typing > PHP > Editor > Typing선택
Automatically close 에서 "Strings"를 체크해제

6. HTML 소스중 큰따움표안 기울임체(Italic) 없애주기
- Web > HTML Files > Editor > Syntax Coloring > Syntax Element 속성중
Attribute Values에서 Italic 체크해제


7. 이클립스 사용 메모리 증설

eclipse.ini 파일을 열어서 > 아래와 같이 덮어 씌운다.

★ 그냥 단순하게 메모리 숫자만 변경하면 실행이 안됩니다. 아래와 같이 해주세요^^ ★

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.php.product
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vm
C:\Program Files\Java\jdk1.6.0_14\bin\javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx512m


Posted by 아로스
day(DateSerial(dyear, dmonth+1, 0))
Posted by 아로스
$(window.opener.document).find('#ctl00_ContentPlaceHolder1_Text1').val(ctbox);

window.opener.document.forms[0].ctl00$ContentPlaceHolder1$Text1.value = ctbox;

window.opener.document.getElementById('ctl00_ContentPlaceHolder1_Text1').value = ctbox;
Posted by 아로스

아로스

달력