<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>linuxian</title>
		<link>http://mwmw7.tistory.com/</link>
		<description></description>
		<language>ko</language>
		<pubDate>Thu, 01 Dec 2011 17:21:22 +0900</pubDate>
		<generator>Tistory 1.1 (http://www.tistory.com/)</generator>
		<managingEditor>lilla</managingEditor>
		<image>
		<title>linuxian</title>
		<url><![CDATA[http://cfile10.uf.tistory.com/image/13796C134CC9F3C40D0BB0]]></url>
		<link>http://mwmw7.tistory.com/</link>
		<description></description>
		</image>
		<item>
			<title>css selector</title>
			<link>http://mwmw7.tistory.com/308</link>
			<description>&lt;a href=&quot;http://www.ugoon.net/study/guide/css_selector.php#selector1&quot;&gt;http://www.ugoon.net/study/guide/css_selector.php#selector1&lt;/a&gt;</description>
			<category>web</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/308</guid>
			<comments>http://mwmw7.tistory.com/308#entry308comment</comments>
			<pubDate>Thu, 01 Dec 2011 17:20:32 +0900</pubDate>
		</item>
		<item>
			<title>tornado 파일 수정시 auto restart</title>
			<link>http://mwmw7.tistory.com/306</link>
			<description>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;a href=&quot;http://www.baigreen.com/ko/2011/07/19/610138&quot;&gt;http://www.baigreen.com/ko/2011/07/19/610138&lt;br /&gt;
&lt;br /&gt;
&lt;font class=&quot;Apple-style-span&quot; color=&quot;#e31600&quot;&gt;
import tornado.autoreload&amp;nbsp;&lt;/font&gt;&lt;br /&gt;
&lt;div&gt;
settings = dict(&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blog_title=u&quot;bubble Talk&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; template_path=os.path.join(os.path.dirname(__file__), &quot;templates&quot;),&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static_path=os.path.join(os.path.dirname(__file__), &quot;static&quot;),&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ui_modules={&quot;Entry&quot;: EntryModule},&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #이건 보안을위해 사용하는 건데 우리른 끄고사용한다.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xsrf_cookies=False,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cookie_secret=&quot;11oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; login_url=&quot;/auth/login&quot;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#e31600&quot;&gt; debug = True&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(51, 51, 51); -webkit-text-decorations-in-effect: none; &quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://www.baigreen.com/ko/2011/07/19/610138&quot;&gt;&lt;div style=&quot;display: inline !important; &quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/div&gt;
&lt;/a&gt;&amp;nbsp;&lt;div id=&quot;__KO_DIC_LAYER__&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; position: fixed; z-index: 999999999; overflow-x: hidden; overflow-y: hidden; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(51, 51, 119); border-right-color: rgb(51, 51, 119); border-bottom-color: rgb(51, 51, 119); border-left-color: rgb(51, 51, 119); display: none; &quot;&gt;
&lt;iframe frameborder=&quot;0&quot; scrolling=&quot;yes&quot; style=&quot;width: 100%; height: 100%; background-color: rgb(255, 255, 255); &quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</description>
			<category>tornado</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/306</guid>
			<comments>http://mwmw7.tistory.com/306#entry306comment</comments>
			<pubDate>Sat, 26 Nov 2011 03:08:56 +0900</pubDate>
		</item>
		<item>
			<title>javascript event</title>
			<link>http://mwmw7.tistory.com/305</link>
			<description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(138, 138, 138); font-family: dotum; line-height: 7px; background-color: rgb(255, 255, 255); &quot;&gt;&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#003366&quot; face=&quot;Verdana&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;자바스크립트에서의 이벤트의 모든 것&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font size=&quot;2&quot; face=&quot;Verdana&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트란, 특정한 상황이 발생했을 때 특정한 일을 수행하도록 하는 일종의 트리거다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;타 언어와 마찬가지로, 자바스크립트에서도 이벤트 관련 기능을 지원한다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트에 대해 파헤치기 전에, 먼저 이벤트의 작동 방식부터 살펴보자.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트의 작동 방식&lt;/strong&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트 작동 방식은 크게 bubbling과 capturing으로 나뉜다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이것은 DOM 계층구조에 따른 이벤트 추출 방식으로,&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;bubbling의 경우 가장 하위 구조의 이벤트부터 처리하고&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;capturing의 경우 가장 상위 구조의 이벤트부터 처리한다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이에 대한 예를 들어보자.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;&lt;/p&gt;
&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;
&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;lt;div onclick=&quot;alert(&#039;1&#039;)&quot;&amp;gt;&amp;lt;div onclick=&quot;alert(&#039;2&#039;)&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/font&gt;&lt;/div&gt;
&lt;/font&gt;&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#000000&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이렇게 영역을 계층구조로 잡아놓고, div 영역을 클릭하면 어떻게 될까 ?!&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;bubbling 방식의 경우, 2가 먼저 뜨고 1이 다음에 뜬다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;capturing 방식의 경우, 1이 먼저 뜨고 2가 다음에 뜬다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이제 bubbling과 capturing의 차이가 어느정도 이해가 될 것이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트 핸들러&lt;/strong&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이제 실질적으로 이벤트를 어떻게 객체에 추가하는지 알아보자.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트를 객체에 추가하는 방식은 두 가지가 있다. (고전방식, 리스너)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;고전방식의 이벤트는 매우 직관적이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.onclick = fnHandle과 같이 객체의 하위 element로 이벤트를 설정하면 된다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;고전방식의 단점은, 한 객체에 단 하나의 이벤트 핸들러밖에 등록하지 못한다는 것.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;만약 사용자가 다음과 같이 이벤트 핸들러를 두 번 등록하면,&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;새로운 핸들러 함수가 이전 핸들러 함수를 덮어쓰도록 처리된다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.onclick = fnHandle1&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.onclick = fnHandle2&lt;/font&gt;&lt;/div&gt;
&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이제 리스너 방식에 대해 살펴본다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이 방식의 단점이라면, IE의 경우에만 함수 이름이 다르다는 것이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;하지만 약간의 꼼수를 더해서 처리해주도록 하면 아무런 문제가 없다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트를 등록하는 함수는 다음과 같다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;&lt;font color=&quot;#ff0000&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;// 인터넷 익스플로러(IE)의 경우 이벤트 등록/삭제&lt;/font&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.attachEvent(&quot;name_of_event&quot;, fnHandle)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.detachEvent(&quot;name_of_event&quot;, fnHandle)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#ff0000&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;// 그외 브라우저의 경우 이벤트 등록/삭제&lt;/font&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.addEventListener(&quot;name_of_event&quot;, fnHandle, capture)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;obj.removeEventListener(&quot;name_of_event&quot;, fnHandle, capture)&lt;/font&gt;&lt;/div&gt;
&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;각 인자들에 대해서 설명하자면, name_of_event는 이벤트 종류이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;fnHandle은 이벤트가 발생했을 때 처리할 함수(핸들러)이고,&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;마지막 인자인 capture는 capturing 방식을 사용할 것인지의 여부를 결정한다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;capture 인자는 입력하지 않아도 상관없지만(기본값 false: bubbling),&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;만약 입력했을 경우, add와 remove에서의 capture 여부를 맞춰주어야 한다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;그렇지 않는다면 이벤트 리스너에서 함수가 제대로 제거되지 않는다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;다음은 이벤트를 등록하는 예제이다. (모든 브라우저에서 동작한다)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;var fnClick1 = function() { alert(&#039;1 clicked&#039;); }&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;var fnClick2 = function() { alert(&#039;2 clicked&#039;); }&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;var odiv = document.getElementById(&#039;div_box&#039;);&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#ff0000&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;// 브라우저가 IE가 아닌 경우 처리&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;if(odiv.addEventListener)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; odiv.addEventListener(&quot;onclick&quot;, fnClick1);&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#ff0000&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;// 브라우저가 IE인 경우 처리&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;else&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; odiv.attachEvent(&quot;onclick&quot;, fnClick2);&lt;/font&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/div&gt;
&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;위 예제에서 odiv를 클릭하면, IE인 경우 2 clicked가, 아닌 경우 1 clicked가 뜬다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트 객체&lt;/strong&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트 객체를 사용해서 어떤 이벤트가 어떻게 발생했는지 여부를 알 수 있다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이 경우에도 인터넷 익스플로러(IE)와 타 브라우저간에 차이점이 존재한다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이래저래 IE는 자바스크립트 코더에게는 골치덩어리다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;다음은 이벤트 객체의 속성(properties) 목록이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;altKey&lt;/strong&gt;&amp;nbsp;ALT키가 눌려있는지의 여부를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;bubbles&lt;/strong&gt;&amp;nbsp;이벤트 작동방식이 bubbling인지 여부를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;button&lt;/strong&gt;&amp;nbsp;마우스의 어떤 버튼이 눌렸는지를 코드로 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 0 아무런 버튼도 눌리지 않음&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 1 왼쪽 버튼이 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 2 오른쪽 버튼이 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 3 왼쪽과 오른쪽 버튼이 동시에 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 4 가운데 버튼이 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 5 왼쪽과 가운데 버튼이 동시에 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 6 오른쪽과 가운데 버튼이 동시에 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 7 왼쪽과 오른쪽, 그리고 가운데 버튼이 동시에 눌림&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;cancellable&lt;/strong&gt;&amp;nbsp;이벤트가 취소되었는지 여부를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;cancelBubble&lt;/strong&gt;&amp;nbsp;이벤트 bubbling이 취소되었는지 여부를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;charCode&lt;/strong&gt;&amp;nbsp;입력된 키의 유니코드 값을 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;clientX&lt;/strong&gt;&amp;nbsp;브라우저 영역에서의 마우스 X좌표 위치를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;clientY&lt;/strong&gt;&amp;nbsp;브라우저 영역에서의 마우스 Y좌표 위치를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;ctrlKey&lt;/strong&gt;&amp;nbsp;CTRL 키가 눌려있는지의 여부를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;currentTarget&lt;/strong&gt;&amp;nbsp;이벤트가 수행되고 있는 대상 객체를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;detail&lt;/strong&gt;&amp;nbsp;마우스 버튼이 클릭된 횟수를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;eventPhase&lt;/strong&gt;&amp;nbsp;이벤트 처리 상황을 코드로 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 0 capturing 처리 상황&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 1 이벤트 처리 대상에 위치함&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; 2 bubbling 처리 상황&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;isChar&lt;/strong&gt;&amp;nbsp;입력된 키가 문자인지 여부를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;keyCode&lt;/strong&gt;&amp;nbsp;입력된 키의 키코드 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;offsetX&lt;/strong&gt;&amp;nbsp;이벤트 대상 객체에서의 상대적 마우스 X좌표 위치를 반환 (IE만 지원)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;offsetY&lt;/strong&gt;&amp;nbsp;이벤트 대상 객체에서의 상대적 마우스 Y좌표 위치를 반환 (IE만 지원)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;pageX&lt;/strong&gt;&amp;nbsp;브라우저 페이지에서의 상대적 마우스 X좌표 위치를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;pageY&lt;/strong&gt;&amp;nbsp;브라우저 페이지에서의 상대적 마우스 Y좌표 위치를 반환 (IE 지원 안함)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;repeat&lt;/strong&gt;&amp;nbsp;키보드 이벤트 발생시 키가 여러번 눌렸는지 여부 반환 (IE만 지원)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;screenX&lt;/strong&gt;&amp;nbsp;전체 모니터 스크린에서의 마우스 X좌표 위치를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;screenY&lt;/strong&gt;&amp;nbsp;전체 모니터 스크린에서의 마우스 Y좌표 위치를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;shiftKey&lt;/strong&gt;&amp;nbsp;SHIFT 키가 눌려있는지의 여부를 반환&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;srcElement&lt;/strong&gt;&amp;nbsp;currentTarget과 같은 기능 (IE만 지원)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;type&lt;/strong&gt;&amp;nbsp;발생한 이벤트의 이름&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;x&lt;/strong&gt;&amp;nbsp;이벤트 대상 객체의 부모 객체에서의 상대적 마우스 X좌표 위치를 반환 (IE만 지원)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;y&lt;/strong&gt;&amp;nbsp;이벤트 대상 객체의 부모 객체에서의 상대적 마우스 Y좌표 위치를 반환 (IE만 지원)&lt;/font&gt;&lt;/div&gt;
&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;참고로, Opera 브라우저의 경우 키보드 이벤트에서 특정 키를 제대로 읽지 못한다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;예를들면, SHIFT, CTRL, ALT 키의 입력을 잘 인식하지 못하는 버그가 있다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;(특히 ALT키는 아예 인식을 전혀 하지 않는다고 한다)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트 객체를 핸들러 함수에서 얻는 방법은 다음과 같다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;function fnHandle(oEvent)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;{&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; if(oEvent.type == &#039;click&#039;)&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&amp;nbsp; &amp;nbsp; alert(&#039;clicked&#039;);&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;}&lt;/font&gt;&lt;/div&gt;
&lt;p style=&quot;margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;즉, 함수에 oEvent 인자를 넣어주면 이벤트 발생시 자동으로 객체가 할당된다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;이벤트의 종류&lt;/strong&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;보통 이벤트의 경우, 마우스와 키보드 이벤트가 대부분이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;시간(timer) 또는 주기(interval) 이벤트는 관련 포스팅을 참조하기 바란다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;다음은 이벤트의 종류들을 나열한 것이다.&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-color: rgb(228, 228, 228); &quot;&gt;&lt;font color=&quot;#003366&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#006699&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;마우스 이벤트&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;click&lt;/strong&gt;&amp;nbsp;마우스 버튼 클릭시 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;dblclick&lt;/strong&gt;&amp;nbsp;마우스 버튼 더블클릭시 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;mousedown&lt;/strong&gt;&amp;nbsp;마우스 버튼을 눌렀을 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;mouseup&lt;/strong&gt;&amp;nbsp;마우스 버튼을 눌렀다 뗐을 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;mouseover&lt;/strong&gt;&amp;nbsp;마우스 커서를 올려놓았을 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;mouseout&lt;/strong&gt;&amp;nbsp;마우스 커서를 올려놓았다가 밖으로 나갈 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;mousemove&lt;/strong&gt;&amp;nbsp;마우스 커서를 움직일 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#006699&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;키보드 이벤트&lt;/font&gt;&lt;/strong&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;keydown&lt;/strong&gt;&amp;nbsp;키보드가 눌려있을 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;keyup&lt;/strong&gt;&amp;nbsp;키보드가 눌려있다가 떼는 순간 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;keypress&lt;/strong&gt;&amp;nbsp;키보다가 눌리는 순간 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;font color=&quot;#006699&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;HTML 이벤트&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;/font&gt;load&lt;/strong&gt;&amp;nbsp;페이지를 전부 다 읽어들인 후에 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;unload&lt;/strong&gt;&amp;nbsp;페이지로부터 빠져나갈 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;abort&lt;/strong&gt;&amp;nbsp;페이지를 읽다가 사용자의 중지 요청에 의해 중단되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;error&lt;/strong&gt;&amp;nbsp;페이지를 읽다가 오류에 의해 중단되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;select&lt;/strong&gt;&amp;nbsp;텍스트박스에서 사용자가 특정 문자나 문자열을 선택했을 때 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;change&lt;/strong&gt;&amp;nbsp;텍스트박스의 값이 변경되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;submit&lt;/strong&gt;&amp;nbsp;FORM에서의 submit 버튼이 클릭되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;reset&lt;/strong&gt;&amp;nbsp;FORM에서의 reset 버튼이 클릭되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;resize&lt;/strong&gt;&amp;nbsp;윈도우(window)나 프레임(frame) 크기가 변경되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;scroll&lt;/strong&gt;&amp;nbsp;스크롤바가 스크롤되는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;focus&lt;/strong&gt;&amp;nbsp;특정 객체(element)에 포커스가 주어지는 경우 발생&lt;br style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;&lt;strong style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; &quot;&gt;blur&lt;/strong&gt;&amp;nbsp;특정 객체(element)에 포커스가 있다가 사라지는 경우 발생&lt;/font&gt;&lt;/div&gt;
&lt;/span&gt;</description>
			<category>web</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/305</guid>
			<comments>http://mwmw7.tistory.com/305#entry305comment</comments>
			<pubDate>Thu, 27 Oct 2011 16:55:47 +0900</pubDate>
		</item>
		<item>
			<title>javascript event</title>
			<link>http://mwmw7.tistory.com/304</link>
			<description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#039;malgun gothic&#039;, nanumgothic, Verdana, Arial, sans-serif; font-size: 13px; letter-spacing: 1px; line-height: 20px; word-spacing: 1px; background-color: rgb(255, 255, 255); &quot;&gt;&lt;div class=&quot;titleWrap&quot;&gt;
&lt;h2&gt;&lt;a href=&quot;http://www.egloos.com/entry/Event-Bubbling-%EC%9D%B4%EB%B2%A4%ED%8A%B8-%EB%B2%84%EB%B8%94%EB%A7%81&quot; style=&quot;color: rgb(102, 143, 0); text-decoration: none; &quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 51); &quot;&gt;Event Bubbling - 이벤트 버블링&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;span class=&quot;category&quot;&gt;&lt;a href=&quot;http://www.egloos.com/category/Programing/Javascript&quot; style=&quot;color: rgb(102, 143, 0); text-decoration: none; &quot;&gt;Programing/Javascript&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;date&quot;&gt;&lt;span style=&quot;font-family: Tahoma; color: rgb(136, 136, 136); font-size: 11px; &quot;&gt;2009/06/17 11:43&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;article&quot;&gt;&lt;br /&gt;
자바스크립트의 이벤트 처리는 생각보다 단순하지 않다.&lt;br /&gt;
&lt;br /&gt;&amp;lt;div onclick=&quot;say()&quot;&amp;gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 4em; &quot;&gt;&amp;lt;img src=&quot;someImage.jpg&quot;&amp;nbsp; onclick=&quot;hello()&quot;&amp;gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&lt;br /&gt;이러한 DOM 이 있을 경우, click 시 하위의 hello부터 상위의 say까지 순서대로 실행되는데,&lt;br /&gt;
마치 이런 경우를 샴페인 플루트의 거품처럼 퍼져간다고 하여 이벤트 버블링이라고 부른다.&lt;br /&gt;
&lt;br /&gt;하지만 때때로 버블링을 막고 싶을 경우가 있다.&lt;br /&gt;
&lt;br /&gt;위의 예제에서 인사만 하고 싶었는데(hello) 말까지 건네는(say) 상황이 마음에 들지 않는다.&lt;br /&gt;
&lt;br /&gt;이걸 멈추려면 다음과 같이 작업한다.&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;dp-highlighter&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;&lt;div class=&quot;tools&quot;&gt;
&lt;a href=&quot;http://www.egloos.com/egloo/insert.php?eid=e0069852#&quot; style=&quot;color: rgb(102, 143, 0); text-decoration: none; &quot;&gt;&lt;span style=&quot;color: rgb(160, 160, 160); &quot;&gt;view plain&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://www.egloos.com/egloo/insert.php?eid=e0069852#&quot; style=&quot;color: rgb(102, 143, 0); text-decoration: none; &quot;&gt;&lt;span style=&quot;color: rgb(160, 160, 160); &quot;&gt;copy to clipboard&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://www.egloos.com/egloo/insert.php?eid=e0069852#&quot; style=&quot;color: rgb(102, 143, 0); text-decoration: none; &quot;&gt;&lt;span style=&quot;color: rgb(160, 160, 160); &quot;&gt;print&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://www.egloos.com/egloo/insert.php?eid=e0069852#&quot; style=&quot;color: rgb(102, 143, 0); text-decoration: none; &quot;&gt;&lt;span style=&quot;color: rgb(160, 160, 160); &quot;&gt;?&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;ol class=&quot;dp-c&quot;&gt;
&lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;keyword&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 102, 153); &quot;&gt;function&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;hello(event) &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;{ &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;&lt;span style=&quot;color: rgb(0, 130, 0); &quot;&gt;//&amp;nbsp;IE&amp;nbsp;일&amp;nbsp;경우&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 102, 153); &quot;&gt;if&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;(!event)&amp;nbsp;window.event.cancelBubble(&lt;/span&gt;&lt;span class=&quot;keyword&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 102, 153); &quot;&gt;true&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt;&lt;span style=&quot;color: rgb(0, 130, 0); &quot;&gt;//&amp;nbsp;표준&amp;nbsp;브라우저일&amp;nbsp;경우&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(0, 102, 153); &quot;&gt;else&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;event.stopPropagation(); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert(&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255); &quot;&gt;&quot;hello&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot;&gt;&lt;span&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
버블링이 훌륭하게 막아질 것이다.&lt;br /&gt;
&lt;br /&gt;여기서 한번 더 생각해보아야 할 문제가 있다.&lt;br /&gt;
&lt;br /&gt;사실 버블링 이전에는 캡쳐라는 단계가 하나 더 있다.&lt;br /&gt;
&lt;br /&gt;이벤트가 일어나면 DOM 트리의 루트에서 대상 엘리먼트까지 이벤트가 전파된다.&lt;br /&gt;
그 후 다시 루트로 올라가며 이벤트가 전파되게 된다.&lt;br /&gt;
&lt;br /&gt;전 단계를&amp;nbsp;&lt;strong&gt;캡쳐&lt;/strong&gt;, 그 다음을&amp;nbsp;&lt;strong&gt;버블&lt;/strong&gt;이라고 부른다.&lt;br /&gt;
하지만 현재 IE는 캡처이벤트를 지원히지 않고 있다.&lt;br /&gt;
&lt;br /&gt;스크립트에서 흔히 이벤트를 붙일때 사용하는 함수가&lt;br /&gt;
&lt;br /&gt;addEventListner() // 표준 브라우저&lt;br /&gt;
attatchEvent() // IE&lt;br /&gt;
&lt;br /&gt;가 있는데 이것도 IE가 캡처를 지원하지 않아 벌어진 문제이다.&lt;br /&gt;
&lt;br /&gt;ex) addEventListner()의 마지막 인자로는 이벤트가 캡처인지 버블인지 설정하는 플래그 변수가 존재한다.&lt;/div&gt;
&lt;/span&gt;</description>
			<category>web</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/304</guid>
			<comments>http://mwmw7.tistory.com/304#entry304comment</comments>
			<pubDate>Thu, 27 Oct 2011 16:53:08 +0900</pubDate>
		</item>
		<item>
			<title>jquery plugin</title>
			<link>http://mwmw7.tistory.com/303</link>
			<description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 20px; background-color: rgb(250, 250, 250); &quot;&gt;&lt;h1 class=&quot;firstHeading&quot; style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.4em; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px !important; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.9em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: solid !important; border-bottom-color: rgb(187, 187, 187) !important; color: rgb(34, 34, 34); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Plugins/Authoring&lt;/h1&gt;&lt;div id=&quot;bodyContent&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;
&lt;div id=&quot;contentSub&quot; style=&quot;padding-top: 10px !important; padding-right: 0px !important; padding-bottom: 10px !important; padding-left: 0px !important; margin-top: 0px; margin-right: 0px; margin-bottom: 1.4em; margin-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-style: italic; line-height: 1.2em; color: rgb(125, 125, 125); width: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/div&gt;
&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;So you&#039;ve become comfortable with jQuery and would like to learn how to write your own plugins. Great! You&#039;re in the right spot. Extending jQuery with plugins and methods is very powerful and can save you and your peers a lot of development time by abstracting your most clever functions into plugins. This post will outline the basics, best practices, and common pitfalls to watch out for as you begin writing your plugin.&lt;/p&gt;
&lt;table id=&quot;toc&quot; class=&quot;toc&quot; summary=&quot;Contents&quot; style=&quot;padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: black; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(170, 170, 170); border-right-color: rgb(170, 170, 170); border-bottom-color: rgb(170, 170, 170); border-left-color: rgb(170, 170, 170); background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;tbody style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;tr style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;
&lt;td style=&quot;padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;div id=&quot;toctitle&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; text-align: center; background-position: initial initial; background-repeat: initial initial; &quot;&gt;
&lt;h2 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 0.6em; margin-left: 0px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; color: rgb(51, 51, 51); font-weight: bold; display: inline; border-top-style: none; border-right-style: none; border-left-style: none; border-width: initial; border-color: initial; border-width: initial; border-color: initial; text-transform: uppercase; border-width: initial; border-color: initial; border-width: initial; border-color: initial; background-position: initial initial; background-repeat: initial initial; &quot;&gt;CONTENTS&lt;/h2&gt;&lt;/div&gt;
&lt;ul style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; list-style-type: none; list-style-position: initial; list-style-image: none; line-height: 1.5em; text-align: left; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Getting_Started&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;1&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Getting Started&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Context&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;2&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Context&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#The_Basics&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;3&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;The Basics&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Maintaining_Chainability&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;4&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Maintaining Chainability&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Defaults_and_Options&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;5&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Defaults and Options&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Namespacing&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;6&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Namespacing&lt;/span&gt;&lt;/a&gt;&lt;ul style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; list-style-type: none; list-style-position: initial; list-style-image: none; line-height: 1.5em; text-align: left; background-position: initial initial; background-repeat: initial initial; &quot;&gt;
&lt;li class=&quot;toclevel-2&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Plugin_Methods&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;6.1&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Plugin Methods&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Events&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;6.2&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Events&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Data&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;6.3&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Data&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Plugins/Authoring#Summary_and_Best_Practices&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;span class=&quot;tocnumber&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;7&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;toctext&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Summary and Best Practices&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=1&quot; title=&quot;Edit section: Getting Started&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Getting_Started&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Getting Started&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;To write a jQuery plugin, start by adding a new function property to the jQuery.fn object where the name of the property is the name of your plugin:&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;jQuery.fn.myPlugin = function() {

  // Do your awesome plugin stuff here

};
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;But wait! Where&#039;s my awesome dollar sign that I know and love? It&#039;s still there, however to make sure that your plugin doesn&#039;t collide with other libraries that might use the dollar sign, it&#039;s a best practice to pass jQuery to a self executing function (closure) that maps it to the dollar sign so it can&#039;t be overwritten by another library in the scope of its execution.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ) {
  $.fn.myPlugin = function() {
  
    // Do your awesome plugin stuff here

  };
})( jQuery );
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Ah, that&#039;s better. Now within that closure, we can use the dollar sign in place of jQuery as much as we like.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=2&quot; title=&quot;Edit section: Context&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Context&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Context&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Now that we have our shell we can start writing our actual plugin code. But before we do that, I&#039;d like to say a word about context. In the immediate scope of the plugin function, the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword refers to the jQuery object the plugin was invoked on. This is a common slip up due to the fact that in other instances where jQuery accepts a callback, the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword refers to the native DOM element. This often leads to developers unnecessarily wrapping the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword (again) in the jQuery function.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  $.fn.myPlugin = function() {
  
    // there&#039;s no need to do $(this) because
    // &quot;this&quot; is already a jquery object

    // $(this) would be the same as $($(&#039;#element&#039;));
        
    this.fadeIn(&#039;normal&#039;, function(){

      // the this keyword is a DOM element

    });

  };
})( jQuery );
&lt;/pre&gt;&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;$(&#039;#element&#039;).myPlugin();
&lt;/pre&gt;&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;
[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=3&quot; title=&quot;Edit section: The Basics&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;The_Basics&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;The Basics&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Now that we understand the context of jQuery plugins, let&#039;s write a plugin that actually does something.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  $.fn.maxHeight = function() {
  
    var max = 0;

    this.each(function() {
      max = Math.max( max, $(this).height() );
    });

    return max;
  };
})( jQuery );
&lt;/pre&gt;&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;var tallest = $(&#039;div&#039;).maxHeight(); // Returns the height of the tallest div
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;This is a simple plugin that leverages&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/action/edit/Manipulation/height&quot; class=&quot;new&quot; title=&quot;Manipulation/height&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;.height()&lt;/a&gt;&lt;/code&gt;&amp;nbsp;to return the height of the tallest div in the page.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=4&quot; title=&quot;Edit section: Maintaining Chainability&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Maintaining_Chainability&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Maintaining Chainability&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;The previous example returns an integer value of the tallest div on the page, but often times the intent of a plugin is simply modify the collection of elements in some way, and pass them along to the next method in the chain. This is the beauty of jQuery&#039;s design and is one of the reasons jQuery is so popular. So to maintain chainability in a plugin, you must make sure your plugin returns the&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  $.fn.lockDimensions = function( type ) {  

    return this.each(function() {

      var $this = $(this);

      if (&amp;nbsp;!type || type == &#039;width&#039; ) {
        $this.width( $this.width() );
      }

      if (&amp;nbsp;!type || type == &#039;height&#039; ) {
        $this.height( $this.height() );
      }

    });

  };
})( jQuery );
&lt;/pre&gt;&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;$(&#039;div&#039;).lockDimensions(&#039;width&#039;).css(&#039;color&#039;, &#039;red&#039;);
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Because the plugin returns the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword in its immediate scope, it maintains chainability and the jQuery collection can continue to be manipulated by jQuery methods, such as&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/CSS/css&quot; title=&quot;CSS/css&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;.css&lt;/a&gt;&lt;/code&gt;. So if your plugin doesn&#039;t return an intrinsic value, you should always return the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword in the immediate scope of the plugin function. Also, as you might assume, arguments you pass in your plugin invocation get passed to the immediate scope of the plugin function. So in the previous example, the string &#039;width&#039; becomes the type argument for the plugin function.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=5&quot; title=&quot;Edit section: Defaults and Options&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Defaults_and_Options&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Defaults and Options&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;For more complex and customizable plugins that provide many options, it&#039;s a best practice to have default settings that can get extended (using&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;a href=&quot;http://docs.jquery.com/Utilities/jQuery.extend&quot; title=&quot;Utilities/jQuery.extend&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;$.extend&lt;/a&gt;&lt;/code&gt;) when the plugin is invoked. So instead of calling a plugin with a large number of arguments, you can call it with one argument which is an object literal of the settings you would like to override. Here&#039;s how you do it.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  $.fn.tooltip = function( options ) {  

    var settings = {
      &#039;location&#039;        &amp;nbsp;: &#039;top&#039;,
      &#039;background-color&#039;&amp;nbsp;: &#039;blue&#039;
    };

    return this.each(function() {        
      // If options exist, lets merge them
      // with our default settings
      if ( options ) { 
        $.extend( settings, options );
      }

      // Tooltip plugin code here

    });

  };
})( jQuery );
&lt;/pre&gt;&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;$(&#039;div&#039;).tooltip({
  &#039;location&#039;&amp;nbsp;: &#039;left&#039;
});
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;In this example, after calling the tooltip plugin with the given options, the default location setting gets overridden to become&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;&#039;left&#039;&lt;/code&gt;, while the background-color setting remains the default&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;&#039;blue&#039;&lt;/code&gt;. So the final settings object ends up looking like this:&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;{
  &#039;location&#039;        &amp;nbsp;: &#039;left&#039;,
  &#039;background-color&#039;&amp;nbsp;: &#039;blue&#039;
}
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;This is a great way to offer a highly configurable plugin without requiring the developer to define all available options.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=6&quot; title=&quot;Edit section: Namespacing&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Namespacing&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Namespacing&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Properly namespacing your plugin is a very important part of plugin development. Namespacing correctly assures that your plugin will have a very low chance of being overwritten by other plugins or code living on the same page. Namespacing also makes your life easier as a plugin developer because it helps you keep better track of your methods, events and data.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=7&quot; title=&quot;Edit section: Plugin Methods&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Plugin_Methods&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h4 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.2em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(68, 68, 68); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Plugin Methods&lt;/h4&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Under no circumstance should a single plugin ever claim more than one namespace in the&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;jQuery.fn&lt;/code&gt;&amp;nbsp;object.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  $.fn.tooltip = function( options ) { // THIS };
  $.fn.tooltipShow = function( ) { // IS   };
  $.fn.tooltipHide = function( ) { // BAD  };
  $.fn.tooltipUpdate = function( content ) { //&amp;nbsp;!!!  };

})( jQuery );
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;This is a discouraged because it clutters up the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;$.fn&lt;/code&gt;&amp;nbsp;namespace. To remedy this, you should collect all of your plugin&#039;s methods in an object literal and call them by passing the string name of the method to the plugin.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  var methods = {
    init&amp;nbsp;: function( options ) { // THIS },
    show&amp;nbsp;: function( ) { // IS   },
    hide&amp;nbsp;: function( ) { // GOOD },
    update&amp;nbsp;: function( content ) { //&amp;nbsp;!!! }
  };

  $.fn.tooltip = function( method ) {
    
    // Method calling logic
    if ( methods[method] ) {
      return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
    } else if ( typeof method === &#039;object&#039; ||&amp;nbsp;! method ) {
      return methods.init.apply( this, arguments );
    } else {
      $.error( &#039;Method &#039; +  method + &#039; does not exist on jQuery.tooltip&#039; );
    }    
  
  };

})( jQuery );
&lt;/pre&gt;&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;$(&#039;div&#039;).tooltip(); // calls the init method
$(&#039;div&#039;).tooltip({  // calls the init method
  foo&amp;nbsp;: &#039;bar&#039;
});
$(&#039;div&#039;).tooltip(&#039;hide&#039;); // calls the hide method
$(&#039;div&#039;).tooltip(&#039;update&#039;, &#039;This is the new tooltip content!&#039;); // calls the update method
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;This type of plugin architecture allows you to encapsulate all of your methods in the plugin&#039;s parent closure, and call them by first passing the string name of the method, and then passing any additional parameters you might need for that method. This type of method encapsulation and architecture is a standard in the jQuery plugin community and it used by countless plugins, including the plugins and widgets in&amp;nbsp;&lt;a href=&quot;http://jqueryui.com/&quot; class=&quot;external text&quot; title=&quot;http://jqueryui.com/&quot; style=&quot;padding-top: 0px; padding-right: 13px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: url(http://docs.jquery.com/skins/monobook/external.png); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(51, 102, 187); text-decoration: underline; background-position: 100% 50%; background-repeat: no-repeat no-repeat; &quot;&gt;jQueryUI&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=8&quot; title=&quot;Edit section: Events&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Events&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h4 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.2em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(68, 68, 68); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Events&lt;/h4&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;A lesser known feature of the&amp;nbsp;&lt;a href=&quot;http://docs.jquery.com/Events/bind&quot; title=&quot;Events/bind&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;bind&lt;/a&gt;&amp;nbsp;method is that is allows for namespacing of bound events. If your plugin binds an event, its a good practice to namespace it. This way, if you need to&amp;nbsp;&lt;a href=&quot;http://docs.jquery.com/Events/unbind&quot; title=&quot;Events/unbind&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;unbind&lt;/a&gt;&amp;nbsp;it later, you can do so without interfering with other events that might have been bound to the same type of event. You can namespace your events by appending “.&amp;lt;namespace&amp;gt;” to the type of event you&#039;re binding.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  var methods = {
     init&amp;nbsp;: function( options ) {

       return this.each(function(){
         $(window).bind(&#039;resize.tooltip&#039;, methods.reposition);
       });

     },
     destroy&amp;nbsp;: function( ) {

       return this.each(function(){
         $(window).unbind(&#039;.tooltip&#039;);
       })

     },
     reposition&amp;nbsp;: function( ) { // ... },
     show&amp;nbsp;: function( ) { // ... },
     hide&amp;nbsp;: function( ) { // ... },
     update&amp;nbsp;: function( content ) { // ...}
  };

  $.fn.tooltip = function( method ) {
    
    if ( methods[method] ) {
      return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
    } else if ( typeof method === &#039;object&#039; ||&amp;nbsp;! method ) {
      return methods.init.apply( this, arguments );
    } else {
      $.error( &#039;Method &#039; +  method + &#039; does not exist on jQuery.tooltip&#039; );
    }    
  
  };

})( jQuery );
&lt;/pre&gt;&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;$(&#039;#fun&#039;).tooltip();
// Some time later...
$(&#039;#fun&#039;).tooltip(&#039;destroy&#039;);
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;In this example, when the tooltip is initialized with the init method, it binds the reposition method to the resize event of the window under the namespace &#039;tooltip&#039;. Later, if the developer needs to destroy the tooltip, we can unbind the events bound by the plugin by passing its namespace, in this case &#039;tooltip&#039;, to the unbind method. This allows us to safely unbind plugin events without accidentally unbinding events that may have been bound outside of the plugin.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=9&quot; title=&quot;Edit section: Data&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Data&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h4 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.2em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(68, 68, 68); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Data&lt;/h4&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Often times in plugin development, you may need to maintain state or check if your plugin has already been initialized on a given element. Using jQuery&#039;s&amp;nbsp;&lt;a href=&quot;http://docs.jquery.com/action/edit/Utilities/data&quot; class=&quot;new&quot; title=&quot;Utilities/data&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;data&lt;/a&gt;&amp;nbsp;method is a great way to keep track of variables on a per element basis. However, rather than keeping track of a bunch of separate data calls with different names, it&#039;s best to use a single object literal to house all of your variables, and access that object by a single data namespace.&lt;/p&gt;
&lt;pre style=&quot;padding-top: 5px !important; padding-right: 5px !important; padding-bottom: 5px !important; padding-left: 5px !important; margin-top: 0.8em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 11px !important; vertical-align: baseline; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(245, 244, 238) !important; color: rgb(6, 38, 60) !important; border-top-style: dotted !important; border-right-style: dotted !important; border-bottom-style: dotted !important; border-left-style: dotted !important; border-top-color: rgb(221, 221, 221) !important; border-right-color: rgb(221, 221, 221) !important; border-bottom-color: rgb(221, 221, 221) !important; border-left-color: rgb(221, 221, 221) !important; line-height: 1.6 !important; overflow-x: auto; overflow-y: auto; text-align: left; font-family: monaco, monospace; float: none; width: auto; border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-left-radius: 3px 3px; &quot;&gt;(function( $ ){

  var methods = {
     init&amp;nbsp;: function( options ) {

       return this.each(function(){
         
         var $this = $(this),
             data = $this.data(&#039;tooltip&#039;),
             tooltip = $(&#039;&amp;lt;div /&amp;gt;&#039;, {
               text&amp;nbsp;: $this.attr(&#039;title&#039;)
             });
         
         // If the plugin hasn&#039;t been initialized yet
         if (&amp;nbsp;! data ) {
         
           /*
             Do more setup stuff here
           */

           $(this).data(&#039;tooltip&#039;, {
               target&amp;nbsp;: $this,
               tooltip&amp;nbsp;: tooltip
           });

         }
       });
     },
     destroy&amp;nbsp;: function( ) {

       return this.each(function(){

         var $this = $(this),
             data = $this.data(&#039;tooltip&#039;);

         // Namespacing FTW
         $(window).unbind(&#039;.tooltip&#039;);
         data.tooltip.remove();
         $this.removeData(&#039;tooltip&#039;);

       })

     },
     reposition&amp;nbsp;: function( ) { // ... },
     show&amp;nbsp;: function( ) { // ... },
     hide&amp;nbsp;: function( ) { // ... },
     update&amp;nbsp;: function( content ) { // ...}
  };

  $.fn.tooltip = function( method ) {
    
    if ( methods[method] ) {
      return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
    } else if ( typeof method === &#039;object&#039; ||&amp;nbsp;! method ) {
      return methods.init.apply( this, arguments );
    } else {
      $.error( &#039;Method &#039; +  method + &#039; does not exist on jQuery.tooltip&#039; );
    }    
  
  };

})( jQuery );
&lt;/pre&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Using data helps you keep track of variables and state across method calls from your plugin. Namespacing your data into one object literal makes it easy to access all of your plugin&#039;s properties from one central location, as well as reducing the data namespace which allows for easy removal if need be.&lt;/p&gt;
&lt;div class=&quot;editsection&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; float: right; background-position: initial initial; background-repeat: initial initial; &quot;&gt;[&lt;a href=&quot;http://docs.jquery.com/action/edit/Plugins/Authoring?section=10&quot; title=&quot;Edit section: Summary and Best Practices&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;edit&lt;/a&gt;]&lt;/div&gt;
&lt;a name=&quot;Summary_and_Best_Practices&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; border-bottom-style: initial; border-bottom-color: initial; color: rgb(15, 103, 161); text-decoration: underline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/a&gt;&lt;h3 style=&quot;padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.17em; padding-left: 0px; margin-top: 0.3em; margin-right: 0px !important; margin-bottom: 0.3em; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: initial; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1.4em; vertical-align: baseline; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-family: &#039;Trebuchet MS&#039;, Verdana, Helvetica, Arial, sans-serif !important; letter-spacing: 0px; border-bottom-style: none; border-bottom-color: initial; color: rgb(51, 51, 51); font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;Summary and Best Practices&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 1.2em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 1.5 !important; &quot;&gt;Writing jQuery plugins allows you to make the most out of the library and abstract your most clever and useful functions out into reusable code that can save you time and make your development even more efficient. Here&#039;s a brief summary of the post and what to keep in mind when developing your next jQuery plugin:&lt;/p&gt;
&lt;ul style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0px; margin-left: 1.5em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; list-style-type: square; list-style-position: initial; list-style-image: url(http://docs.jquery.com/skins/monobook/bullet.gif); line-height: 1.5em; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;Always wrap your plugin in&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;(function( $ ){ // plugin goes here })( jQuery );&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;Don&#039;t redundantly wrap the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword in the immediate scope of your plugin&#039;s function&lt;/li&gt;
&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;Unless you&#039;re returning an intrinsic value from your plugin, always have your plugin&#039;s function return the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword to maintain chainability.&lt;/li&gt;
&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;Rather than requiring a lengthy amount of arguments, pass your plugin settings in an object literal that can be extended over the plugin&#039;s defaults.&lt;/li&gt;
&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;Don&#039;t clutter the&amp;nbsp;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;jQuery.fn&lt;/code&gt;&amp;nbsp;object with more than one namespace per plugin.&lt;/li&gt;
&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;Always namespace your methods, events and data.&lt;/li&gt;
&lt;li style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em !important; margin-right: 0px !important; margin-bottom: 0.5em !important; margin-left: 0px !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: initial !important; line-height: 1.5 !important; &quot;&gt;&lt;code style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px !important; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(249, 249, 249); background-position: initial initial; background-repeat: initial initial; &quot;&gt;jQuery.fn&lt;/code&gt;&amp;nbsp;is pronounced jQuery effin&#039;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
&lt;/span&gt;</description>
			<category>jQuery</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/303</guid>
			<comments>http://mwmw7.tistory.com/303#entry303comment</comments>
			<pubDate>Thu, 27 Oct 2011 16:08:45 +0900</pubDate>
		</item>
		<item>
			<title>jquery widget</title>
			<link>http://mwmw7.tistory.com/302</link>
			<description>http://wiki.jqueryui.com/w/page/12138135/Widget%20factory</description>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/302</guid>
			<comments>http://mwmw7.tistory.com/302#entry302comment</comments>
			<pubDate>Thu, 27 Oct 2011 10:17:37 +0900</pubDate>
		</item>
		<item>
			<title>m_factory frame</title>
			<link>http://mwmw7.tistory.com/301</link>
			<description>&lt;div&gt;
&amp;lt;html&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;lt;head&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;jquery.mobile-1.0rc2.css&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;script src=&quot;jquery-1.6.4.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;script src=&quot;jquery.mobile-1.0rc2.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;!--link href=&quot;http://code.jquery.com/mobile/latest/jquery.mobile.min.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;script src=&quot;http://code.jquery.com/jquery-1.6.4.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;script src=&quot;http://code.jquery.com/mobile/latest/jquery.mobile.min.js&quot;--&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;style&amp;gt;&lt;/div&gt;
&lt;div&gt;.left &amp;nbsp;{ &amp;nbsp;float : left;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin :0px;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; padding :0px;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;.right {&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float : right;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;#left {&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width : 40%;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;#right {&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width : 58%;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;&amp;lt;/style&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;body&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;lt;div data-role=&quot;page&quot; id=&quot;foo&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&amp;lt;div data-role=&quot;header&quot;&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h1&amp;gt;Multi-page&amp;lt;/h1&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&amp;lt;div data-role=&quot;content&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;left&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;left&quot; class=&quot;left&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul data-role=&quot;listview&quot; data-inset=&quot;true&quot; data-theme=&quot;c&quot; data-dividertheme=&quot;f&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&amp;lt;li data-role=&quot;list-divider&quot;&amp;gt;Overview&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;acura.html&quot;&amp;gt;Acura&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;audi.html&quot;&amp;gt;Audi&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;bmw.html&quot;&amp;gt;BMW&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;right&quot; class=&quot;right&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ul data-role=&quot;listview&quot; data-inset=&quot;true&quot; data-theme=&quot;c&quot; data-dividertheme=&quot;b&quot; &amp;nbsp;data-split-theme=&quot;a&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;img src=&quot;http://jquerymobile.com/demos/1.0rc2/docs/lists/images/album-bb.jpg&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;h3&amp;gt;Broken Bells&amp;lt;/h3&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;p&amp;gt;Broken Bells&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;Purchase album&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;img src=&quot;http://jquerymobile.com/demos/1.0rc2/docs/lists/images/album-bb.jpg&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;h3&amp;gt;Broken Bells&amp;lt;/h3&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;p&amp;gt;Broken Bells&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;Purchase album&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;img src=&quot;http://jquerymobile.com/demos/1.0rc2/docs/lists/images/album-bb.jpg&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;h3&amp;gt;Broken Bells&amp;lt;/h3&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;p&amp;gt;Broken Bells&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&amp;lt;a href=&quot;index.html&quot;&amp;gt;Purchase album&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&amp;lt;/li&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&amp;lt;div data-role=&quot;footer&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&amp;lt;h4&amp;gt;Page Footer&amp;lt;/h4&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;/div&amp;gt;&amp;lt;!-- /page popup --&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div id=&quot;__KO_DIC_LAYER__&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; position: fixed; z-index: 999999999; overflow-x: hidden; overflow-y: hidden; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(51, 51, 119); border-right-color: rgb(51, 51, 119); border-bottom-color: rgb(51, 51, 119); border-left-color: rgb(51, 51, 119); display: none; &quot;&gt;
&lt;iframe frameborder=&quot;0&quot; scrolling=&quot;yes&quot; style=&quot;width: 100%; height: 100%; background-color: rgb(255, 255, 255); &quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</description>
			<category>jQuery</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/301</guid>
			<comments>http://mwmw7.tistory.com/301#entry301comment</comments>
			<pubDate>Tue, 25 Oct 2011 14:48:19 +0900</pubDate>
		</item>
		<item>
			<title>교육 1024</title>
			<link>http://mwmw7.tistory.com/300</link>
			<description>&lt;div&gt;
gcc test.c a.out&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-v&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-c -&amp;gt; 현재 만들어진 *.c를 하나로 묶어 버리면된다.&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-o&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-S&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-On&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-I 헤더 파일 경로를 설정할때 사용한다.&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-L 라이브러리 있는 경로 명을 이야기해준다.&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-g 디버깅 할때 심볼릭 테이블을 만든다 jtag 장비를 사용해 디버깅할 때 사용된다&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-Wall -ansi&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;-D&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
.so 공유라이브러리&amp;nbsp;&lt;/div&gt;
&lt;div&gt;.a &amp;nbsp;정적라이브러리&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
gcc -c test02.c &amp;nbsp;-I../inc&lt;/div&gt;
&lt;div&gt;ar -r libtest.a &amp;nbsp;test01.o &amp;nbsp;test02.o&lt;/div&gt;
&lt;div&gt;gcc -o test test_main.c -I../inc ./libtest.a&amp;nbsp;&lt;/div&gt;
&lt;div&gt;gcc -o test test_main.c -I../inc -L../lib/ -ltest -&amp;gt; 라이브러리 경로 -L -ltest &amp;nbsp;.so 먼저 찾고 없으면 .a를 찾는다&lt;/div&gt;
&lt;div&gt;&amp;nbsp;gcc -Wall -ansi -o temp2 test_main.c &amp;nbsp;-I../inc -L../lib -ltest &amp;nbsp;ANSI 규격에 맞게 검사&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
gcc -fPIC -c test01.c test02.c &amp;nbsp;-I../inc&lt;/div&gt;
&lt;div&gt;gcc -shared -W1,soname,libtest.so.1 -o libtest.so.1.0.1 test01.o test02.o&lt;/div&gt;
&lt;div&gt;gcc -o test test_main.c &amp;nbsp;-I../inc -L../lib -ltest&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tftpboot/lib&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;#gdb&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
list, run, quit&lt;/div&gt;
&lt;div&gt;show args, set args&lt;/div&gt;
&lt;div&gt;break,&amp;nbsp;&lt;/div&gt;
&lt;div&gt;backtrace = bt =where = back&lt;/div&gt;
&lt;div&gt;info break, step, next, continue , print&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;
delete -&amp;gt; id 값&lt;/div&gt;
&lt;div&gt;clear &amp;nbsp; -&amp;gt; line number&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</description>
			<category>embedded</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/300</guid>
			<comments>http://mwmw7.tistory.com/300#entry300comment</comments>
			<pubDate>Mon, 24 Oct 2011 17:23:36 +0900</pubDate>
		</item>
		<item>
			<title>node.js install</title>
			<link>http://mwmw7.tistory.com/296</link>
			<description>&lt;a href=&quot;https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager&quot;&gt;https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager&lt;/a&gt;&lt;div id=&quot;__KO_DIC_LAYER__&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; position: fixed; z-index: 999999999; overflow-x: hidden; overflow-y: hidden; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(51, 51, 119); border-right-color: rgb(51, 51, 119); border-bottom-color: rgb(51, 51, 119); border-left-color: rgb(51, 51, 119); display: none; &quot;&gt;
&lt;iframe frameborder=&quot;0&quot; scrolling=&quot;yes&quot; style=&quot;width: 100%; height: 100%; background-color: rgb(255, 255, 255); &quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</description>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/296</guid>
			<comments>http://mwmw7.tistory.com/296#entry296comment</comments>
			<pubDate>Thu, 20 Oct 2011 16:14:41 +0900</pubDate>
		</item>
		<item>
			<title>jquery custom selector</title>
			<link>http://mwmw7.tistory.com/295</link>
			<description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 13px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;&lt;pre class=&quot;prettyprint lang-js&quot; style=&quot;padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-style: none; border-right-style: none; border-bottom-style: none; border-width: initial; border-color: initial; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(204, 204, 204); background-color: rgb(251, 251, 251); &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;expr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;:&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;].&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;test &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; index&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; meta&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; stack&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// obj - is a current DOM element&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// index - the current loop index in stack&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// meta - meta data about your selector&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// stack - stack of all elements to loop&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// Return true to include current element&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// Return false to explude current element&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;};&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// Usage:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;.someClasses:test&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;doSomething&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;();&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Let’s now create a very simple custom selector using the template above. Let’s say we want a custom jQuery selector that will return elements with nonempty&amp;nbsp;&lt;code style=&quot;background-color: rgb(246, 246, 246); &quot;&gt;rel&lt;/code&gt;&amp;nbsp;attribute.&lt;/p&gt;
&lt;pre class=&quot;prettyprint lang-js&quot; style=&quot;padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-style: none; border-right-style: none; border-bottom-style: none; border-width: initial; border-color: initial; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(204, 204, 204); background-color: rgb(251, 251, 251); &quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;expr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;:&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;].&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;withRel &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; $this &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; $&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: rgb(0, 0, 136); &quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;attr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;rel&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;};&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: rgb(136, 0, 0); &quot;&gt;// Usage:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;br /&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;a:withRel&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;css&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;background-color&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: rgb(0, 136, 0); &quot;&gt;&#039;yellow&#039;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: rgb(102, 102, 0); &quot;&gt;);&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div id=&quot;__KO_DIC_LAYER__&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; position: fixed; z-index: 999999999; overflow-x: hidden; overflow-y: hidden; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(51, 51, 119); border-right-color: rgb(51, 51, 119); border-bottom-color: rgb(51, 51, 119); border-left-color: rgb(51, 51, 119); display: none; &quot;&gt;
&lt;iframe frameborder=&quot;0&quot; scrolling=&quot;yes&quot; style=&quot;width: 100%; height: 100%; background-color: rgb(255, 255, 255); &quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</description>
			<category>jQuery</category>
			<author>linuxian lilla</author>
			<guid>http://mwmw7.tistory.com/295</guid>
			<comments>http://mwmw7.tistory.com/295#entry295comment</comments>
			<pubDate>Wed, 19 Oct 2011 15:01:53 +0900</pubDate>
		</item>
	</channel>
</rss>

