<?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: Making fancy websites without Flash 2: Animating background image</title>
	<atom:link href="http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/</link>
	<description>Tips &#38; Tricks on Web Design and Development</description>
	<lastBuildDate>Thu, 03 Jun 2010 11:34:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ChristianLouboutinShoes</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-71</link>
		<dc:creator>ChristianLouboutinShoes</dc:creator>
		<pubDate>Thu, 03 Jun 2010 11:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-71</guid>
		<description>Very good sharing this.</description>
		<content:encoded><![CDATA[<p>Very good sharing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janimal</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-68</link>
		<dc:creator>janimal</dc:creator>
		<pubDate>Fri, 07 May 2010 09:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-68</guid>
		<description>I used a modulo function to send the images sequentially and to wrap around the index, but the issue is the same as Jason has.

The problem appears to be related to your point number 5 in the post.

The script never replaces the image used for the initial div. I will try to fix it myself, but I am brand new to Javascript.

For those struggling with a sequential function try the following.
1) use the array index instead of a string to set the next image
   eg: $(&#039;#banner&#039;).BgImageTransition(&#039;/images/featured/&#039;+bgImages[currIndex]);

2) Set currIndex to 0 before calling setInterval

3) increment currIndex within setInterval like this
   currIndex = ++currIndex % bgImages.length;

This will give you sequential indexes which wraps around to the 1st element when it reaches the upper bound of the array</description>
		<content:encoded><![CDATA[<p>I used a modulo function to send the images sequentially and to wrap around the index, but the issue is the same as Jason has.</p>
<p>The problem appears to be related to your point number 5 in the post.</p>
<p>The script never replaces the image used for the initial div. I will try to fix it myself, but I am brand new to Javascript.</p>
<p>For those struggling with a sequential function try the following.<br />
1) use the array index instead of a string to set the next image<br />
   eg: $(&#8216;#banner&#8217;).BgImageTransition(&#8216;/images/featured/&#8217;+bgImages[currIndex]);</p>
<p>2) Set currIndex to 0 before calling setInterval</p>
<p>3) increment currIndex within setInterval like this<br />
   currIndex = ++currIndex % bgImages.length;</p>
<p>This will give you sequential indexes which wraps around to the 1st element when it reaches the upper bound of the array</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-65</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 02 Apr 2010 01:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-65</guid>
		<description>I&#039;m also trying to run through a list of images, which was easy enough to do, however it alternates to the initial image every other time.

So instead of: Image1.jpg, Image2.jpg, Image3.jpg, Image4.jpg, Image5.jpg.....
I&#039;m getting: Image1.jpg, Image2.jpg, Image1.jpg, Image4.jpg, Image1.jpg, Image6.jpg.....</description>
		<content:encoded><![CDATA[<p>I&#8217;m also trying to run through a list of images, which was easy enough to do, however it alternates to the initial image every other time.</p>
<p>So instead of: Image1.jpg, Image2.jpg, Image3.jpg, Image4.jpg, Image5.jpg&#8230;..<br />
I&#8217;m getting: Image1.jpg, Image2.jpg, Image1.jpg, Image4.jpg, Image1.jpg, Image6.jpg&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-61</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 11 Dec 2009 14:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-61</guid>
		<description>This is very helpful. However, in your demo, Rosso Castilla.JPG never loads?</description>
		<content:encoded><![CDATA[<p>This is very helpful. However, in your demo, Rosso Castilla.JPG never loads?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: georgi</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-60</link>
		<dc:creator>georgi</dc:creator>
		<pubDate>Fri, 28 Aug 2009 06:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-60</guid>
		<description>You should I am no sure whether you can. Just create a new div element the first child of the body and make it &quot;snap&quot; the body borders. Then make it switch images.</description>
		<content:encoded><![CDATA[<p>You should I am no sure whether you can. Just create a new div element the first child of the body and make it &#8220;snap&#8221; the body borders. Then make it switch images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthick</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-59</link>
		<dc:creator>Karthick</dc:creator>
		<pubDate>Thu, 27 Aug 2009 22:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-59</guid>
		<description>Hi Georgi,

 Great script! but i have to apply it on body tag instead of div..Could u plz guide? 

Thanks,

karthick</description>
		<content:encoded><![CDATA[<p>Hi Georgi,</p>
<p> Great script! but i have to apply it on body tag instead of div..Could u plz guide? </p>
<p>Thanks,</p>
<p>karthick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: georgi</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-58</link>
		<dc:creator>georgi</dc:creator>
		<pubDate>Fri, 31 Jul 2009 10:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-58</guid>
		<description>@Tom: I cannot write your js since you know your project much better and your job to do it. Create an array with the images and loop through it instead of using random()</description>
		<content:encoded><![CDATA[<p>@Tom: I cannot write your js since you know your project much better and your job to do it. Create an array with the images and loop through it instead of using random()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.ovalpixels.com/blog/2009/02/21/making-fancy-websites-without-flash-animating-background-image/comment-page-1/#comment-57</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 31 Jul 2009 07:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovalpixels.com/blog/?p=87#comment-57</guid>
		<description>Thanks Georgi.

I don&#039;t suppose you know the JS that should be used instead of Math.random()

I&#039;m afraid my JS knowledge is very limited..

Thanks,

Tom</description>
		<content:encoded><![CDATA[<p>Thanks Georgi.</p>
<p>I don&#8217;t suppose you know the JS that should be used instead of Math.random()</p>
<p>I&#8217;m afraid my JS knowledge is very limited..</p>
<p>Thanks,</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>
