본문 바로가기

JAVASCRIPT

(7)
DOM Attribute Object HTML DOM NodesIn the HTML DOM (Document Object Model), everything is a node:The document itself is a document nodeAll HTML elements are element nodesAll HTML attributes are attribute nodesText inside HTML elements are text nodesComments are comment nodesThe Attr ObjectIn the HTML DOM, the Attr object represents an HTML attribute.An HTML attribute always belongs to an HTML element.The NamedNodeMa..
DOM Document Object HTML DOM NodesIn the HTML DOM (Document Object Model), everything is a node:The document itself is a document nodeAll HTML elements are element nodesAll HTML attributes are attribute nodesText inside HTML elements are text nodesComments are comment nodesThe Document ObjectWhen an HTML document is loaded into a web browser, it becomes a document object.The document object is the root node of the ..
DOM Element Object HTML DOM NodesIn the HTML DOM (Document Object Model), everything is a node:The document itself is a document nodeAll HTML elements are element nodesAll HTML attributes are attribute nodesText inside HTML elements are text nodesComments are comment nodesThe Element ObjectIn the HTML DOM, the Element object represents an HTML element.Element objects can have child nodes of type element nodes, tex..
DOM Event Object Reference HTML DOM 이벤트HTML DOM 이벤트는 자바 스크립트를 HTML 문서의 요소에 다른 이벤트 핸들러를 등록 할 수 있습니다.이벤트는 일반적으로 함수와 조합하여 사용되며, 이벤트가 발생하기 전의 함수 (예컨대, 사용자가 버튼을 클릭 할 때와 같이)가 실행되지 않을 것이다.팁 : 이벤트 모델은 DOM 레벨 2에 W3C에 의해 표준화되었다.HTML DOM 이벤트DOM은 : 있는 DOM 레벨 속성이 도입 나타냅니다.마우스 이벤트EventDescriptionDOMonclickThe event occurs when the user clicks on an element2oncontextmenuThe event occurs when the user right-clicks on an element to open a..
DOM The HTML DOM DocumentIn the HTML DOM object model, the document object represents your web page.The document object is the owner of all other objects in your web page.If you want to access objects in an HTML page, you always start with accessing the document object.Below are some examples of how you can use the document object to access and manipulate HTML.The next chapters demonstrate the metho..
디지탈 시계 http://gazerkr.cafe24.com/WebClock/ WebClock.js /* 작성자 : 백승현(gazerkr@gmail.com) */ //------------------- //WebClock //------------------- var WebClock = function(){ this.drawTarget = "webClock"; //설정 시작 this.color = "#fff"; //글자색 this.backgroundColor = "#000"; //배경색 this.align = "center"; //정렬(left, center, right) this.fontType = "Century Gothic"; //글꼴 this.fontSize = 45; //시계 글꼴크기(참고: am,pm은 이 ..
자바스크립트 책 추천 Javascript Enlightenment - 상급 입문자용책, 코어부분을 다룬다. 완벽가이드와 겹치는 부분이 많다. 기초 한번 다지기용. Javascript Cookbook - 자잘한 문제 처리법 공부하기 괜찮은 것 같다. 입문용 Javascript The Good Parts - 입문용, 코어 기초 다지기에 좋다. Javascript patterns - 입문자용 책이 아니다. 스킬업하기 좋은 책, 패턴이나 상속같은 부분이 많이 나온다. 난이도도 꽤 높다고 생각함. Javascript Web Application - 자바스크립트 MVC 어플리케이션에 대한 책. 상속, 이벤트, 모델, 컨트롤러, 뷰, 템플릿 많은 주제를 다룬다. 상속같은 부분은 Patterns 쪽보다는 조금 쉽고 가볍게 다룬다. Spar..