<?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>TKSham - More than just a Developer &#187; jQuery</title>
	<atom:link href="http://www.tksham.com/blog/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tksham.com/blog</link>
	<description>Just another weblog from CUHK&#039;s student</description>
	<lastBuildDate>Fri, 20 Aug 2010 09:49:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HTML5 placeholder</title>
		<link>http://www.tksham.com/blog/2010/06/15/html5-placeholder/</link>
		<comments>http://www.tksham.com/blog/2010/06/15/html5-placeholder/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 02:42:44 +0000</pubDate>
		<dc:creator>Kwong</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://www.tksham.com/blog/?p=1049</guid>
		<description><![CDATA[前陣子上上海的時候, 在有空的時候進修一下HTML5
(老實說上班實在太忙, 沒有太多學習的時間, 只好在排隊 / 乘車 / 無聊 的時候用iPhone 看一下電子書&#8230;)
想不到原來html 5 support placeholder 這種UI -

(Placeholder &#8211; When you click on (or tab to) the input form, the placeholder text disappears ) 



這種提示不單比較可有更多visible area (不用在旁邊再寫這個field 要填什麼),
更有方向去令user 按下去
 
(我也忘了這個placeholder 的script 是不是自己寫了, 但用jQuery 來寫真的簡單易明)

add class=&#8221;auto-clear placeholder&#8221; to the input / textarea
CSS
.placeholder {
color:#999999;
}*
$(&#8216;.auto-clear&#8217;).focus(function(){
if($(this).val() == $(this).attr(&#8216;defaultValue&#8217;))
{
$(this).val(&#8221;);
$(this).removeClass(&#8216;placeholder&#8217;);
}
});
$(&#8216;.auto-clear&#8217;).blur(function(){
if($(this).val() == &#8221;)
{
$(this).val($(this).attr(&#8216;defaultValue&#8217;));
$(this).addClass(&#8216;placeholder&#8217;);
}
});
至於這一個就是用真實的html 5 來做testing, 你可以試試用不同的browser [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial;"><span style="line-height: normal;">前陣子上上海的時候, 在有空的時候進修一下HTML5<br />
(老實說上班實在太忙, 沒有太多學習的時間, 只好在排隊 / 乘車 / 無聊 的時候用iPhone 看一下電子書&#8230;)</span></span></p>
<form><span style="font-family: Arial;"><span style="line-height: normal;">想不到原來html 5 support placeholder 這種UI -<br />
</span></span></form>
<form><span style="font-family: Arial;"><span style="line-height: normal;">(Placeholder &#8211; When you click on (or tab to) the input form, the placeholder text disappears ) </span></span></form>
<form><span style="font-family: Arial;"><span style="line-height: normal;"><img class="alignnone size-full wp-image-1052" title="placerholder without mouse click" src="http://www.tksham.com/blog/wp-content/uploads/2010/06/placerholder-1.jpg" alt="" width="455" height="82" /></p>
<p></span></span></form>
<form><span style="font-family: Arial;"><span style="line-height: normal;"><img title="placerholder with mouse click" src="http://www.tksham.com/blog/wp-content/uploads/2010/06/placerholder-2.jpg" alt="" width="455" height="82" /></span></span></form>
<form><span style="font-family: Arial;"><span style="line-height: normal;">這種提示不單比較可有更多visible area (不用在旁邊再寫這個field 要填什麼),<br />
更有方向去令user 按下去</span></span></form>
<form> </form>
<form><span style="font-family: Arial;"><span style="line-height: normal;">(我也忘了這個placeholder 的script 是不是自己寫了, 但用jQuery 來寫真的簡單易明)</span></span></form>
<form>
<blockquote><p>add class=&#8221;auto-clear placeholder&#8221; to the input / textarea</p>
<p>CSS<br />
.placeholder {<br />
color:#999999;<br />
}*</p>
<p>$(&#8216;.auto-clear&#8217;).focus(function(){<br />
if($(this).val() == $(this).attr(&#8216;defaultValue&#8217;))<br />
{<br />
$(this).val(&#8221;);</p>
<p>$(this).removeClass(&#8216;placeholder&#8217;);<br />
}<br />
});</p>
<p>$(&#8216;.auto-clear&#8217;).blur(function(){<br />
if($(this).val() == &#8221;)<br />
{<br />
$(this).val($(this).attr(&#8216;defaultValue&#8217;));<br />
$(this).addClass(&#8216;placeholder&#8217;);<br />
}<br />
});</p></blockquote>
<p>至於這一個就是用真實的html 5 來做testing, 你可以試試用不同的browser 來試試看</p>
<form>
<input name="q" placeholder="Search Bookmarks and History">
</form>
<p>Reference -<br />
<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-placeholder-attribute"> HTML5 Draft Standard — 9 June 2010</a><br />
<a href="http://www.ibm.com/developerworks/web/tutorials/wa-html5/wa-html5-pdf.pdf"> Create modern Web sites using HTML5 and CSS3</a><br />
<a href="http://www.box.net/shared/8qnxj922oc">WOORK &#8211; HTML 5 Cheat Sheet.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tksham.com/blog/2010/06/15/html5-placeholder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery animation-related plugin</title>
		<link>http://www.tksham.com/blog/2010/04/18/jquery-animation-related-plugin/</link>
		<comments>http://www.tksham.com/blog/2010/04/18/jquery-animation-related-plugin/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 16:00:07 +0000</pubDate>
		<dc:creator>Kwong</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.tksham.com/blog/?p=744</guid>
		<description><![CDATA[很久沒有寫過比較Technical 的文章~哈哈
這陣子比較忙, 寫Technical要專業要慢工出細貨嘛, 不然就不要寫~
這次為大家介紹一下自己近來見過jQuery 有趣的plugin
Portfolio of Kay Lo.

http://ohmygodhavemercy.com/folios/
YoxView

Demo: http://www.yoxigen.com/yoxview/
http://workshop.rs/projects/jqfancytransitions/
QueryLoader

http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/
Demo: http://www.gayadesign.com/scripts/queryLoader/

Demo with self-customized animation: http://tksham.com/cuace/
Other Related Blog Post:
http://webdesignledger.com/tutorials/13-super-useful-jquery-content-slider-scripts-and-tutorials
http://vandelaydesign.com/blog/web-development/jquery-image-galleries/
http://www.queness.com/post/222/10-jquery-photo-gallery-and-slider-plugins
]]></description>
			<content:encoded><![CDATA[<p>很久沒有寫過比較Technical 的文章~哈哈<br />
這陣子比較忙, 寫Technical要專業要慢工出細貨嘛, 不然就不要寫~<br />
這次為大家介紹一下自己近來見過jQuery 有趣的plugin<br />
<strong>Portfolio of Kay Lo.</strong><br />
<a href="http://ohmygodhavemercy.com/folios/"><img class="alignnone size-full wp-image-892" title="portfolio-Kay-Lo." src="http://www.tksham.com/blog/wp-content/uploads/2010/04/portfolio-Kay-Lo..jpg" alt="" width="500" height="440" /></a></p>
<p><a href="http://ohmygodhavemercy.com/folios/">http://ohmygodhavemercy.com/folios/</a></p>
<p><strong>YoxView</strong></p>
<p><strong><img class="alignnone size-full wp-image-883" title="YoxView" src="http://www.tksham.com/blog/wp-content/uploads/2010/04/YoxView.jpg" alt="" width="500" height="241" /></strong></p>
<p><span style="color: #ffffff;">Demo:</span> <a href="http://www.yoxigen.com/yoxview/">http://www.yoxigen.com/yoxview/</a></p>
<p><a href="http://workshop.rs/projects/jqfancytransitions/">http://workshop.rs/projects/jqfancytransitions/</a><br />
<strong>QueryLoader</strong><br />
<img class="alignnone" title="QueryLoader" src="http://www.gayadesign.com/wp-content/uploads/2009/09/qloader.jpg" alt="" width="580" height="173" /></p>
<p><a href="http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/">http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/</a></p>
<p><span style="color: #ffffff;">Demo: </span><a href="http://www.gayadesign.com/scripts/queryLoader/">http://www.gayadesign.com/scripts/queryLoader/</a></p>
<p><img class="alignnone size-full wp-image-884" title="cuace" src="http://www.tksham.com/blog/wp-content/uploads/2010/04/cuace.jpg" alt="" width="500" height="343" /></p>
<p><span style="color: #ffffff;">Demo with self-customized animation: </span><a href="http://tksham.com/cuace/">http://tksham.com/cuace/</a></p>
<p>Other Related Blog Post:</p>
<p><a href="http://webdesignledger.com/tutorials/13-super-useful-jquery-content-slider-scripts-and-tutorials">http://webdesignledger.com/tutorials/13-super-useful-jquery-content-slider-scripts-and-tutorials</a></p>
<p><a href="http://vandelaydesign.com/blog/web-development/jquery-image-galleries/">http://vandelaydesign.com/blog/web-development/jquery-image-galleries/</a></p>
<p><a href="http://www.queness.com/post/222/10-jquery-photo-gallery-and-slider-plugins">http://www.queness.com/post/222/10-jquery-photo-gallery-and-slider-plugins</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tksham.com/blog/2010/04/18/jquery-animation-related-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Animation + IE z-index bug</title>
		<link>http://www.tksham.com/blog/2010/02/02/jquery-animation-ie-z-index-bug/</link>
		<comments>http://www.tksham.com/blog/2010/02/02/jquery-animation-ie-z-index-bug/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 16:00:01 +0000</pubDate>
		<dc:creator>Kwong</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.tksham.com/blog/?p=541</guid>
		<description><![CDATA[
近來很多人罵iPad 不支授Flash (最少Developer 都在罵&#8230;)
反正學習在I.T. 是少不了的環節,
還是乖乖的練習一下不用Flash 來做Animation.
星期六沒有Daily Inspiration
就是要幫學長設計簡單的網頁
http://www.tksham.com/cuace/
因為不擅長出Graphic Design&#8230;
用了很多時間去處理字型跟排版的問題
花了更多時間去處理IE 的問題&#8230;
因為IE 6 跟IE 7 的z-index bug&#8230;
簡單的fix bug 的方法就是 child 的z-index 要跟parent 的比一比
伸延閱讀 -
iPad &#8211;  The iPad provides the ultimate browsing experience? 
&#8220;Millions of websites use Flash. Get used to the blue legos.&#8221;
IE z-index bug: http://livebinders.com/play/play_or_edit/1808
Original animation inspiration-
http://ohmygodhavemercy.com/folios/
http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/
css hack used for IE -
http://bradkellett.com/p/documenting-the-hacks-css-browser-targeting/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tksham.com/blog/wp-content/uploads/2010/02/jquery-animation.jpg"><img class="alignnone size-full wp-image-544" title="jquery-animation" src="http://www.tksham.com/blog/wp-content/uploads/2010/02/jquery-animation.jpg" alt="" width="235" height="150" /></a></p>
<p>近來很多人罵iPad 不支授Flash (最少Developer 都在罵&#8230;)<br />
反正學習在I.T. 是少不了的環節,<br />
還是乖乖的練習一下不用Flash 來做Animation.<br />
星期六沒有Daily Inspiration<br />
就是要幫學長設計簡單的網頁</p>
<p><a href="http://www.tksham.com/cuace/">http://www.tksham.com/cuace/</a></p>
<p>因為不擅長出Graphic Design&#8230;<br />
用了很多時間去處理字型跟排版的問題</p>
<p>花了更多時間去處理IE 的問題&#8230;</p>
<div id="attachment_542" class="wp-caption alignnone" style="width: 310px"><a href="http://www.tksham.com/blog/wp-content/uploads/2010/02/browsers-cuace.png"><img class="size-medium wp-image-542" title="browsers-cuace" src="http://www.tksham.com/blog/wp-content/uploads/2010/02/browsers-cuace-300x135.png" alt="" width="300" height="135" /></a><p class="wp-caption-text">Opening IE6, IE7, IE8, Firefox, Chrome...</p></div>
<p>因為IE 6 跟IE 7 的z-index bug&#8230;</p>
<p>簡單的fix bug 的方法就是 child 的z-index 要跟parent 的比一比</p>
<p>伸延閱讀 -</p>
<p>iPad &#8211; <a href="http://theflashblog.com/?p=1703"> The iPad provides the ultimate browsing experience? </a><br />
&#8220;Millions of websites use Flash. Get used to the blue legos.&#8221;</p>
<p>IE z-index bug: <a href="http://livebinders.com/play/play_or_edit/1808">http://livebinders.com/play/play_or_edit/1808</a></p>
<p>Original animation inspiration-<br />
<a href="http://ohmygodhavemercy.com/folios/" target="_blank">http://ohmygodhavemercy.com/folios/<br />
</a><a href="http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/" target="_blank">http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/</a></p>
<p>css hack used for IE -<br />
<a href="http://bradkellett.com/p/documenting-the-hacks-css-browser-targeting/">http://bradkellett.com/p/documenting-the-hacks-css-browser-targeting/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tksham.com/blog/2010/02/02/jquery-animation-ie-z-index-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
