<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>S i X h E a D { ? } &#187; div</title>
	<atom:link href="http://sixhead.com/tag/div/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixhead.com</link>
	<description>เมื่อความรู้มีไว้แบ่งปัน</description>
	<lastBuildDate>Mon, 27 Feb 2012 06:23:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>div กับหน้าจอ กว้าง x ยาว เท่าไหร่ก็อยู่กลางหน้า</title>
		<link>http://sixhead.com/2008/02/13/css-div-center-screen/</link>
		<comments>http://sixhead.com/2008/02/13/css-div-center-screen/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 18:00:48 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>

		<guid isPermaLink="false">http://sixhead.com/2008/02/13/css-div-center-screen/</guid>
		<description><![CDATA[Code ของคุณ ท่่านอื่นๆ ง่ายกว่าครับ ขอบคุณมา​ ณ ที่นี้ด้วย scroll ลงไปดูล่างๆ]]></description>
			<content:encoded><![CDATA[<p>Code ของคุณ ท่่านอื่นๆ ง่ายกว่าครับ ขอบคุณมา​ ณ ที่นี้ด้วย</p>
<p>scroll ลงไปดูล่างๆ</p>
<p><map name='google_ad_map_21_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/21?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_21_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=21&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F02%2F13%2Fcss-div-center-screen%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/02/13/css-div-center-screen/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>เริ่มต้นง่ายๆกับ jQuery</title>
		<link>http://sixhead.com/2008/01/31/simple-start-with-jquery/</link>
		<comments>http://sixhead.com/2008/01/31/simple-start-with-jquery/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 16:50:14 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://sixhead.com/2008/01/31/simple-start-with-jquery/</guid>
		<description><![CDATA[ไม่ต้องพูดอะไรกันมาก เริ่มเรียนรู้กันจากตัวอย่างไปเลย ใช้งานง่ายมากๆ เขียน code บรรทัดเดียว ก็จะได้ คำสั่ง show, hide, หรือ fade effect แบบสวยงามได้แล้ว ดูตัวอย่างที่นี่ #testDiv &#123; background-color:#3399CC; font: 12px Tahoma, Arial, sans-serif; color:#FFFFFF; width: 150px; height: 100px; text-align:center; &#125; .testClass &#123; background-color:#FF0000; font: 12px Tahoma, Arial, sans-serif; color:#FFFFFF; width: 150px; height: 100px; text-align:center; &#125; * #testDiv และ .testClass ใน css เอาไว้แค่กำหนดหน้าตาเฉยๆ ไม่มีผลกับ jquery &#60;script [...]]]></description>
			<content:encoded><![CDATA[<p>ไม่ต้องพูดอะไรกันมาก เริ่มเรียนรู้กันจากตัวอย่างไปเลย ใช้งานง่ายมากๆ เขียน code บรรทัดเดียว<br />
ก็จะได้ คำสั่ง show, hide, หรือ fade effect แบบสวยงามได้แล้ว<br />
<span id="more-14"></span></p>
<p><a href="http://sixhead.com/testrun/jquery/2008.01.31/demo.html" target="_blank">ดูตัวอย่างที่นี่</a></p>
<pre class="css"><span style="color: #cc00cc;">#testDiv</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span>:<span style="color: #cc00cc;">#3399CC</span>;
	<span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Tahoma, Arial, <span style="color: #993333;">sans-serif</span>;
	<span style="color: #000000; font-weight: bold;">color</span>:<span style="color: #cc00cc;">#FFFFFF</span>;
	<span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">150px</span>;
	<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">100px</span>;
	text-align<span style="color: #3333ff;">:center</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.testClass</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span>:<span style="color: #cc00cc;">#FF0000</span>;
	<span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Tahoma, Arial, <span style="color: #993333;">sans-serif</span>;
	<span style="color: #000000; font-weight: bold;">color</span>:<span style="color: #cc00cc;">#FFFFFF</span>;
	<span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">150px</span>;
	<span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">100px</span>;
	text-align<span style="color: #3333ff;">:center</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>* #testDiv และ .testClass ใน css เอาไว้แค่กำหนดหน้าตาเฉยๆ ไม่มีผลกับ jquery</p>
<pre class="html4strict"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;jquery.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--mce:0--&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></pre>
<p>บรรทัด 26. เป็นการเรียกโหลด jquery.js เข้ามา</p>
<pre class="javascript">&lt;a onclick=<span style="color: #3366CC;">&quot;$('#testDiv').show();&quot;</span> href=<span style="color: #3366CC;">&quot;javascript:void(0);&quot;</span>&gt;Show&lt;/a&gt;
&lt;a onclick=<span style="color: #3366CC;">&quot;$('#testDiv').hide();&quot;</span> href=<span style="color: #3366CC;">&quot;javascript:void(0);&quot;</span>&gt;Hide&lt;/a&gt;</pre>
<p>บรรทัด 31. จุดสำคัญมันอยู่ตรงนี้ onclick="<strong>$('#testDiv').show();</strong>" คำสั่งนี้คือการ เลือกที่จะทำงานกับ<br />
div (ขึ้นต้นด้วย #) ที่ชื่อว่า #testDiv นั่นเอง</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;testDiv&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>ข้อความ .. .. .. ข้อความ<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<pre class="javascript">&lt;a onclick=<span style="color: #3366CC;">&quot;$('.testClass').show();&quot;</span> href=<span style="color: #3366CC;">&quot;javascript:void(0);&quot;</span>&gt;Show&lt;/a&gt;
&lt;a onclick=<span style="color: #3366CC;">&quot;$('.testClass').hide();&quot;</span> href=<span style="color: #3366CC;">&quot;javascript:void(0);&quot;</span>&gt;Hide&lt;/a&gt;</pre>
<p>บรรทัด 49. ในทำนองเดียวกัน onclick="<strong>$('.testClass').show();</strong>" คำสั่งนี้คือการ เลือกที่จะทำงานกับ<br />
class (ขึ้นต้นด้วย .) ที่ชื่อว่า .testClass นั่นเอง</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;testClass&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>ข้อความ .. .. .. ข้อความ<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<p>ส่วนคำสั่ง fadeIn, fadeOut ก็ดูได้จาก source code ในตัวอย่างได้เลย<br />
เห็นไหมครับว่ามันง่ายขนาดไหน ต่อให้เป็น web designer ก็ตามยังสามารถที่จะลองทำได้ง่ายๆ เลย</p>
<p>อันที่จริงแล้ว jQuery นั้นมีคำสั่งที่สั้นกว่านี้อีกไว้จะเขียนเพิ่มในตอนต่อๆ ไป</p>
<p><map name='google_ad_map_14_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/14?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_14_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=14&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F01%2F31%2Fsimple-start-with-jquery%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/01/31/simple-start-with-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>link สวยด้วย css</title>
		<link>http://sixhead.com/2008/01/29/nice-link-with-css/</link>
		<comments>http://sixhead.com/2008/01/29/nice-link-with-css/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 16:03:21 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://sixhead.com/2008/01/29/link-%e0%b8%aa%e0%b8%a7%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-css/</guid>
		<description><![CDATA[เคยเห็น link ลักษณะนี้ไหม ไม่มีอะไรยากเลย ใช้ css และ div เข้ามาช่วย ลองมาดูตัวอย่างกัน ดูตัวอย่างที่นี่ &#160;&#60;style media=&#34;screen&#34; type=&#34;text/css&#34;&#62;.SiXhEaD_Link &#123; font: 12px Tahoma, Arial, sans-serif; padding: 10px 0; &#125;.SiXhEaD_Link a &#123; background: #F8FBFC; color: #069; text-decoration: none; padding: 2px 6px 3px 6px; border: 1px solid #E2EFF3; &#125;.SiXhEaD_Link a:hover &#123; border-color: #B7D7E1; &#125;.SiXhEaD_Link font &#123; font: 12px Tahoma, Arial, sans-serif; background: [...]]]></description>
			<content:encoded><![CDATA[<p>เคยเห็น link ลักษณะนี้ไหม<br />
<img width="370" height="57" border="0" src="http://sixhead.com/wp-content/uploads/image/css/link.color/link.color.png" alt="" /><br />
ไม่มีอะไรยากเลย ใช้ css และ div เข้ามาช่วย ลองมาดูตัวอย่างกัน<br />
<span id="more-13"></span><br />
<a href="http://sixhead.com/testrun/css/link.color/link.color.html">ดูตัวอย่างที่นี่</a><br/><br/></p>
<pre class="css"><ol start="5"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;style media=<span style="color: #ff0000;">&quot;screen&quot;</span> type=<span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Tahoma, Arial, <span style="color: #993333;">sans-serif</span>; <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">10px</span> <span style="color: #933;">0</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> a <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #cc00cc;">#F8FBFC</span>; <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">069</span></span>; <span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>; <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">2px</span> <span style="color: #933;">6px</span> <span style="color: #933;">3px</span> <span style="color: #933;">6px</span>; <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E2EFF3</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> a<span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-color</span>: <span style="color: #cc00cc;">#B7D7E1</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.SiXhEaD_Link</span> <span style="color: #000000; font-weight: bold;">font</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Tahoma, Arial, <span style="color: #993333;">sans-serif</span>; <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #cc00cc;">#F8FBFC</span>; <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#CCCCCC</span>; <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">2px</span> <span style="color: #933;">6px</span> <span style="color: #933;">3px</span> <span style="color: #933;">6px</span>; <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E2EFF3</span>; <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/style&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>
จุดสังเกตุง่ายๆ ใน css ถ้า ขึ้นด้วย . คือชื่อ class แต่ถ้าขึ้นด้วย # คือ id ของ div หรือ span<br />
- บรรทัดที่ 7 เริ่มกำหนด class ชื่อ SiXhEaD_Link<br />
- บรรทัดที่ 8 ถ้าเป็น link<br />
- บรรทัดที่ 9 ถ้าเป็น link และถูก mouse over<br />
- บรรทัดที่ 10 tag font</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;SiXhEaD_Link&quot;</span> <span style="color: #000066;">align</span>=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/font.html"><span style="color: #000000; font-weight: bold;">&lt;font&gt;</span></a></span><span style="color: #ddbb00;">&amp;laquo;</span> First<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/font&gt;</span></span> <span style="color: #009900;"><a href="http://december.com/html/4/element/font.html"><span style="color: #000000; font-weight: bold;">&lt;font&gt;</span></a></span><span style="color: #ddbb00;">&amp;#8249;</span> Prev<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/font&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;javascript:void(0);&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
....
....
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<p>
ทีนี้เราก็ใส่ div ครอบ link ทั้งหมดที่เราต้องการ และใส่ class=&quot;SiXhEaD_Link&quot; เท่านั้นเป็นอันจบ </p>
<p><map name='google_ad_map_13_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/13?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_13_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=13&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F01%2F29%2Fnice-link-with-css%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/01/29/nice-link-with-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

