.append( content, [content] )Returns : jQuery 개요 : 어떤 요소에 마지막 자식 요소를 새로 추가합니다. Description: Insert content, specified by the parameter, to the end of each element in the set of matched elements. .append( content, [content] ) content 추가될 HTML 문자열, DOM 요소, 또는 jQuery 객체. content 추가될 하나 이상 복수개의 DOM 요소들, 요소 배열, HTML 문자열들, 또는 jQuery 객체들. .append( function(index, html) ) function(index, html) 선택된 요소 집합..
XML Parsing with jQuery 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 Silverlight and the Netflix API Tutorials Silverlight 2.0 Silverlight C# XAML 1/13/2009 Cake PHP 4 - Saving and Validating Data Tutorials CakePHP PHP 1/12/2009 Silverlight 2 - Using initParams Tutorials Silverlight 2.0 Silverlight C# HTML 1/6/2009 Controlli..
.mouseenter( handler(eventObject) )Returns : jQuery 개요 : 요소에 마우스가 진입했을 때의 이벤트를 바인딩 하거나 특정 요소에 이벤트를 발생시킵니다. .mouseenter( handler(eventObject) ) mouseenter(eventObject) 이벤트가 발생했을 때 실행될 기능. .mouseenter( [eventData], handler(eventObject) ) eventData 이벤트 핸들러에 전달할 데이터 집합. handler(eventObject) 이벤트가 발생했을 때 실행될 기능. .mouseenter( ) .mouseleave( handler(eventObject) )Returns : jQuery 개요 : 요소에서 마우스가 떠날때의 이벤트..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 $("#image").animate({opacity:0},0); $("#image").animate({opacity:1},600); $( "#go2" ).click(function(){ $( "#block2" ).animate({ width: "90%" }, 1000 ) .animate({ fontSize: "24px" }, 1000 ) .animate({ borderLeftWidth: "15px" }, 1000 ); }); $( "#go" ).click(function(){ $( ".block:first" ).animate({ left: 100 }, { duration: 1000, step: function( now,..
.css() 원문 링크 http://api.jquery.com/css/ 함수들 css( propertyName ) .css( propertyName ) css( propertyName , value ) .css( propertyName, value ) .css( propertyName, function(index, value) ) .css( map example) 1 2 3 4 5 var color = $(this).css("background-color"); var myX = $(".textImg0").css("left"); $( this ).css( "width","+=200" ); 1 : color 변수에 현재의 배경색을 가져옴 3. myX 변수에 textImg0 이라는 css 클래스에있는 left..
example) 1 2 3 4 5 6 7 8 9 10 11 $("#btn2").click(function(){ console.log("btn2 clicked"); boxClass.boxHandler(); }); $("#prevBtn").mousedown(leftDownHandler).mouseup(leftUpHandler); $("#nextBtn").mousedown(rightDownHandler).mouseup(rightUpHandler); $("#active2_0").click(function(){chageImage(0)}); $("#active2_1").click(function(){chageImage(1)}); $("#active2_2").click(function(){chageImage(2)})..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 1_1. $("#i..
Google AJAX Libraries API에서 제공하는 라이브러리는 모두 "gzip"으로 불리는 압축형식으로 되어있어 전송량을 대폭 줄일 수 있다. 사용자가 과거 Google AJAX Libraries API를 사용했던 웹페이지에 접속했다면 자바스크립트 파일이 캐시되어 있기 때문에 페이지 로딩 속도가 향상되는 이점을 기대할 수 있다. http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
.addClass() 함수는 특정한 클래스를 요소에 추가할 수 있습니다. 원문 링크 > http://api.jquery.com/addClass/ .addClass( className ) className 특정 조건에 추가할 하나 이상의 클래스 명 이 함수가 클래스를 대체하는 함수가 아니라는 것에 유의. 클래스를 추가하는 기능만 가지고있다. 하나이상의 클래스추가시 띄어쓰기 $('p').addClass('myClass yourClass'); 클래스를 삭제할 때는 .removeClass()사용 $('p').removeClass('myClass noClass').addClass('yourClass'); 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Hello and Goo..
.attr() 인자에 따라 2가지사용. 하나일경우 - 속성값 가져오기 두개일경우 - 속성값을 요소에 부여함.var btn = $(".main_btn0" + i + "_off"); btn.attr({"num":i}); var index = btn.attr("num"); console.log(index); //0,1,2,3 Example: Find the title attribute of the first in the page. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Once there was a large dinosaur... The title of the emphasis is: 결과) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16..
HTML문서 사이 CSS문서 @charset "utf-8"; PHP문서 XML문서