<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Random Header Images without Javascript</title>
	<atom:link href="http://wpgarage.com/tips/random-header-images-without-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com/tips/random-header-images-without-javascript/</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Wed, 09 May 2012 06:53:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: nick</title>
		<link>http://wpgarage.com/tips/random-header-images-without-javascript/#comment-62369</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Mon, 02 May 2011 19:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpressgarage.com/tips/random-header-images-without-javascript/#comment-62369</guid>
		<description>Thanks siddiq that&#039;s a real useful piece of code!</description>
		<content:encoded><![CDATA[<p>Thanks siddiq that&#8217;s a real useful piece of code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siddiq</title>
		<link>http://wpgarage.com/tips/random-header-images-without-javascript/#comment-60416</link>
		<dc:creator>siddiq</dc:creator>
		<pubDate>Tue, 27 Oct 2009 08:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpressgarage.com/tips/random-header-images-without-javascript/#comment-60416</guid>
		<description>For the purposes of this example, we’re going to use 5 different images to pull off our random header effect. It’s important that these images be the same size — this will keep your image declarations consistent &lt;em&gt;and&lt;/em&gt; &lt;acronym title=&quot;WorldWide Web Consortium&quot;&gt;W3C&lt;/acronym&gt;-valid. So, grab the five header images of your choice, and name them according to the following convention:

&lt;code&gt;header_1.jpg&lt;/code&gt;
&lt;code&gt;header_2.jpg&lt;/code&gt;
&lt;code&gt;header_3.jpg&lt;/code&gt;
&lt;code&gt;header_4.jpg&lt;/code&gt;
&lt;code&gt;header_5.jpg&lt;/code&gt;

 
The code is
 
&lt;strong&gt;&lt;&lt;strong&gt;img&lt;/strong&gt; src=&quot;http://path_to_images/header_&lt;?php echo(rand(1,5)); ?&gt;.jpg&quot; width=&quot;image_width&quot; height=&quot;image_height&quot; alt=&quot;image_alt_text&quot; /&gt; &lt;/strong&gt;
</description>
		<content:encoded><![CDATA[<p>For the purposes of this example, we’re going to use 5 different images to pull off our random header effect. It’s important that these images be the same size — this will keep your image declarations consistent <em>and</em> <acronym title="WorldWide Web Consortium">W3C</acronym>-valid. So, grab the five header images of your choice, and name them according to the following convention:</p>
<p><code>header_1.jpg</code><br />
<code>header_2.jpg</code><br />
<code>header_3.jpg</code><br />
<code>header_4.jpg</code><br />
<code>header_5.jpg</code></p>
<p> <br />
The code is<br />
 <br />
<strong>&lt;</strong><strong>img</strong> src=&#8221;http://path_to_images/header_&lt;?php echo(rand(1,5)); ?&gt;.jpg&#8221; width=&#8221;image_width&#8221; height=&#8221;image_height&#8221; alt=&#8221;image_alt_text&#8221; /&gt; </p>
]]></content:encoded>
	</item>
</channel>
</rss>

