<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
	<channel>
		<title><![CDATA[javascript]]></title>
		<link>https://web.webmini.net/javascript</link>
		<description><![CDATA[]]></description>
		<language>ko</language>
		<pubDate>Sat, 02 May 2026 00:11:36 +0900</pubDate>
		<lastBuildDate>Sat, 02 May 2026 00:11:36 +0900</lastBuildDate>
		<generator>XpressEngine</generator>
						<image>
			<url>https://web.webmini.net/./files/attach/images/rss/logo.gif</url>
			<title><![CDATA[javascript]]></title>
			<link>https://web.webmini.net/javascript</link>
		</image>
						<item>
			<title><![CDATA[모바일 접속시 특정 페이지로 이동]]></title>
			<dc:creator><![CDATA[빽짱구]]></dc:creator>
			<link>https://web.webmini.net/javascript/634999</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/634999</guid>
						<comments>https://web.webmini.net/javascript/634999#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;모바일 접속시 특정페이지로 이동하는 방법입니다.&lt;/p&gt;

&lt;p&gt;&nbsp;&lt;/p&gt;

&lt;pre class=&quot;brush:jscript&quot;  title=&quot;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
var mobileKeyWords = new Array(&#39;iPhone&#39;, &#39;iPod&#39;, &#39;BlackBerry&#39;, &#39;Android&#39;, &#39;Windows CE&#39;, &#39;Windows CE;&#39;, &#39;LG&#39;, &#39;MOT&#39;, &#39;SAMSUNG&#39;, &#39;SonyEricsson&#39;, &#39;Mobile&#39;, &#39;Symbian&#39;, &#39;Opera Mobi&#39;, &#39;Opera Mini&#39;, &#39;IEmobile&#39;);
for (var word in mobileKeyWords){
if (navigator.userAgent.match(mobileKeyWords[word]) != null){
window.location.href = &quot;이동할 주소&quot;;
break;
}
}
&lt;/script&gt;&lt;/pre&gt;&lt;/div&gt;]]></description>
						<pubDate>Sun, 21 Oct 2018 12:15:05 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[생활코딩이라는 사이트입니다.]]></title>
			<dc:creator><![CDATA[빽짱구]]></dc:creator>
			<link>https://web.webmini.net/javascript/546940</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/546940</guid>
						<comments>https://web.webmini.net/javascript/546940#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;http://opentutorials.org/course/1&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;체계적으로 설명이 정말 잘되었습니다.&lt;/p&gt;
&lt;p&gt;참고하시길...&lt;/p&gt;&lt;/div&gt;]]></description>
						<pubDate>Wed, 14 May 2014 01:40:38 +0900</pubDate>
						<category><![CDATA[생활코딩]]></category>
									<slash:comments>3</slash:comments>
					</item>
				<item>
			<title><![CDATA[클릭시 내용보여주고 숨기기]]></title>
			<dc:creator><![CDATA[UI]]></dc:creator>
			<link>https://web.webmini.net/javascript/520541</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/520541</guid>
						<comments>https://web.webmini.net/javascript/520541#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p style=&quot;font-size: 12px;&quot;&gt;1이란 버튼을 클릭하면 1버튼에 대한 내용이 보여주고, 2라는 메뉴 클릭시 1내용을 숨기고, 2에 대한 내용을 보여주는 형식입니다.&lt;/p&gt;
&lt;p style=&quot;font-size: 12px;&quot;&gt;아래소스는 버튼이 3개일때 입니다.&lt;/p&gt;
&lt;p style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;/p&gt;
&lt;p&gt;function newsViewer(strValue)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;var newsLayer1 = document.getElementById(&#039;news_1&#039;);&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;var newsLayer2 = document.getElementById(&#039;news_2&#039;);&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;var newsLayer3 = document.getElementById(&#039;news_3&#039;);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if (strValue == &quot;2&quot;) {&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer1.style.display = &quot;none&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer2.style.display = &quot;block&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer3.style.display = &quot;none&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;else if (strValue == &quot;3&quot;) {&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer1.style.display = &quot;none&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer2.style.display = &quot;none&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer3.style.display = &quot;block&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;else {&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer1.style.display = &quot;block&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer2.style.display = &quot;none&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;newsLayer3.style.display = &quot;none&quot;;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/script&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;javascript:newsViewer(1)&quot;&gt;버튼1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;div id=&quot;news_1&quot;&gt;&lt;/p&gt;
&lt;p&gt;버튼1 클릭시 보여질 내용&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;javascript:newsViewer(2)&quot;&gt;버튼2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;div id=&quot;news_2&quot;&gt;&lt;/p&gt;
&lt;p&gt;버튼2 클릭시 보여질 내용&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;javascript:newsViewer(3)&quot;&gt;버튼3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;div id=&quot;news_3&quot;&gt;&lt;/p&gt;
&lt;p&gt;버튼3 클릭시 보여질 내용&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;]]></description>
						<pubDate>Tue, 25 Jun 2013 16:44:29 +0900</pubDate>
						<category><![CDATA[숨김]]></category>
						<category><![CDATA[스크립트]]></category>
									<slash:comments>1</slash:comments>
					</item>
				<item>
			<title><![CDATA[모바일 페이지 코딩시 주소창 사라지는 방법]]></title>
			<dc:creator><![CDATA[빽짱구]]></dc:creator>
			<link>https://web.webmini.net/javascript/475101</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/475101</guid>
						<comments>https://web.webmini.net/javascript/475101#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;div&gt;모바일 접속시 주소입력후 이동을 하면 주소창이 자동으로 사라지게 하는 소스입니다.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;!--&lt;/div&gt;&lt;div&gt;// 주소창 자동 닫힘&lt;/div&gt;&lt;div&gt;window.addEventListener(&quot;load&quot;, function(){&lt;/div&gt;&lt;div&gt;setTimeout(loaded, 100);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}, false);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;function loaded(){&lt;/div&gt;&lt;div&gt;window.scrollTo(0, 1);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;//--&gt;&lt;/div&gt;&lt;div&gt;&lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;단 스크롤이 없이 모바일 한페이지에 보여지는 경우는 주소창이 사라지지 않습니다.&lt;/div&gt;&lt;div&gt;이유는 스크롤 없이 한페이지에 모든내용이 보여지는데 구지 주소창이 없어질 필요는 없기때문입니다.&lt;/div&gt;&lt;/div&gt;]]></description>
						<pubDate>Fri, 12 Oct 2012 11:10:58 +0900</pubDate>
						<category><![CDATA[모바일주소창]]></category>
						<category><![CDATA[주소창가리기]]></category>
								</item>
				<item>
			<title><![CDATA[오늘날짜 스크립트]]></title>
			<dc:creator><![CDATA[빽짱구]]></dc:creator>
			<link>https://web.webmini.net/javascript/339364</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/339364</guid>
						<comments>https://web.webmini.net/javascript/339364#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;오늘날짜 스크립트입니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;&nbsp;var currentTime = new Date()&lt;br /&gt;&nbsp;var month = currentTime.getMonth() + 1&lt;br /&gt;&nbsp;var day = currentTime.getDate()&lt;br /&gt;&nbsp;var year = currentTime.getFullYear()&lt;br /&gt;&nbsp;&nbsp;document.write(year + &quot;년&quot; + month + &quot;월&quot; + day + &quot;일&quot;)&lt;br /&gt;&lt;/script&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;2011년10월27일&lt;/span&gt; 요로코롬 보여집니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;]]></description>
						<pubDate>Thu, 27 Oct 2011 16:19:11 +0900</pubDate>
						<category><![CDATA[오늘날짜]]></category>
						<category><![CDATA[스크립트]]></category>
								</item>
				<item>
			<title><![CDATA[새로고침할때마다 바뀌는 랜덤배너 소스]]></title>
			<dc:creator><![CDATA[빽짱구]]></dc:creator>
			<link>https://web.webmini.net/javascript/317346</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/317346</guid>
						<comments>https://web.webmini.net/javascript/317346#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;&lt;span style=&quot;COLOR: #ff0000&quot;&gt;﻿&lt;/span&gt;&lt;span style=&quot;COLOR: #ff0000&quot;&gt;﻿&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;웹미니 메인 배너에 사용된 스크립트 입니다.&lt;/p&gt;

&lt;p&gt;외부 js에 삽입을 하셔도 되고, 페이지내에 삽입 하셔도 됩니다.&lt;/p&gt;

&lt;p&gt;&nbsp;&lt;/p&gt;

&lt;pre class=&quot;brush:jscript&quot;  title=&quot;&quot;&gt;// 랜덤 배너 출력
  var banner=new Array();
  banner[0]=&quot;&lt;a href=&#39;#&#39;&gt;&lt;img src=&#39;/images/study/javascript/random_banner/banner1.jpg&#39; alt=&#39;배너1&#39; /&gt;&lt;/a&gt;&quot;;
  banner[1]=&quot;&lt;a href=&#39;#&#39;&gt;&lt;img src=&#39;/images/study/javascript/random_banner/banner2.jpg&#39; alt=&#39;배너2&#39; /&gt;&lt;/a&gt;&quot;;
  banner[2]=&quot;&lt;a href=&#39;#&#39;&gt;&lt;img src=&#39;/images/study/javascript/random_banner/banner3.jpg&#39; alt=&#39;배너3&#39; /&gt;&lt;/a&gt;&quot;;
  banner[3]=&quot;&lt;a href=&#39;#&#39;&gt;&lt;img src=&#39;/images/study/javascript/random_banner/banner4.jpg&#39; alt=&#39;배너4&#39; /&gt;&lt;/a&gt;&quot;;
  banner[4]=&quot;&lt;a href=&#39;#&#39;&gt;&lt;img src=&#39;/images/study/javascript/random_banner/banner5.jpg&#39; alt=&#39;배너5&#39; /&gt;&lt;/a&gt;&quot;;

var random_banner=Math.floor(Math.random()*(banner.length));&lt;/pre&gt;

&lt;div&gt;&nbsp;&lt;/div&gt;

&lt;p&gt;배너가 보여질 문서에 스크립트에서 등록한 함수를 호출합니다.&lt;/p&gt;

&lt;p&gt;&nbsp;&lt;/p&gt;

&lt;pre class=&quot;brush:xml&quot;  title=&quot;&quot;&gt;/* 배너가 노출될 곳에 삽입 */
&lt;script type=&quot;text/javascript&quot;&gt;document.write(banner[random_banner]);&lt;/script&gt;&lt;/pre&gt;&lt;/div&gt;]]></description>
						<pubDate>Thu, 21 Jul 2011 10:00:50 +0900</pubDate>
						<category><![CDATA[배너]]></category>
						<category><![CDATA[스크립트]]></category>
						<category><![CDATA[랜덤배너]]></category>
								</item>
				<item>
			<title><![CDATA[모바일페이지에서 주소창 자동숨김]]></title>
			<dc:creator><![CDATA[빽짱구]]></dc:creator>
			<link>https://web.webmini.net/javascript/276969</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/276969</guid>
						<comments>https://web.webmini.net/javascript/276969#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;모바일 페이지에서 주소창을 자동으로 숨겨주는 스크립트 입니다.&lt;/p&gt;
&lt;p&gt;물론 터치하면 주소창이 나타나겠죠.&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;&lt;!--&lt;br /&gt;// 주소창 자동 닫힘&lt;br /&gt;window.addEventListener(&quot;load&quot;, function(){&lt;br /&gt;setTimeout(loaded, 100);&lt;/p&gt;
&lt;p&gt;}, false);&lt;/p&gt;
&lt;p&gt;function loaded(){&lt;br /&gt;window.scrollTo(0, 1);&lt;br /&gt;}&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;]]></description>
						<pubDate>Wed, 19 Jan 2011 09:05:45 +0900</pubDate>
						<category><![CDATA[모바일]]></category>
						<category><![CDATA[주소창]]></category>
						<category><![CDATA[자동숨김]]></category>
								</item>
				<item>
			<title><![CDATA[이미지에 마우스 올리면... 이미지가 상하로 살짝쌀짝]]></title>
			<dc:creator><![CDATA[웹기프트]]></dc:creator>
			<link>https://web.webmini.net/javascript/262856</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/262856</guid>
						<comments>https://web.webmini.net/javascript/262856#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px; font-size: 13px; color: rgb(64, 64, 64); font-family: gulim, sans-serif; &quot;&gt;&lt;div 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; &quot;&gt;&lt;style&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;.shakeimage{&lt;/div&gt;&lt;div 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; &quot;&gt;position:relative&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/style&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;script language=&quot;JavaScript1.2&quot;&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;/*&lt;/div&gt;&lt;div 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; &quot;&gt;Shake image script (onMouseover)-&nbsp;&lt;/div&gt;&lt;div 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; &quot;&gt;© Dynamic Drive (www.dynamicdrive.com)&lt;/div&gt;&lt;div 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; &quot;&gt;For full source code, usage terms, and 100&#039;s more DHTML scripts, visit http://dynamicdrive.com&lt;/div&gt;&lt;div 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; &quot;&gt;*/&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;//configure shake degree (where larger # equals greater shake)&lt;/div&gt;&lt;div 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; &quot;&gt;var rector=3&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;///////DONE EDITTING///////////&lt;/div&gt;&lt;div 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; &quot;&gt;var stopit=0&nbsp;&lt;/div&gt;&lt;div 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; &quot;&gt;var a=1&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;function init(which){&lt;/div&gt;&lt;div 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; &quot;&gt;stopit=0&lt;/div&gt;&lt;div 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; &quot;&gt;shake=which&lt;/div&gt;&lt;div 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; &quot;&gt;shake.style.left=0&lt;/div&gt;&lt;div 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; &quot;&gt;shake.style.top=0&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;function rattleimage(){&lt;/div&gt;&lt;div 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; &quot;&gt;if ((!document.all&amp;&amp;!document.getElementById)||stopit==1)&lt;/div&gt;&lt;div 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; &quot;&gt;return&lt;/div&gt;&lt;div 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; &quot;&gt;if (a==1){&lt;/div&gt;&lt;div 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; &quot;&gt;shake.style.top=parseInt(shake.style.top)+rector+&quot;px&quot;&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;else if (a==2){&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;span class=&quot;Apple-tab-span&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; white-space: pre; &quot;&gt;&lt;/span&gt;//shake.style.left=parseInt(shake.style.left)+rector+&quot;px&quot;&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;else if (a==3){&lt;/div&gt;&lt;div 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; &quot;&gt;shake.style.top=parseInt(shake.style.top)-rector+&quot;px&quot;&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;else{&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;span class=&quot;Apple-tab-span&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; white-space: pre; &quot;&gt;&lt;/span&gt;//shake.style.left=parseInt(shake.style.left)-rector+&quot;px&quot;&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;if (a&lt;4)&lt;/div&gt;&lt;div 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; &quot;&gt;a++&lt;/div&gt;&lt;div 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; &quot;&gt;else&lt;/div&gt;&lt;div 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; &quot;&gt;a=1&lt;/div&gt;&lt;div 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; &quot;&gt;setTimeout(&quot;rattleimage()&quot;,50)&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;function stoprattle(which){&lt;/div&gt;&lt;div 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; &quot;&gt;stopit=1&lt;/div&gt;&lt;div 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; &quot;&gt;which.style.left=0&lt;/div&gt;&lt;div 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; &quot;&gt;which.style.top=0&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;img src=&quot;http://www.google.com/images/nav_logo26.png&quot; class=&quot;shakeimage&quot; onMouseover=&quot;init(this);rattleimage()&quot; onMouseout=&quot;stoprattle(this);top.focus()&quot; onClick=&quot;top.focus()&quot;&gt;&lt;/div&gt;&lt;/span&gt;


&lt;div style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; direction: ltr; z-index: 99995; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/div&gt;&lt;/div&gt;]]></description>
						<pubDate>Sat, 13 Nov 2010 10:27:42 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[롤링 자동 스크립트]]></title>
			<dc:creator><![CDATA[웹기프트]]></dc:creator>
			<link>https://web.webmini.net/javascript/262853</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/262853</guid>
						<comments>https://web.webmini.net/javascript/262853#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 22px; font-size: 13px; color: rgb(64, 64, 64); font-family: gulim, sans-serif; &quot;&gt;간단한 소스를 드리겠습니다.&lt;div 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; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; color: rgb(0, 0, 0); font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; direction: ltr; z-index: 99995; &quot;&gt;&lt;/div&gt;&lt;div 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; font-family: 굴림, Gulim; &quot;&gt;바로 실행시켜 보세요&lt;/div&gt;&lt;div 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; font-family: 굴림, Gulim; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;div 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; &quot;&gt;&lt;!-- TWO STEPS TO INSTALL BASIC SLIDESHOW:&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&nbsp;&nbsp;1. &nbsp;Copy the coding into the HEAD of your HTML document&lt;/div&gt;&lt;div 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; &quot;&gt;&nbsp;&nbsp;2. &nbsp;Add the last code into the BODY of your HTML document &nbsp;--&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- STEP ONE: Paste this code into the HEAD of your HTML document &nbsp;--&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;HEAD&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- Original: &nbsp;Mike Canonigo (mike@canonigo.com) --&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- Web Site: &nbsp;http://www.munkeehead.com --&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- This script and many more are available free online at --&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- Begin&lt;/div&gt;&lt;div 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; &quot;&gt;NewImg = new Array (&lt;/div&gt;&lt;div 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; &quot;&gt;&quot;http://javascript.internet.com/img/basic-slideshow/1.gif&quot;,&lt;/div&gt;&lt;div 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; &quot;&gt;&quot;http://javascript.internet.com/img/basic-slideshow/2.gif&quot;,&lt;/div&gt;&lt;div 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; &quot;&gt;&quot;http://javascript.internet.com/img/basic-slideshow/3.gif&quot;&lt;/div&gt;&lt;div 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; &quot;&gt;);&lt;/div&gt;&lt;div 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; &quot;&gt;var ImgNum = 0;&lt;/div&gt;&lt;div 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; &quot;&gt;var ImgLength = NewImg.length - 1;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;//Time delay between Slides in milliseconds&lt;/div&gt;&lt;div 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; &quot;&gt;var delay = 3000;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;var lock = false;&lt;/div&gt;&lt;div 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; &quot;&gt;var run;&lt;/div&gt;&lt;div 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; &quot;&gt;function chgImg(direction) {&lt;/div&gt;&lt;div 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; &quot;&gt;if (document.images) {&lt;/div&gt;&lt;div 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; &quot;&gt;ImgNum = ImgNum + direction;&lt;/div&gt;&lt;div 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; &quot;&gt;if (ImgNum &gt; ImgLength) {&lt;/div&gt;&lt;div 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; &quot;&gt;ImgNum = 0;&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;if (ImgNum &lt; 0) {&lt;/div&gt;&lt;div 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; &quot;&gt;ImgNum = ImgLength;&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;document.slideshow.src = NewImg[ImgNum];&lt;/div&gt;&lt;div 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; &quot;&gt;&nbsp;&nbsp; }&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;function auto() {&lt;/div&gt;&lt;div 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; &quot;&gt;if (lock == true) {&lt;/div&gt;&lt;div 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; &quot;&gt;lock = false;&lt;/div&gt;&lt;div 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; &quot;&gt;window.clearInterval(run);&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;else if (lock == false) {&lt;/div&gt;&lt;div 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; &quot;&gt;lock = true;&lt;/div&gt;&lt;div 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; &quot;&gt;run = setInterval(&quot;chgImg(1)&quot;, delay);&lt;/div&gt;&lt;div 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; &quot;&gt;&nbsp;&nbsp; }&lt;/div&gt;&lt;div 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; &quot;&gt;}&lt;/div&gt;&lt;div 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; &quot;&gt;// &nbsp;End --&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/HEAD&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- STEP TWO: Copy this code into the BODY of your HTML document &nbsp;--&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;BODY&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;img src=&quot;http://javascript.internet.com/img/basic-slideshow/1.gif&quot; name=&quot;slideshow&quot;&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;table&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;tr&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;td align=&quot;right&quot;&gt;&lt;a href=&quot;javascript_:chgImg(-1&quot;&gt;Previous&lt;/a&gt;&lt;/td&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;td align=&quot;center&quot;&gt;&lt;a href=&quot;javascript_:auto(&quot;&gt;Auto/Stop&lt;/a&gt;&lt;/td&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;td align=&quot;left&quot;&gt;&lt;a href=&quot;javascript_:chgImg(1&quot;&gt;Next&lt;/a&gt;&lt;/td&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/tr&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/table&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;p&gt;&lt;center&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;font face=&quot;arial, helvetica&quot; size&quot;-2&quot;&gt;Free JavaScripts provided&lt;br&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;by &lt;a href=&quot;http://javascriptsource.com&quot;&gt;The JavaScript Source&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;/center&gt;&lt;p&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div 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; &quot;&gt;&lt;!-- Script Size: &nbsp;1.73 KB --&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;


&lt;div style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; direction: ltr; z-index: 99995; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;/div&gt;&lt;/div&gt;]]></description>
						<pubDate>Sat, 13 Nov 2010 10:20:01 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[아이폰으로 접속했을떄 특정 페이지로 이동시키는 자바스크립트]]></title>
			<dc:creator><![CDATA[주영아빠]]></dc:creator>
			<link>https://web.webmini.net/javascript/258133</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/258133</guid>
						<comments>https://web.webmini.net/javascript/258133#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row6&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;HTML_TAG&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;&lt;/font&gt;&lt;span class=&quot;HTML_ELM&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;script&lt;/font&gt;&lt;/span&gt;&lt;font color=&quot;#0000ff&quot;&gt; &lt;/font&gt;&lt;span class=&quot;HTML_ATR&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;type&lt;/font&gt;&lt;/span&gt;&lt;font color=&quot;#0000ff&quot;&gt;=&lt;span class=&quot;HTML_VAL&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&gt;&lt;/font&gt;&lt;/span&gt;&lt;span class=&quot;JS_TXT&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;7&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl7&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row7&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;var&lt;/font&gt;&lt;/span&gt; mobileKeyWords = &lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;new&lt;/font&gt;&lt;/span&gt; Array(&lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;iPhone&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;iPod&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;BlackBerry&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;Android&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;Windows CE&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;LG&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;MOT&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;SAMSUNG&#039;&lt;/font&gt;&lt;/span&gt;, &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&#039;SonyEricsson&#039;&lt;/font&gt;&lt;/span&gt;); &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;8&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl8&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row8&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;for&lt;/font&gt;&lt;/span&gt; (&lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;var&lt;/font&gt;&lt;/span&gt; word &lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;in&lt;/font&gt;&lt;/span&gt; mobileKeyWords){ &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;9&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl9&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row9&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;if&lt;/font&gt;&lt;/span&gt; (navigator.userAgent.match(mobileKeyWords[word]) != &lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;null&lt;/font&gt;&lt;/span&gt;){ &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;10&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl10&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row10&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location.href = &lt;span class=&quot;JS_STR&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;&quot;http://www.naver.com/&quot;&lt;/font&gt;&lt;/span&gt;; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;11&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl11&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row11&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;JS_KEY&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;break&lt;/font&gt;&lt;/span&gt;; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;12&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl12&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row12&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&nbsp;&nbsp;&nbsp; } &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;13&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl13&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row13&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;14&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl14&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row14&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;
&lt;div class=&quot;SYN_LNB&quot;&gt;&lt;input class=&quot;SYN_LNN&quot; value=&quot;15&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;input id=&quot;syn_ctrl15&quot; class=&quot;SYN_BCH&quot; role=&quot;button&quot; value=&quot;-&quot; type=&quot;label&quot; unselectable=&quot;on&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;span class=&quot;JS_TXT&quot;&gt;&lt;/span&gt;&lt;span class=&quot;HTML_TAG&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;/&lt;/font&gt;&lt;span class=&quot;HTML_ELM&quot;&gt;&lt;font color=&quot;#800000&quot;&gt;script&lt;/font&gt;&lt;/span&gt;&lt;font color=&quot;#0000ff&quot;&gt;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;pc버전과 아이폰 버전 홈페이지를 동시에 만들떄 이거 스크립트를 삽입하면..&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;스마트폰으로 접속했을때 특정페이지로 이동하게끔할수있습니다.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;&lt;/span&gt;&nbsp;&lt;/div&gt;
&lt;div class=&quot;SYN_ROW&quot;&gt;&lt;span class=&quot;HTML_TXT&quot;&gt;참고하세요 &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; class=&quot;SYN_TXT&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;]]></description>
						<pubDate>Tue, 26 Oct 2010 18:19:49 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[스위칭 하는 자바스크립트..]]></title>
			<dc:creator><![CDATA[늘푸른]]></dc:creator>
			<link>https://web.webmini.net/javascript/216886</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/216886</guid>
						<comments>https://web.webmini.net/javascript/216886#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;1번 테이블&lt;br /&gt;&lt;table width=&quot;100%&quot;&nbsp; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;ShowHideTable_1&quot; style=&quot;display:block&quot;&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_1_on.gif&quot; onMouseOver=&quot;ShowTable( 1 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_2_off.gif&quot; onMouseOver=&quot;ShowTable( 2 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_3_off.gif&quot; onMouseOver=&quot;ShowTable( 3 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&nbsp;&lt;td&gt; 여기에는 내용.. 어쩌구.. 저쩌구.. &lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;2번 테이블&lt;br /&gt;&lt;table width=&quot;100%&quot;&nbsp; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;ShowHideTable_2&quot; style=&quot;display:block&quot;&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_1_off.gif&quot; onMouseOver=&quot;ShowTable( 1 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_2_on.gif&quot; onMouseOver=&quot;ShowTable( 2 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_3_off.gif&quot; onMouseOver=&quot;ShowTable( 3 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&nbsp;&lt;td&gt; 여기에는 내용.. 어쩌구.. 저쩌구.. &lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;3번 테이블&lt;br /&gt;&lt;table width=&quot;100%&quot;&nbsp; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;ShowHideTable_1&quot; style=&quot;display:block&quot;&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_1_off.gif&quot; onMouseOver=&quot;ShowTable( 1 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_2_off.gif&quot; onMouseOver=&quot;ShowTable( 2 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&nbsp;&lt;td&gt;&lt;img src=&quot;img/table_3_on.gif&quot; onMouseOver=&quot;ShowTable( 3 );&quot;&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&nbsp;&lt;td&gt; 여기에는 내용.. 어쩌구.. 저쩌구.. &lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;이렇게 하고 하단에 자스를..넣습니다&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&lt;script&gt;&lt;br /&gt;&nbsp;function ShowTable( argNum )&nbsp; {&lt;br /&gt;&nbsp;&nbsp;// 전체 테이블 갯수 지정해준다.&lt;br /&gt;&nbsp;&nbsp;var lTotalTable =3;&lt;br /&gt;&nbsp;&nbsp;for( var i = 1; i &lt;= lTotalTable; i++ )&nbsp; {&lt;br /&gt;&nbsp;&nbsp;&nbsp;eval( &quot;ShowHideTable_&quot; + i + &quot;.style.display = &#039;none&#039;&quot; );&lt;br /&gt;&nbsp;&nbsp;}&lt;br /&gt;&nbsp;&nbsp;&nbsp;eval( &quot;ShowHideTable_&quot; + argNum + &quot;.style.display = &#039;block&#039;&quot; );&lt;br /&gt;&nbsp;}&lt;br /&gt;&nbsp;ShowTable( 1 );&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;이러면 스위칭시 레이어를 보여줬다가 안보여줬다 하죠.^^&lt;/p&gt;&lt;/div&gt;]]></description>
						<pubDate>Sat, 24 Jul 2010 16:31:26 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[이미지 클릭시 최적사이즈로 팝업 열리게 하는 스크립트]]></title>
			<dc:creator><![CDATA[늘푸른]]></dc:creator>
			<link>https://web.webmini.net/javascript/216716</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/216716</guid>
						<comments>https://web.webmini.net/javascript/216716#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;&lt;html&gt;&lt;br /&gt;&lt;head&gt;&lt;/p&gt;
&lt;p&gt;&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;!-- &lt;br /&gt;function viewPic(img){&lt;br /&gt;&nbsp; foto1= new Image();&lt;br /&gt;&nbsp; foto1.src=&quot;(img);&lt;br /&gt;&nbsp; contImg(img);&lt;br /&gt;}&lt;br /&gt;function contImg(img){&lt;br /&gt;&nbsp; if((foto1.width!=0)&amp;&amp;(foto1.height!=0)){&lt;br /&gt;&nbsp;&nbsp;&nbsp; viewImg(img);&lt;br /&gt;&nbsp; }&lt;br /&gt;&nbsp; else{&lt;br /&gt;&nbsp;&nbsp;&nbsp; funzione=&quot;contImg(&#039;&quot;+img+&quot;&#039;)&quot;;&lt;br /&gt;&nbsp;&nbsp;&nbsp; intervallo=setTimeout(funzione,20);&lt;br /&gt;&nbsp; }&lt;br /&gt;}&lt;br /&gt;function viewImg(img){&lt;br /&gt;&nbsp; largh=foto1.width+20;&lt;br /&gt;&nbsp; altez=foto1.height+20;&lt;br /&gt;&nbsp; stringa=&quot;width=&quot;+largh+&quot;,height=&quot;+altez;&lt;br /&gt;&nbsp; finestra=window.open(img,&quot;&quot;,stringa);&lt;br /&gt;}&lt;br /&gt;// --&gt;&lt;br /&gt;&lt;/script&gt;&lt;/p&gt;
&lt;p&gt;&lt;/HEAD&gt;&lt;/p&gt;
&lt;p&gt;&lt;BODY&gt;&lt;br /&gt;&lt;table border=0 width=300 align=center bgColor=#cc9966&gt;&lt;br /&gt;&lt;TR bgColor=lightyellow&gt;&lt;br /&gt;&lt;TD align=center&gt;&lt;/p&gt;
&lt;p&gt;&lt;!----- 원하는 위치에 아래와 같이 코드를 붙여 넣습니다 ----&gt;&lt;/p&gt;
&lt;p&gt;&lt;A HREF=&quot;javascript:viewPic(&#039;http://mem.anyhost.co.kr/images/left/anylogo.gif&#039;)&quot; BORDER=&quot;0&quot;&gt;&lt;br /&gt;&lt;IMG SRC=&#039;http://mem.anyhost.co.kr/images/left/anylogo.gif&#039; BORDER=&quot;0&quot;&gt;&lt;/A&gt;&lt;br /&gt;&lt;/TD&gt;&lt;/p&gt;
&lt;p&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;]]></description>
						<pubDate>Sat, 24 Jul 2010 10:30:01 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[골때리는 자바스크립트 번외편!!!]]></title>
			<dc:creator><![CDATA[이병준]]></dc:creator>
			<link>https://web.webmini.net/javascript/196966</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/196966</guid>
						<comments>https://web.webmini.net/javascript/196966#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;&lt;table style=&quot;WORD-WRAP: break-word; TABLE-LAYOUT: fixed; OVERFLOW: hidden; WORD-BREAK: break-all&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;620&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td height=&quot;10&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td id=&quot;bb_view&quot;&gt;자.. 5탄에 너무 어려워 골때리다는 분이 많아서 오늘은 그냥 번외를 준비했습니다. &lt;br /&gt;오늘은 좀 재밌는 걸 준비했는데요. &lt;br /&gt;자.. 먼저 이걸 보시죠. &lt;br /&gt;&lt;br /&gt;mypage.html?page=write&amp;where=isit &lt;br /&gt;&lt;br /&gt;음.. 그냥 URL이죠. 그리고 ? 뒤에 질의문이 들어가있죠. 쿼리스트링이라 하지만 우리말로 하면 질의문이잖아요..ㅋㅋㅋㅋ &lt;br /&gt;뭐.. 이걸 서버사이드에선 어떻게 처리할까요? &lt;br /&gt;먼저 PHP요~ &lt;br /&gt;$_GET[&#039;page&#039;]; &lt;br /&gt;&lt;br /&gt;ASP(.net)요~ &lt;br /&gt;VB: &lt;br /&gt;Request.QueryString(&quot;page&quot;) &lt;br /&gt;C#,JScript,J#...: &lt;br /&gt;Request.QueryString[&quot;page&quot;] &lt;br /&gt;&lt;br /&gt;JSP요~ &lt;br /&gt;...안해봐서.. 댓글로 참조부탁요. &lt;br /&gt;&lt;br /&gt;그외에도 CF,Mac,Perl,CGI등등등.. 다채롭죠. &lt;br /&gt;&lt;br /&gt;그렇다고 질의문을 내맘대로 꾸미고 싶다. 질의문 전체를 참조하려면 어떻게 해야합니까? &lt;br /&gt;PHP요~ &lt;br /&gt;$_SERVER[&#039;QUERY_STRING&#039;]; &lt;br /&gt;&lt;br /&gt;ASP(.net)요~ &lt;br /&gt;VB: &lt;br /&gt;Request.ServerVariables(&quot;QUERY_STRING&quot;) &lt;br /&gt;C#,JScript,J#...: &lt;br /&gt;Request.ServerVariables[&quot;QUERY_STRING&quot;] &lt;br /&gt;&lt;br /&gt;JSP요~ &lt;br /&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;하지만 URL을 가공해서 처리는 할 수 있습니다. &lt;br /&gt;location 객체. 음.. URL을 얻어올때 주로 쓰는 객체이죠. 네.. &lt;br /&gt;이 location에 href 속성으로 전체 URL을 얻어올 수 있죠? 파일명부터 질의문까지. &lt;br /&gt;근데.. 이걸 가공하기엔 좀 귀찮고.. 하지만 하늘은 우릴 버리지 않으셧습니다. &lt;br /&gt;앵커를 참조하라고 location 객체에 search 속성을 내려주셨습니다. &lt;br /&gt;이 속성에는 # 뒤에 들어간 앵커. 우리말로하면 책갈피를 보여주지만 ?을 붙인 그 뒤에 질의문도 보여주는 친절함을 선보이고 있죠. &lt;br /&gt;결국 location.search는 server variables의 query_string인 셈이죠. &lt;br /&gt;이제 이걸 다룰 줄 알면 오늘 &lt;span style=&quot;BACKGROUND-COLOR: yellow; COLOR: red&quot;&gt;골때리는&lt;/span&gt; 강좌는 여기서 끝입니다... &lt;br /&gt;&lt;br /&gt;자.. 먼저, search 속성의 ?부터 제거해보기로 합시다. &lt;br /&gt;var qs=location.search.replace(&#039;?&#039;,&#039;&#039;); &lt;br /&gt;자스의 replace는 기본적으로 정규식의 global 속성을 주지 않는 이상 첫번째 단어만 검색하면 그걸 대체하고 끝내버리는 속성이 있습니다. 하지만 서버단의 replace는 그 반대죠. &lt;br /&gt;어쨌든 substring을 쓰던 replace를 쓰던 ?을 제거하면 일단 질의문을 가공할 준비는 끝입니다. 어떻게 가공할건지는 여러분의 자유에 맡기겠지만, 저는 split을 통해 그냥 쉽게 처리할 생각입니다. &lt;br /&gt;먼저 &amp;가 들어간 단어를 기준점으로 문자를 나눕니다. &lt;br /&gt;qs=qs.split(&#039;&amp;&#039;); &lt;br /&gt;이렇게 되면 질의문의 갯수만큼 나눠지겠죠. 단순히 &amp;만 나누기때문에 &amp;남용하면 물론 &amp; 갯수만큼 나눠지겠지만 그건 큰 문제가 없습니다. 키=값 쌍만 있는넘만 등록하게 하면 되니까요. 그런다음에 = 기준으로 키=값을 분리해서 왼쪽은 키, 오른쪽은 값 이런식으로 하면 되죠. 그다지 어렵지는 않죠? &lt;br /&gt;split 써도 되고. 정규식씨를 섭외해도 되고... 여러분이 원하는 방식으로 가공해서 처리하면 됩니다. 어때요. 쉽죠? &lt;br /&gt;&lt;br /&gt;이렇게해서 querystring 값을 받아오는 함수는 다음과 같습니다. &lt;br /&gt;function getQueryString(key){ &lt;br /&gt;&nbsp; var qs=location.search.replace(&#039;?&#039;,&#039;&#039;); &lt;br /&gt;&nbsp; if(!key) return qs; &lt;br /&gt;&nbsp; qs=qs.split(&#039;&amp;&#039;); &lt;br /&gt;&nbsp; var qsr=&#039;&#039;; &lt;br /&gt;&nbsp; for(i=0;i&lt;qs.length;i++){ &lt;br /&gt;&nbsp; &nbsp; if(!!qs[i]&amp;&amp;qs[i].indexOf(&#039;=&#039;)&gt;-1){ &lt;br /&gt;&nbsp; &nbsp; &nbsp; var qv=qs[i].split(&#039;=&#039;); &lt;br /&gt;&nbsp; &nbsp; &nbsp; if(qv[0]==key) qsr+=qv[1]+&#039;|&#039;; &lt;br /&gt;&nbsp; &nbsp; } &lt;br /&gt;&nbsp; } &lt;br /&gt;&nbsp; qsr=qsr.replace(/\|$/,&#039;&#039;); &lt;br /&gt;&nbsp; return qsr.indexOf(&#039;|&#039;)&gt;-1?qsr.split(&#039;|&#039;):qsr; &lt;br /&gt;} &lt;br /&gt;만약 하나만 나오면 하나나온 값 문자열을, 복수면 배열로 리턴하게 친절하게 꾸몄습니다. &lt;br /&gt;저 잘했죠? &lt;br /&gt;&lt;br /&gt;만약 location과 같이 기억해두고싶다면 Location.queryString을 만들고 내용을 저걸로 집어넣어도 무관합니다. &lt;br /&gt;&lt;br /&gt;만약 RewriteMod와 같이 쓰고 싶다면 자스는 ReWrite와 무관하게 URL을 수집하기 때문에 그에 맞게 꾸미면 되겠습니다. &lt;br /&gt;&lt;br /&gt;오늘은 그냥 골때리다기보기엔 그냥 그렇다 하겠지만 자스로도 질의문을 받아 처리할 수 있다는 사실에 오늘 재밌는 감동을 얻었군요. &lt;br /&gt;&lt;br /&gt;번외편은 여기까지구요. 다음엔 약속대로 골때려서 돌아가시게 해드리겠습니다. &lt;br /&gt;각오하고 그럼 즐코딩하셈. &lt;br /&gt;&lt;br /&gt;아참, 덧붙여서 검색창에 js querystring 쳐보셈. 즐비하게 나오는 팁입니다.. &lt;!-- 테러 태그 방지용 --&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;]]></description>
						<pubDate>Fri, 28 May 2010 09:16:21 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[골때리는 자바스크립트의 세계 9탄!]]></title>
			<dc:creator><![CDATA[이병준]]></dc:creator>
			<link>https://web.webmini.net/javascript/196959</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/196959</guid>
						<comments>https://web.webmini.net/javascript/196959#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;오랜만이군요. 자. 다시 &lt;span style=&quot;BACKGROUND-COLOR: yellow; COLOR: red&quot;&gt;골때리는&lt;/span&gt; 자바스크립트의 세계가 돌아왔습니다. &lt;br /&gt;오랜만에 돌아온 만큼 오늘은 조금 골이 살짝 때리는 팁을 드리도록 하겠습니다. &lt;br /&gt;&lt;br /&gt;HTML5가 성행하기 시작하면서 새로운 태그와 새로운 속성이 우후죽순 나오고 있습니다. 그런 만큼 크로스 브라우저에 대한 노력은... &lt;br /&gt;굳이 안해도 될것같긴 하겠지만ㅋ &lt;br /&gt;&lt;br /&gt;배열에 push란 함수가 있는지 없는지 확인해보기 위해서는 몇가지 방법이 있겠죠. &lt;br /&gt;!![&#039;my&#039;,&#039;name&#039;,&#039;is&#039;,&#039;array&#039;].push &lt;br /&gt;!!Array.prototype.push &lt;br /&gt;&#039;push&#039; in [&#039;me&#039;,&#039;too&#039;] &lt;br /&gt;&#039;push&#039; in Array.prototype &lt;br /&gt;&lt;br /&gt;1번꺼는 만들어진 배열에 push란 메서드가 있나 확인해보는 거고 &lt;br /&gt;2번꺼는 배열 동적 메서드에 push가 있는지 확인해보는 거고, &lt;br /&gt;3번꺼는 만들어진 배열에 push란 메서드가 있나 확인해보는 거고 &lt;br /&gt;4번꺼는 배열 동적 메서드에 push가 있는지 확인해보는 거죠. &lt;br /&gt;&lt;br /&gt;어때요. 참 쉽죠? &lt;br /&gt;다들 표정이 왜그래요? 자바스크립트로 배열만드는게 쉼표하나빠져서 배열 다뒤지는사람처럼? &lt;br /&gt;&lt;br /&gt;&#039;push&#039; in [&#039;me&#039;,&#039;too&#039;] 이건 ㅤㅁㅝㅇ미? &lt;br /&gt;in 연산자가 무엇일까요? &lt;br /&gt;in 키워드는 해당 객체에 키 또는 하위 요소가 있는지 알아내주는 녀석입니다. &lt;br /&gt;in 키워드는 주로 이럴때 쓰죠. &lt;br /&gt;&lt;br /&gt;for(var x in object) ... &lt;br /&gt;&lt;br /&gt;자바스크립트를 시작할때쯤 반복문 배울때 한번씩은 배워봤을겁니다. &lt;br /&gt;여기서 주로 JSON 키를 얻거나 특정 객체의 속성을 검색하는데 주로 쓰였죠. &lt;br /&gt;네 맞습니다. 반복문 외에도 쓸거리는 있죠. &lt;br /&gt;&lt;br /&gt;근데 왜 쓰는 방법이 &#039;string&#039; in object 인데 속성이름을 문자열로 할까요? &lt;br /&gt;반복문을 쓰다보면 받아오는 변수는 키를 문자열로 받죠? 그거와 똑같은 효과입니다. &lt;br /&gt;&lt;br /&gt;그럼 어떨때 쓰는 게 좋을까요? &lt;br /&gt;&lt;br /&gt;일단 !![&#039;array&#039;].push 보다는 &#039;push&#039; in [&#039;array&#039;] 이게 거 가독성이 있어보이죠. &lt;br /&gt;거기다가 반환되는값은 bool값이라 true나 false기 때문에 속성 찾는데 있어서 안전하죠. &lt;br /&gt;즉, 속성 검색하다 쓸데없는 현상으로 오류날걱정은 전혀 안해도 된다는 겁니다. &lt;br /&gt;&lt;br /&gt;이상입니다. 오늘은 경험자들에게 골때려서 되새기고, 초보에게는 골때려서 또다른 기능을 얻어가는 &lt;span style=&quot;BACKGROUND-COLOR: yellow; COLOR: red&quot;&gt;골때리는&lt;/span&gt; 자바스립트의 세계. &lt;br /&gt;다음에는 더욱더 골때려서 머리 깨지는데 더욱 더 도움이 될 수 있는 컨텐츠로 찾아뵙겠습니다. &lt;!-- 테러 태그 방지용 --&gt;&lt;/div&gt;]]></description>
						<pubDate>Fri, 28 May 2010 09:14:24 +0900</pubDate>
								</item>
				<item>
			<title><![CDATA[골때리는 자바스크립트의 세계 8탄!]]></title>
			<dc:creator><![CDATA[이병준]]></dc:creator>
			<link>https://web.webmini.net/javascript/196956</link>
			<guid isPermaLink="true">https://web.webmini.net/javascript/196956</guid>
						<comments>https://web.webmini.net/javascript/196956#comment</comments>
									<description><![CDATA[&lt;div class=&quot;xe_content&quot;&gt;뭐. 8탄이라. 점점 골때려져 가겠는데 이게 웬 8탄이냐.. &lt;br /&gt;이번엔 어려워서 골때릴 것 같다구요? &lt;br /&gt;뭐.. 아무렴 어때요.ㅋㅋ &lt;br /&gt;&lt;br /&gt;제가 6탄에서 스크립트 난독화에 대해 설명을 한 적이 있었습니다. &lt;br /&gt;그기서 난독화 테크닉에 괄호한테 십쇼키라고 욕했죠. &lt;br /&gt;ㅋㅋ 근데 가끔씩 유용합니다. 왜그럴까요? &lt;br /&gt;그전에 있어서 괄호가 어디어디 쓰이는지부터 보도록 하죠. &lt;br /&gt;&lt;br /&gt;var s=0; &lt;br /&gt;for(i=1;i&lt;=100;i++){ &lt;br /&gt;&nbsp; s+=i; &lt;br /&gt;} &lt;br /&gt;alert(s); &lt;br /&gt;&lt;br /&gt;뭐. 일단 쉽게 1부터 100까지 더하는 반복문입니다. &lt;br /&gt;그렇다면 이걸 일반적인 다른 방법이 있다면, &lt;br /&gt;&lt;br /&gt;var s=0,i=1; &lt;br /&gt;while(i&lt;=100) &lt;br /&gt;&nbsp; s+=i++; &lt;br /&gt;alert(s); &lt;br /&gt;&lt;br /&gt;그럼 함수는.. &lt;br /&gt;&lt;br /&gt;function(a,b){ &lt;br /&gt;&nbsp; return a+b; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;그리고 또는 1탄에서 언급한 기술.. &lt;br /&gt;&lt;br /&gt;(function(a){alert(a);})(&#039;안녕&#039;); &lt;br /&gt;&lt;br /&gt;아니면 &lt;br /&gt;&lt;br /&gt;alert(({a:&#039;b&#039;,c:&#039;d&#039;}).a); &lt;br /&gt;&lt;br /&gt;괄호는 우리 코딩이나 프로그래밍 생활에 정말 유용하게 쓰이는 녀석입니다. &lt;br /&gt;&lt;br /&gt;자 그렇다면, 6탄에서 본적 있죠? &lt;br /&gt;&lt;br /&gt;var a=(b=&#039;이런&#039;,b+&#039;젠장&#039;); &lt;br /&gt;alert(a); &lt;br /&gt;&lt;br /&gt;이 스크립트를 실행하면 이런젠장이란 글씨가 뜹니다. &lt;br /&gt;a는 함수인가요? 아닌뎁쇼. &lt;br /&gt;그럼 뭡니까? 몰라요. 그렇다는데요? &lt;br /&gt;저보다 자스천재님이 가르쳐주실지도...ㅋ &lt;br /&gt;&lt;br /&gt;어쨌든, 난독화에 쓰이기도 하고, 일회성도 있기 때문에 잠시 써먹는 식으로도 그만이죠. &lt;br /&gt;예를 들어, &lt;br /&gt;&lt;br /&gt;while(Math.round(Math.random())){ &lt;br /&gt;&nbsp; a=1; &lt;br /&gt;&nbsp; window.status+=a; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;이 a는 어자피 while 문 안에서만 쓸 거 아닙니까? 그럼 그냥 이렇게 하세요. &lt;br /&gt;&lt;br /&gt;while(a=1,Math.round(Math.random())){ &lt;br /&gt;&nbsp; window.status+=a; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;어째보면 좀 의미가 있군요. 여기서 지역변수 a는 1로 정의했다고 보이기도 하고, &lt;br /&gt;그리고 조건문은 뒤에 썼죠. 실제로 while 문이 인식할 건 마지막 인자니까요. &lt;br /&gt;&lt;br /&gt;6탄에서도 말했지만 (1,2,...,n) 이런 괄호 연산자 실행시 결과는 무조건 &lt;br /&gt;마지막에 쓴 n이 나옵니다. &lt;br /&gt;&lt;br /&gt;그래서 이걸 활용한 별 희한한 식이 나오기도 하죠. &lt;br /&gt;v.push((c=arguments[i],l=c.length&gt;4?2:1,parseInt((h=c.substr(1+j*l,l),h+(l&gt;1?&#039;&#039;:h)), 16))); &lt;br /&gt;&lt;br /&gt;이걸 제가 직접 작성했다고 자랑하긴 좀 뭐하죠. &lt;br /&gt;이걸 풀어보면 어떻게 될까요? 풀어봅시다. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c = arguments[i]; &lt;br /&gt;l = c.length &gt; 4 ? 2 : 1; &lt;br /&gt;h = c.substr(1 + j * l, l); &lt;br /&gt;h = h + (l &gt; 1 ? &#039;&#039; : h); &lt;br /&gt;v.push(parseInt(h,16)); &lt;br /&gt;&lt;br /&gt;이렇게 나오는군요. &lt;br /&gt;&lt;br /&gt;오늘 &lt;span style=&quot;BACKGROUND-COLOR: yellow; COLOR: red&quot;&gt;골때리는&lt;/span&gt; 자바스크립트는 여기까집니다. &lt;br /&gt;괄호 연산자로 잠시동안 쓸 지역변수를 정의하거나, 아니면 잠시 해야 할 연산을 한 다음에, 마지막에 진짜 연산식을 넣는 가방 역할을 하는 이 괄호 연산자. &lt;br /&gt;&lt;br /&gt;그다지 쓸데는 없습니다. 왜냐하면 이건 코드 축소하거나 난독화에 쓰이거든요. &lt;br /&gt;거기다가 이건 고급 테크닉입니다. 이거 작성하는데 에러 잡기 정말 힘들겁니다. &lt;br /&gt;먼저 코드를 어떻게 진행해 나갈지부터 확실히 잡힌 다음에 리팩토링하는 게 좋겠죠. &lt;!-- 테러 태그 방지용 --&gt;&lt;/div&gt;]]></description>
						<pubDate>Fri, 28 May 2010 09:10:56 +0900</pubDate>
								</item>
			</channel>
</rss>
