<?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>It's Called Web Design &#187; image</title>
	<atom:link href="http://itscalledwebdesign.com/tag/image/feed/" rel="self" type="application/rss+xml" />
	<link>http://itscalledwebdesign.com</link>
	<description>Web 2.0 is so 2004. . . .</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Random Image</title>
		<link>http://itscalledwebdesign.com/tutorials/random-image/</link>
		<comments>http://itscalledwebdesign.com/tutorials/random-image/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 21:13:56 +0000</pubDate>
		<dc:creator>eckert</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[randomizer]]></category>
		<category><![CDATA[rotator]]></category>

		<guid isPermaLink="false">http://itscalledwebdesign.com/?p=592</guid>
		<description><![CDATA[Do you want to have a group of random images pop-up on the page using PHP? Before we go any further, this does not allow each image to link to a different location. Copy this code into your header and modify it to represent wherever the images are located: &#60;style type="text/css"&#62; #randomimage { background:url(http://yourdomain.com/imagesfolder/randomimage&#60;?php echo [...]]]></description>
			<content:encoded><![CDATA[<p>Do you want to have a group of random images pop-up on the page using PHP?<br />
<span id="more-592"></span><br />
Before we go any further, this does not allow each image to link to a different location.</p>
<p>Copy this code into your header and modify it to represent wherever the images are located:</p>
<pre>&lt;style type="text/css"&gt;
#randomimage { background:url(http://yourdomain.com/imagesfolder/randomimage&lt;?php echo (rand()%10); ?&gt;.jpg); }
&lt;/style&gt;</pre>
<p>Copy this code into your page where you want the images to show up:</p>
<pre>&lt;div id="randomimage"&gt;&lt;/div&gt;</pre>
<p>Copy this into your CSS and modify accordingly:</p>
<pre>#randomimage {
}</pre>
<p>Now, you can change the name of the div and you can also put the images wherever you want, just make sure you change the path so that they match.</p>
<p>One very important thing about this code is that you need to have 10 images.  Also, the images need to be named very specifically.</p>
<p>Using this code, the images have to be named: randomimage0.jpg, randomimage1.jpg&#8230; and continuing up through randomimage9.jpg.  If you do not have an image representing this, then nothing will show up on your page.</p>
<p>While not necessarily the best php image randomizer I&#8217;ve seen, it&#8217;s quick and will get the job done.</p>
]]></content:encoded>
			<wfw:commentRss>http://itscalledwebdesign.com/tutorials/random-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Hovers</title>
		<link>http://itscalledwebdesign.com/tutorials/image-hovers/</link>
		<comments>http://itscalledwebdesign.com/tutorials/image-hovers/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 16:54:55 +0000</pubDate>
		<dc:creator>eckert</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[img]]></category>

		<guid isPermaLink="false">http://itscalledwebdesign.com/?p=269</guid>
		<description><![CDATA[If you have an image and you want to use CSS to make a hover, here&#8217;s how. This code simply changes the border color, but you can change the CSS to make the hover do anything you want. img {border: 1px solid #c5c5c5;} img:hover {border: 1px solid #000;} Click HERE for an example. If you [...]]]></description>
			<content:encoded><![CDATA[<p>If you have an image and you want to use CSS to make a hover, here&#8217;s how.<br />
<span id="more-269"></span> This code simply changes the border color, but you can change the CSS to make the hover do anything you want.</p>
<pre><span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;">img {</span><span style="font-size: 10pt; font-family: Arial;">border: 1px solid #c5c5c5;}</span></span>
<span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;">img</span></span><span><span><span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;">:hover</span></span></span></span><span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;"> {border: 1px solid #000;}
</span></span></pre>
<p>Click <a href="http://itscalledwebdesign.com/files/hovertest.html">HERE</a> for an example.</p>
<p>If you have the code inside a div (i.e. picture), you can add that id before the code.</p>
<pre><span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;">#picture img {</span><span style="font-size: 10pt; font-family: Arial;">border: 1px solid #c5c5c5;}</span></span>
<span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;">#picture img</span></span><span><span><span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;">:hover</span></span></span></span><span style="font-size: x-small; font-family: Arial;"><span style="font-size: 10pt; font-family: Arial;"> {border: 1px solid #000;}</span></span></pre>
]]></content:encoded>
			<wfw:commentRss>http://itscalledwebdesign.com/tutorials/image-hovers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Better image navigation</title>
		<link>http://itscalledwebdesign.com/tutorials/better-image-navigation/</link>
		<comments>http://itscalledwebdesign.com/tutorials/better-image-navigation/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 14:52:13 +0000</pubDate>
		<dc:creator>eckert</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[nav]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[next]]></category>
		<category><![CDATA[previous]]></category>

		<guid isPermaLink="false">http://itscalledwebdesign.com/?p=16</guid>
		<description><![CDATA[if you are using the wordpress image.php to show your photos, you know that the next and previous photo option sucks.  I&#8217;m sure they&#8217;ll fix it in a soon-to-be-released update, but for now, use this: Place this code in your functions.php - add_action( &#8216;init&#8217;, &#8216;mf_text_based_image_links&#8217; ); function mf_text_based_image_links() { if ( function_exists( &#8216;mf_previous_image_link&#8217; ) === [...]]]></description>
			<content:encoded><![CDATA[<p>if you are using the wordpress image.php to show your photos, you know that the next and previous photo option sucks.  I&#8217;m sure they&#8217;ll fix it in a soon-to-be-released update, but for now, use this:<br />
<span id="more-16"></span></p>
<p>Place this code in your functions.php -</p>
<p>add_action( &#8216;init&#8217;, &#8216;mf_text_based_image_links&#8217; );</p>
<p>function mf_text_based_image_links() {</p>
<p>if ( function_exists( &#8216;mf_previous_image_link&#8217; ) === false ) {<br />
function mf_previous_image_link( $link_text=&#8217;Previous Image&#8217; ) {<br />
if ( $l = mf_adjacent_image_link( $link_text, true ) )<br />
print $l;<br />
else<br />
print &#8216;&lt;span class=&#8221;inactive&#8221;&gt;&#8217; . $link_text . &#8216;&lt;/span&gt;&#8217;;<br />
}<br />
}</p>
<p>if ( function_exists( &#8216;mf_next_image_link&#8217; ) === false ) {<br />
function mf_next_image_link( $link_text=&#8217;Next Image&#8217; ) {<br />
if ( $l = mf_adjacent_image_link( $link_text, false ) )<br />
print $l;<br />
else<br />
print &#8216;&lt;span class=&#8221;inactive&#8221;&gt;&#8217; . $link_text . &#8216;&lt;/span&gt;&#8217;;<br />
}<br />
}</p>
<p>if ( function_exists( &#8216;mf_adjacent_image_link&#8217; ) === false ) {<br />
function mf_adjacent_image_link( $link_text, $prev = true ) {<br />
global $post;<br />
$post = get_post($post);<br />
$attachments = array_values(get_children( array(&#8216;post_parent&#8217; =&gt; $post-&gt;post_parent, &#8216;post_status&#8217; =&gt; &#8216;inherit&#8217;, &#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;, &#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;, &#8216;order&#8217; =&gt; &#8216;ASC&#8217;, &#8216;orderby&#8217; =&gt; &#8216;menu_order ID&#8217;) ));</p>
<p>foreach ( $attachments as $k =&gt; $attachment )<br />
if ( $attachment-&gt;ID == $post-&gt;ID )<br />
break;</p>
<p>$k = $prev ? $k &#8211; 1 : $k + 1;<br />
if ( isset($attachments[$k]) )<br />
return &#8216;&lt;a href=&#8221;&#8216; . get_attachment_link( $attachments[$k]-&gt;ID ) . &#8216;&#8221;&gt;&#8217; . $link_text . &#8216;&lt;/a&gt;&#8217;;<br />
else<br />
return false;<br />
}<br />
}<br />
}</p>
<p>Then place this code in your image.php file where you want the navigation to appear -</p>
<p>&lt;h2&gt;&lt;small&gt;&lt;?php mf_previous_image_link( &#8216;&amp;laquo; Previous Photo&#8217; ) ?&gt;&lt;/small&gt; -<br />
&lt;a href=&#8221;&lt;?php echo get_permalink($post-&gt;post_parent); ?&gt;&#8221; rev=&#8221;attachment&#8221;&gt;&lt;?php echo get_the_title($post-&gt;post_parent); ?&gt;&lt;/a&gt; -<br />
&lt;small&gt;&lt;?php mf_next_image_link( &#8216;Next Photo &amp;raquo;&#8217; ) ?&gt;&lt;/small&gt;&lt;/h2&gt;</p>
<p>You can of course change the Previous Photo and Next Photo to whatever you prefer.</p>
]]></content:encoded>
			<wfw:commentRss>http://itscalledwebdesign.com/tutorials/better-image-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

