본문 바로가기
반응형

Web Programing!301

[SCRIPT] 오늘 요일 구하기 #daumAd{width:320px; height:50px; !important}#daum_adam_MobileadAreaDiv{width:0; height;0; display:none !important}#daum_adam_MobileadAreaDiv div a img{width:0; height:0; display:none !important} 2011. 7. 17.
[SCRIPT] getYear(), getFullYear() 차이점 - 연도 구하기 자바스크립트에서 올해의 연도 구하는 메소드에는 getYear(), getFullYear()가 있습니다. 그런데 getYear() 메소드는 브라우저의 속성을 타는데요. 이 메소드를 쓰면 익스플로러에서는 지금이 2011년도니 2011이 나오지만 파이어폭스에서는 111이라는 값이 나오게 됩니다. 그래서 파이어폭스에서는 이 메소드 값에 +1900을 해줘야되죠. 그러면 익스와 익스 아닌 브라우저인 경우 두개의 메소드를 만들어야되죠. 그것을 한개의 메소드로 할 수 있습니다. 바로 getFullYear() 입니다. 예제) 2011. 7. 17.
[LINUX] 현재 폴더 및 하위폴더 권한 변경 현제 폴더 및 하위폴더 권한을 모두 바꾼다. chomd -R 777 ./ 2011. 7. 15.
[JQUERY] Input 모든 요소 가져오기 DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> $(document).ready(function() { var result = ""; // 폼 요소가 있는 만큼 반복하자. //alert($(':input').size()); $(':input').each(function(index) { result += "태그명 : " + this.tagName // $(this).get(0).tagName + ", type 속성명 : " + $(this).attr('type') + '\n'; }); alert(result); }); 드롭다운리스트 멀티라인텍.. 2011. 7. 12.
반응형