<?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>WebDesign Collection &#187; image</title>
	<atom:link href="http://webdesigncollection.cn/wordpress/tag/image/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesigncollection.cn/wordpress</link>
	<description>Let&#039;s get the most updated knowleges about web design.</description>
	<lastBuildDate>Wed, 02 Jun 2010 05:49:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Stop Image Hotlinking through .htaccess</title>
		<link>http://webdesigncollection.cn/wordpress/photos/how-to-stop-image-hotlinking-through-htaccess/</link>
		<comments>http://webdesigncollection.cn/wordpress/photos/how-to-stop-image-hotlinking-through-htaccess/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 14:18:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photos]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://webdesigncollection.cn/wordpress/?p=468</guid>
		<description><![CDATA[
			
				
			
		
You can stop others from hotlinking your site’s files by placing a file called .htaccess in your site root (main) directory. The period before the name means the file is hidden, so you may want to edit your file as htaccess.txt, upload it to your server, then rename the txt file to .htaccess in your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwebdesigncollection.cn%2Fwordpress%2Fphotos%2Fhow-to-stop-image-hotlinking-through-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwebdesigncollection.cn%2Fwordpress%2Fphotos%2Fhow-to-stop-image-hotlinking-through-htaccess%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>You can stop others from hotlinking your site’s files by placing a file called .htaccess in your site root (main) directory. The period before the name means the file is hidden, so you may want to edit your file as htaccess.txt, upload it to your server, then rename the txt file to .htaccess in your directory. Contact your web host on how to access your directories and configure your .htaccess file.</p>
<p>Before writing code in your .htaccess file, there is a online site which provide you create your Hotlink protection of images file.</p>
<h2><a href="http://www.htaccesstools.com/hotlink-protection/">Htaccess Tools</a></h2>
<p>Use this generator to create a .htaccess file for hotlink protection of your images and pictures. Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images.<br />
Example: Your site url is www.wparena.com. To stop hotlinking of your images from other sites and display a replacement image called hotlink.gif from our server, place this code in your .htaccess file:<span id="more-468"></span></p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^http://(.+.)?wparena.com/ [NC]<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteRule .*.(jpe?g|gif|bmp|png)$ http://altlab.com/hotlink.gif [L]</p>
<p>The first line of the above code begins the rewrite. The second line matches any requests from your own wparena.com url. The [NC] code means “No Case”, meaning match the url regardless of being in upper or lower case letters. The third line means allow empty referrals. The last line matches any files ending with the extension jpeg, jpg, gif, bmp, or png. This is then replaced by the hotlink.gif image from the altlab.com server. You could easily use your own hotlink image by placing an image file in your site’s directory and pointing to that file.</p>
<p>To stop hotlinking from specific outside domains only, such as myspace.com, blogspot.com and livejournal.com, but allow any other web site to hotlink images:</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} ^http://(.+.)?myspace.com/ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} ^http://(.+.)?blogspot.com/ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} ^http://(.+.)?livejournal.com/ [NC]<br />
RewriteRule .*.(jpe?g|gif|bmp|png)$ http://altlab.com/hotlink.gif [L]</p>
<p>You can add as many different domains as needed. Each RewriteCond line should end with the [NC,OR] code. NC means to ignore upper and lower case. OR means “Or Next”, as in, match this domain or the next line that follows. The last domain listed omits the OR code since you want to stop matching domains after the last RewriteCond line.</p>
<p>You can display a 403 Forbidden error code instead of an image. Replace the last line of the previous examples with this line:</p>
<p>RewriteRule .*.(jpe?g|gif|bmp|png)$ – [F]</p>
<p>Warning: Do not use .htaccess to redirect image hotlinks to another HTML page or server that isn’t your own (such as this html page). Hotlinked images can only be replaced by other images, not with an HTML page.</p>
<p>As with any htaccess rewrites, you may block some legitimate traffic (such as users behind proxies or firewalls) using these techniques.</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesigncollection.cn/wordpress/photos/how-to-stop-image-hotlinking-through-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going nuts with CSS transitions</title>
		<link>http://webdesigncollection.cn/wordpress/css/going-nuts-with-css-transitions/</link>
		<comments>http://webdesigncollection.cn/wordpress/css/going-nuts-with-css-transitions/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 04:24:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://webdesigncollection.cn/wordpress/?p=66</guid>
		<description><![CDATA[
			
				
			
		

This article is going to show you how CSS 3 transforms and WebKit transitions can add zing to the way you present images on your site. You&#8217;ll see it&#8217;s so easy to handle the image effects with only writing lines of CSS words, no javascripts, no coding. just it is!
Related properties include:

-webkit-box-shadow
-moz-box-shadow
box-shadow


-webkit-transform
-moz-transform
transform


-webkit-transition

Read the original article [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwebdesigncollection.cn%2Fwordpress%2Fcss%2Fgoing-nuts-with-css-transitions%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwebdesigncollection.cn%2Fwordpress%2Fcss%2Fgoing-nuts-with-css-transitions%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignnone" src="http://media.24ways.org/2009/14/3/screenshot.png" alt="" width="540" height="300" /></p>
<p>This article is going to show you how CSS 3 transforms and WebKit transitions can add zing to the way you present images on your site. You&#8217;ll see it&#8217;s so easy to handle the image effects with only writing lines of CSS words, no javascripts, no coding. just it is!</p>
<p>Related properties include:</p>
<ul>
<li>-webkit-box-shadow</li>
<li>-moz-box-shadow</li>
<li>box-shadow</li>
</ul>
<ul>
<li>-webkit-transform</li>
<li>-moz-transform</li>
<li>transform</li>
</ul>
<ul>
<li>-webkit-transition</li>
</ul>
<p><a href="http://24ways.org/2009/going-nuts-with-css-transitions">Read the original article here.</a></p>
<p>Note with the hovering examples that the animation will reverse itself when the mouse moves out of the div. Any time the property changes value, the animation will simply start again with the current position as the from value and the new value as the destination. The transition properties of the source state are used to figure out how to animate to the new target state.<span id="more-66"></span></p>
<p>The key points to understand about transitions are:<br />
(1) They are implicit animations. Scripts and stylesheets can be written as normal, and the animations will simply happen implicitly as the properties change values.<br />
(2) They degrade gracefully. Browsers that do not support transitions simply won’t animate, but otherwise all code and style rules can remain the same.</p>
<p>Here are more detailed descriptions of the properties. All of these properties can take multiple comma-separated values.</p>
<p>transition-property<br />
Values: none | all |<br />
Initial Value: all<br />
Description: Specifies what property triggers an animation. A value of none means there is no transition. A value of all means that every animatable property triggers an animation. Otherwise an animation will only trigger when the exact specified property changes value.</p>
<p>transition-duration<br />
Values:<br />
Inital Value: 0<br />
Description: Specifies how long the transition should take. The default is 0.</p>
<p>transition-timing-function<br />
Values: ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier(x1, y1, x2, y2)<br />
Initial Value: ease<br />
Description: The transition-timing-function property describes how the animation will proceed over time. Keywords can be used for common functions or the control points for a cubic bezier function can be given for complete control of the transition function. To specify a cubic bezier function, you give an X and Y values for 2 of the control points of the curve. Point P0 is implicitly set to (0,0) and P3 is implicitly set to (1,1). These 4 points are used to compute a cubic bezier curve.</p>
<p>The timing function keywords have the following definitions:<br />
linear – The linear function just returns as its output the input that it received.<br />
defaultease – The default function, ease, is equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).<br />
ease-in – The ease-in function is equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).<br />
ease-out – The ease-out function is equivalent to cubic-bezier(0, 0, 0.58, 1.0).<br />
ease-in-out – The ease-in-out function is equivalent to cubic-bezier(0.42, 0, 0.58, 1.0)<br />
cubic-bezier – Specifies a cubic-bezier curve whose P0 and P3 points are (0,0) and (1,1) respectively. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).</p>
<p>Here&#8217;s <a href="http://designgallery.oxyhost.com/image%20transition%20showcase.html">another demo</a> created by myself after reading this article. really exciting exercise!!</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesigncollection.cn/wordpress/css/going-nuts-with-css-transitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Easy and Fast CSS Techniques for Faux Image Cropping</title>
		<link>http://webdesigncollection.cn/wordpress/css/3-easy-and-fast-css-techniques-for-faux-image-cropping/</link>
		<comments>http://webdesigncollection.cn/wordpress/css/3-easy-and-fast-css-techniques-for-faux-image-cropping/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 13:44:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://webdesigncollection.cn/wordpress/?p=56</guid>
		<description><![CDATA[
			
				
			
		

This article is a summary of a 3 fast and easy CSS techniques you can use to display only a portion of an image in your content. All techniques explained here actually need only couple of lines of CSS. However, it is not cropping in a real sense of the word, we are not cutting [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwebdesigncollection.cn%2Fwordpress%2Fcss%2F3-easy-and-fast-css-techniques-for-faux-image-cropping%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwebdesigncollection.cn%2Fwordpress%2Fcss%2F3-easy-and-fast-css-techniques-for-faux-image-cropping%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignnone" src="http://cssglobe.com/lab/imagecrop/02.jpg" alt="" width="581" height="248" /></p>
<p>This article is a summary of a 3 fast and easy CSS techniques you can use to display only a portion of an image in your content. All techniques explained here actually need only couple of lines of CSS. However, it is not cropping in a real sense of the word, we are not cutting the image down to a certain size (CSS can&#8217;t do that yet) we are merely hiding the &#8220;extra&#8221; and displaying only a part of the image we want. These techniques can be very helpful if you need to keep images at a certain size, i.e. thumbnails in the news section or something similar. Being able to use CSS to control which portion of image to display is a great bonus.</p>
<p><a href="http://cssglobe.com/post/6089/3-easy-and-fast-css-techniques-for-faux-image">Click here to read the original article.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesigncollection.cn/wordpress/css/3-easy-and-fast-css-techniques-for-faux-image-cropping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
