<?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>哇寶部落格 &#187; javascript</title>
	<atom:link href="http://blog.wabow.com/archives/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.wabow.com</link>
	<description>Wabow Information Inc. Blog</description>
	<lastBuildDate>Fri, 20 Jan 2012 09:19:43 +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>[Javascript] Instant-相簿效果</title>
		<link>http://blog.wabow.com/archives/750</link>
		<comments>http://blog.wabow.com/archives/750#comments</comments>
		<pubDate>Thu, 09 Apr 2009 06:42:22 +0000</pubDate>
		<dc:creator>abu</dc:creator>
				<category><![CDATA[技術分享]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.wabow.com/?p=750</guid>
		<description><![CDATA[官網：http://flesler.blogspot.com/ 展示：http://flesler.blogspot.com/ 如果要將一般圖片加上邊緣鋸齒或是圓角，或是傾斜，或是陰影等等，這些效果要花多久時間呢？ 答案是短短幾秒，透過instant這款外掛，只要載入後，在圖片加上class，即可完成複雜的圖片樣式設計，讓硬梆梆的圖片，頓時生動了起來，更重要的是，不需要任何繁雜的手續，只需兩三行程式就可完成 ( ps :本款外掛在firefox、ie、opera、safari也都可正常使用 ) instant是透過img標籤內的class設定，將原始圖片加上各式特效，像是ishadow40中的"40"是設定陰影的色彩，數字越大代表顏色越深，itiltleft中的"left"是設定圖片的傾斜方向，可用left或是right讓圖片往左或往右，設定上很多變化～ 使用方式介紹： 載入 instant &#60;script src=&#34;instant.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; html 格式 &#60;img class=&#34;instant itiltleft icolorFFFCE9 ishadow40 historical&#34; src=&#34;image.gif&#34; alt=&#34;&#34; /&#62; 我們來試試看，若是將lativ女裝商品圖，置換成相簿效果！ 原始樣式： 套用之後： 效果還不錯，個人覺得，左右歪斜可用亂數去跑，讓整個商品列表更加活潑，不過，這可能見仁見智，有人會覺得這樣太亂，還是規則的正正方方樣式比較簡潔有力，不過，能有多一種選擇方式呈現樣式，也是不錯]]></description>
			<content:encoded><![CDATA[<ul>
<li>官網：<a href="http://www.netzgesta.de/instant/">http://flesler.blogspot.com/</a></li>
<li>展示：<a href="http://www.netzgesta.de/instant/">http://flesler.blogspot.com/</a></li>
</ul>
<p>如果要將一般圖片加上邊緣鋸齒或是圓角，或是傾斜，或是陰影等等，這些效果要花多久時間呢？<br />
<img class="aligncenter size-full wp-image-752" src="http://blog.wabow.com/wp-content/uploads/2009/04/instant_s1.gif" alt="instant_s1" width="428" height="415" /></p>
<p><span id="more-750"></span>答案是短短幾秒，透過instant這款外掛，只要載入後，在圖片加上class，即可完成複雜的圖片樣式設計，讓硬梆梆的圖片，頓時生動了起來，更重要的是，不需要任何繁雜的手續，只需兩三行程式就可完成 ( ps :本款外掛在firefox、ie、opera、safari也都可正常使用 )</p>
<p><img class="aligncenter size-full wp-image-753" src="http://blog.wabow.com/wp-content/uploads/2009/04/instant_s2.gif" alt="instant_s2" width="673" height="311" /></p>
<p>instant是透過img標籤內的class設定，將原始圖片加上各式特效，像是ishadow40中的"40"是設定陰影的色彩，數字越大代表顏色越深，itiltleft中的"left"是設定圖片的傾斜方向，可用left或是right讓圖片往左或往右，設定上很多變化～</p>
<p>使用方式介紹：</p>
<p>載入 instant</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;instant.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>html 格式</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;instant itiltleft icolorFFFCE9 ishadow40 historical&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image.gif&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>我們來試試看，若是將lativ女裝商品圖，置換成相簿效果！<br />
原始樣式：<br />
<img class="aligncenter size-full wp-image-767" src="http://blog.wabow.com/wp-content/uploads/2009/04/instant_s3_a.gif" alt="instant_s3_a" width="500" /><br />
套用之後：<br />
<img class="aligncenter size-full wp-image-767" src="http://blog.wabow.com/wp-content/uploads/2009/04/instant_s3_b.gif" alt="instant_s3_a" width="500" /></p>
<p>效果還不錯，個人覺得，左右歪斜可用亂數去跑，讓整個商品列表更加活潑，不過，這可能見仁見智，有人會覺得這樣太亂，還是規則的正正方方樣式比較簡潔有力，不過，能有多一種選擇方式呈現樣式，也是不錯</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wabow.com/archives/750/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

