<?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: CSS Random Background Image Rotation</title>
	<atom:link href="http://www.thought-after.com/2006/05/css-random-background-image-rotation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/</link>
	<description>Web development and geeky stuff by Lafinboy</description>
	<lastBuildDate>Thu, 18 Feb 2010 18:57:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ChrisR</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6675</link>
		<dc:creator>ChrisR</dc:creator>
		<pubDate>Thu, 18 Feb 2010 18:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6675</guid>
		<description>Hello. 

I was able to accomplish the random background with a different method, it&#039;s not as dynamic as this one, I have to put the file names in an array. since I&#039;ll only have a couple images, that is fine. 

Thanks!

Chris</description>
		<content:encoded><![CDATA[<p>Hello. </p>
<p>I was able to accomplish the random background with a different method, it&#039;s not as dynamic as this one, I have to put the file names in an array. since I&#039;ll only have a couple images, that is fine. </p>
<p>Thanks!</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisR</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6658</link>
		<dc:creator>ChrisR</dc:creator>
		<pubDate>Wed, 17 Feb 2010 13:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6658</guid>
		<description>Hello, 

Yup, I have the @import directive in place.  If you&#039;d be willing to check it out, that would be great. My site is http://hasslefreegaming.com/v2/index.php. I&#039;m new to css and php, the site is a work in progress :)

Thanks again!</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>Yup, I have the @import directive in place.  If you&#039;d be willing to check it out, that would be great. My site is <a href="http://hasslefreegaming.com/v2/index.php" rel="nofollow">http://hasslefreegaming.com/v2/index.php</a>. I&#039;m new to css and php, the site is a work in progress <img src='http://www.thought-after.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lafinboy</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6652</link>
		<dc:creator>Lafinboy</dc:creator>
		<pubDate>Wed, 17 Feb 2010 05:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6652</guid>
		<description>Hey Chris, have you included the @import style directive in the head of your page? It looks like you&#039;re doing everything else right. Do you have a URL I can have  a look at so I can help debug?</description>
		<content:encoded><![CDATA[<p>Hey Chris, have you included the @import style directive in the head of your page? It looks like you&#039;re doing everything else right. Do you have a URL I can have  a look at so I can help debug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisR</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6645</link>
		<dc:creator>ChrisR</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6645</guid>
		<description>I&#039;m going to be &quot;that guy&quot;, and reply to my own post...  So, im my css file, I left the body section empty 

Body { }

I then added a rotate id

#rotate {
background: #012d4a;
background-position: top center;
background-repeat: no-repeat;
background-attachment:fixed; 
font-size: 1em;
font-family: verdana;
margin: 0;
}

From there, I did as you suggested, and put the id in my body tag . Everything worked, except this script. The background colour was correct, so I am assuming the rotate properties are applied to the body. However, I end up with no images. 

I have dynamic_css.php located in the same directory as my css file, though I&#039;m not sure how it knows the name of the css file? Fortunately, I only have one css file so i guess that shouldn&#039;t be an issue. I put the following in the dynamic_css file;

$imgFolder = &quot;/img/rotate/&quot;;  (I also tried img/rotate/)
$element = &quot;rotate&quot;;

My image directory contains two images, both .png files. 

I can&#039;t think of any other useful information :)

Not sure where I could be going wrong?

Cheers,

Chris</description>
		<content:encoded><![CDATA[<p>I&#039;m going to be &#034;that guy&#034;, and reply to my own post&#8230;  So, im my css file, I left the body section empty </p>
<p>Body { }</p>
<p>I then added a rotate id</p>
<p>#rotate {<br />
background: #012d4a;<br />
background-position: top center;<br />
background-repeat: no-repeat;<br />
background-attachment:fixed;<br />
font-size: 1em;<br />
font-family: verdana;<br />
margin: 0;<br />
}</p>
<p>From there, I did as you suggested, and put the id in my body tag . Everything worked, except this script. The background colour was correct, so I am assuming the rotate properties are applied to the body. However, I end up with no images. </p>
<p>I have dynamic_css.php located in the same directory as my css file, though I&#039;m not sure how it knows the name of the css file? Fortunately, I only have one css file so i guess that shouldn&#039;t be an issue. I put the following in the dynamic_css file;</p>
<p>$imgFolder = &#034;/img/rotate/&#034;;  (I also tried img/rotate/)<br />
$element = &#034;rotate&#034;;</p>
<p>My image directory contains two images, both .png files. </p>
<p>I can&#039;t think of any other useful information <img src='http://www.thought-after.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Not sure where I could be going wrong?</p>
<p>Cheers,</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisR</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6641</link>
		<dc:creator>ChrisR</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6641</guid>
		<description>Hello and thanks for the quick reply! Just so I&#039;m clear on your instructions, you&#039;re suggesting I make up an ID for this script, lets say we call it rotate. I would then do something like  in my pages?

Would I need to have the #rotate id added to my css file as well?

I&#039;m very new to css and php, sorry :P</description>
		<content:encoded><![CDATA[<p>Hello and thanks for the quick reply! Just so I&#039;m clear on your instructions, you&#039;re suggesting I make up an ID for this script, lets say we call it rotate. I would then do something like  in my pages?</p>
<p>Would I need to have the #rotate id added to my css file as well?</p>
<p>I&#039;m very new to css and php, sorry <img src='http://www.thought-after.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lafinboy</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6633</link>
		<dc:creator>Lafinboy</dc:creator>
		<pubDate>Tue, 16 Feb 2010 05:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6633</guid>
		<description>Hi Chris, the script attaches itself to an element identified by an id attribute. Quick fix is to add an id attribute to your body element, and use this id in the script.</description>
		<content:encoded><![CDATA[<p>Hi Chris, the script attaches itself to an element identified by an id attribute. Quick fix is to add an id attribute to your body element, and use this id in the script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisR</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-6627</link>
		<dc:creator>ChrisR</dc:creator>
		<pubDate>Mon, 15 Feb 2010 17:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-6627</guid>
		<description>Hello, 

Hopefully someone can help me. I&#039;m trying to use this script to rotate the overall site background. I&#039;ve tried everything I can think of to get this to work. Could my problems be related to the fact that the body section of the CSS file doesn&#039;t start with a # (as seen below)?

BODY {
background: #012d4a;
background-image: url(img/background3.png);
background-position: top center;
background-repeat: no-repeat;
background-attachment:fixed;
font-size: 1em;
font-family: verdana;
margin: 0;
}

This is the background image that I am trying to rotate... is it possible? Any help would be greatly appreciated!

Thanks

Chris</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>Hopefully someone can help me. I&#039;m trying to use this script to rotate the overall site background. I&#039;ve tried everything I can think of to get this to work. Could my problems be related to the fact that the body section of the CSS file doesn&#039;t start with a # (as seen below)?</p>
<p>BODY {<br />
background: #012d4a;<br />
background-image: url(img/background3.png);<br />
background-position: top center;<br />
background-repeat: no-repeat;<br />
background-attachment:fixed;<br />
font-size: 1em;<br />
font-family: verdana;<br />
margin: 0;<br />
}</p>
<p>This is the background image that I am trying to rotate&#8230; is it possible? Any help would be greatly appreciated!</p>
<p>Thanks</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-5790</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Tue, 01 Dec 2009 23:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-5790</guid>
		<description>shweet!</description>
		<content:encoded><![CDATA[<p>shweet!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugh</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-5788</link>
		<dc:creator>Hugh</dc:creator>
		<pubDate>Mon, 30 Nov 2009 13:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-5788</guid>
		<description>As Pink Floyd said......&quot;Is there anybody out there?&quot;.......

???</description>
		<content:encoded><![CDATA[<p>As Pink Floyd said&#8230;&#8230;&#034;Is there anybody out there?&#034;&#8230;&#8230;.</p>
<p>???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://www.thought-after.com/2006/05/css-random-background-image-rotation/comment-page-7/#comment-5764</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Tue, 24 Nov 2009 03:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/#comment-5764</guid>
		<description>I&#039;m also trying to use it in my Wordpress theme, which also has it&#039;s own header.php.  I feel I did everything as directed above, and I even tried customizing it a bit, but nothing seems to work. 

Does anyone know how to get this, or any other random background image generator to work with Wordpress. I can&#039;t seem to find anything.

-Trevor</description>
		<content:encoded><![CDATA[<p>I&#039;m also trying to use it in my Wordpress theme, which also has it&#039;s own header.php.  I feel I did everything as directed above, and I even tried customizing it a bit, but nothing seems to work. </p>
<p>Does anyone know how to get this, or any other random background image generator to work with Wordpress. I can&#039;t seem to find anything.</p>
<p>-Trevor</p>
]]></content:encoded>
	</item>
</channel>
</rss>
