<?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>Horn Network &#187; swfobject</title>
	<atom:link href="http://klcin.tw/net/tag/swfobject/feed" rel="self" type="application/rss+xml" />
	<link>http://klcin.tw/net</link>
	<description>Horn Network (.NET, ASP.NET, C#, VB.NET, JavaScript, Ubuntu, Android ...)</description>
	<lastBuildDate>Fri, 04 Mar 2011 07:25:53 +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>[WP]Lightbox加強版-可播放Youtube影片</title>
		<link>http://klcin.tw/net/wp-plugin-lightbox-youtube</link>
		<comments>http://klcin.tw/net/wp-plugin-lightbox-youtube#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:49:15 +0000</pubDate>
		<dc:creator>klcintw</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[檔案下載]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[swfobject]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://klcin.tw/net/?p=4</guid>
		<description><![CDATA[Lightbox 效果已經有許多現成的方法了，Blogspot界有hack在Wordpress界裡也有Plugin可以套用。但是今天要介紹的可不單單只是show show圖片而已，它還能播放Youtube的影片呢！ 效果： 請點 許願池的希臘少女 說明： 這個方法主要是改造由Giuseppe Argento製作的外掛程式(plugin) &#8211; Lightbox 2 資料來源：http://wordpress.org/extend/plugins/lightbox-2-wordpress-plugin/ This plugin includes the new Lightbox JS v2.04 javascript written by Lokesh Dhakar and got transformed into a WordPress Plugin by me. Use the title attribute if you want to show a caption. Plugin Homepage 並參考Javascritp套件 &#8211; Videobox: Lightbox for videos 資料來源：http://videobox-lb.sourceforge.net/ [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Lightbox </strong>效果已經有許多現成的方法了，Blogspot界有hack在Wordpress界裡也有Plugin可以套用。但是今天要介紹的可不單單只是show show圖片而已，它還能播放Youtube的影片呢！</p>
<p>
<h2>效果：</h2>
</p>
<p>請點 <a title="許願池的希臘少女" href="http://tw.youtube.com/watch?v=3gluvKTtTNw" rel="lightbox">許願池的希臘少女</a></p>
</p>
<p><span id="more-4"></span></p>
<h2>說明：</h2>
</p>
<p>這個方法主要是改造由Giuseppe Argento製作的外掛程式(plugin) &#8211; Lightbox 2</p>
<blockquote><p>資料來源：<a title="http://wordpress.org/extend/plugins/lightbox-2-wordpress-plugin/" href="http://wordpress.org/extend/plugins/lightbox-2-wordpress-plugin/">http://wordpress.org/extend/plugins/lightbox-2-wordpress-plugin/</a>       <br />This plugin includes the new <a href="http://www.lokeshdhakar.com/projects/lightbox2/" target="_blank">Lightbox JS</a> v2.04 javascript written by Lokesh Dhakar and got transformed into a WordPress Plugin by me. Use the title attribute if you want to show a caption. <a href="http://www.4mj.it/lightbox-js-v20-wordpress/">Plugin Homepage</a></p>
</blockquote>
<p>並參考Javascritp套件 &#8211; Videobox: Lightbox for videos</p>
<blockquote><p>資料來源：<a title="http://videobox-lb.sourceforge.net/" href="http://videobox-lb.sourceforge.net/">http://videobox-lb.sourceforge.net/</a>       <br />Videobox is a <strong>6kb</strong> script, which shows your videos in the page with an overlay. It was inspired from <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox.v2</a> and uses some of the <a href="http://www.digitalia.be/software/slimbox/">Slimbox</a>&#8216;s code. It&#8217;s written for the wonderful <a href="http://mootools.net">mootools</a> library. And used <a href="http://blog.deconcept.com/swfobject/">swfobject</a> to embed flash.</p>
</blockquote>
<p>改寫成prototype適用的方法並加入<a href="http://blog.deconcept.com/swfobject/">swfobject</a>處理Youtube影片播放。</p>
<p>
<h2>安裝：</h2>
</p>
<ol>
<li>下載外掛程式 <a href="http://wordpress.org/extend/plugins/lightbox-2-wordpress-plugin/" target="_blank">Lightbox 2</a>，並將檔案解壓縮（如C:\WP\Plugins）。 </li>
<li>下載 <a href="http://code.google.com/p/swfobject/" target="_blank">swfobject</a>，取出其中的 swfobject.js 複製到 C:\WP\Plugins\lightbox-2-wordpress-plugin\lightbox\js </li>
<li>下載經過修改的 <a href="http://www.box.net/shared/kl7hviqkg4" target="_blank">lightbox2.js</a> 更名為 lightbox.js 再複製到 C:\WP\Plugins\lightbox-2-wordpress-plugin\lightbox\js       <br />或       <br />修改 C:\WP\Plugins\lightbox-2-wordpress-plugin\lightbox.php 將 其中的 lightbox.js 改成 lightbox2.js </li>
<li>將C:\WP\Plugins\lightbox-2-wordpress-plugin 整個目錄上傳到網站上的/wp-content/plugins/ </li>
<li>進入管理介面，啟用(activate)外掛程式Lightbox 2。 </li>
</ol>
<p>PS：如果嫌麻煩這裡有打包好的<a href="http://www.box.net/shared/6vq2jdhc08" target="_blank">懶人包</a>，請下載使用。</p>
<p>
<h2>用法：</h2>
</p>
<ul>
<li>在要使用這個效果的連結加上 rel=”lightbox”，程式會判斷是一般圖片或是Youtube的影片。      <br />加上 title=”說明”會在lightbox左下角出現說明。       
<pre class="brush: html">&lt;a title=&quot;許願池的希臘少女&quot; href=&quot;http://tw.youtube.com/watch?v=3gluvKTtTNw&quot; rel=&quot;lightbox&quot;&gt;許願池的希臘少女&lt;/a&gt;</pre>
<p><a href="http://klcin.tw/net/images/WPPlugin_142AA/snap002.png" rel="lightbox"><img title="snap002" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="177" alt="snap002" src="http://klcin.tw/net/images/WPPlugin_142AA/snap002_thumb.png" width="244" border="0" /></a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://klcin.tw/net/wp-plugin-lightbox-youtube/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

