<?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: Jonathan Snook&#8217;s jQuery Background Animation as a Plugin</title>
	<atom:link href="http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin</link>
	<description>A blog on web standards, accessibility, css, javascript, xslt, and more</description>
	<lastBuildDate>Mon, 09 Jan 2012 03:47:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Valikonen</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-14767</link>
		<dc:creator>Valikonen</dc:creator>
		<pubDate>Tue, 14 Dec 2010 15:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-14767</guid>
		<description>Very cool effect, thanks. If you want to see menus, web site trends, galleries etc, visit http://www.1artmedia.com , you have online demo and free download. Bye!</description>
		<content:encoded><![CDATA[<p>Very cool effect, thanks. If you want to see menus, web site trends, galleries etc, visit <a href="http://www.1artmedia.com" rel="nofollow">http://www.1artmedia.com</a> , you have online demo and free download. Bye!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web development lucknow</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13987</link>
		<dc:creator>Web development lucknow</dc:creator>
		<pubDate>Wed, 16 Sep 2009 08:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13987</guid>
		<description>Cool stuff, i like this
thank you</description>
		<content:encoded><![CDATA[<p>Cool stuff, i like this<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Design freak</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13840</link>
		<dc:creator>Design freak</dc:creator>
		<pubDate>Mon, 23 Mar 2009 07:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13840</guid>
		<description>very nice effect.

thanks a lot for the article</description>
		<content:encoded><![CDATA[<p>very nice effect.</p>
<p>thanks a lot for the article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarim</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13801</link>
		<dc:creator>sarim</dc:creator>
		<pubDate>Sat, 07 Feb 2009 11:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13801</guid>
		<description>thx anup its worked like a charme...

you are the man....

really thx...</description>
		<content:encoded><![CDATA[<p>thx anup its worked like a charme&#8230;</p>
<p>you are the man&#8230;.</p>
<p>really thx&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anup Shah</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13798</link>
		<dc:creator>Anup Shah</dc:creator>
		<pubDate>Fri, 06 Feb 2009 00:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13798</guid>
		<description>Hi,

It looks like you are using the wrong version of animate(). You can call animate with a number of parameters. If you pass in two object literals like you have then there isn&#039;t a third option of a callback. Instead, of passing { duration:4000 } you can just pass in 4000. In that override of animate, then the callback works.

This should work:

&lt;pre&gt;&lt;code&gt;$(function(){
  $(&#039;div.DivBackUpperImage&#039;).css({
    backgroundPosition: &quot;0px 0px&quot;
  });
  recursiveFunction();
});

function recursiveFunction(){
  $(&#039;div.DivBackUpperImage&#039;).animate({
    backgroundPosition:&quot;(1000px 0px)&quot;},
    &lt;strong&gt;4000&lt;/strong&gt;, function(){
      $(&#039;div.DivBackUpperImage&#039;).css( {
        backgroundPosition: &quot;0px 0px&quot;
      });
      recursiveFunction();
    });
}
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It looks like you are using the wrong version of animate(). You can call animate with a number of parameters. If you pass in two object literals like you have then there isn&#8217;t a third option of a callback. Instead, of passing { duration:4000 } you can just pass in 4000. In that override of animate, then the callback works.</p>
<p>This should work:</p>
<pre><code>$(function(){
  $('div.DivBackUpperImage').css({
    backgroundPosition: "0px 0px"
  });
  recursiveFunction();
});

function recursiveFunction(){
  $('div.DivBackUpperImage').animate({
    backgroundPosition:"(1000px 0px)"},
    <strong>4000</strong>, function(){
      $('div.DivBackUpperImage').css( {
        backgroundPosition: "0px 0px"
      });
      recursiveFunction();
    });
}
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarim</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13797</link>
		<dc:creator>sarim</dc:creator>
		<pubDate>Wed, 04 Feb 2009 07:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13797</guid>
		<description>Hi anup shah thanks for the advice....
i get id working a little but still its not looping back around its stoping i dnt know the callback is not working or what ... can you please correct...

my code is like this 

  $(function(){
        $(&#039;div.DivBackUpperImage&#039;).css( {backgroundPosition: &quot;0px 0px&quot;} )
        recursiveFunction();
    });

    function recursiveFunction(){
        $(&#039;div.DivBackUpperImage&#039;).animate({backgroundPosition:&quot;(1000px 0px)&quot;}, {duration:4000},
            function(){
                $(&#039;div.DivBackUpperImage&#039;).css( {backgroundPosition: &quot;0px 0px&quot;} )
                recursiveFunction();
            }
        );
    }

i think it should work  but... its not ...
thanks for the helo</description>
		<content:encoded><![CDATA[<p>Hi anup shah thanks for the advice&#8230;.<br />
i get id working a little but still its not looping back around its stoping i dnt know the callback is not working or what &#8230; can you please correct&#8230;</p>
<p>my code is like this </p>
<p>  $(function(){<br />
        $(&#8216;div.DivBackUpperImage&#8217;).css( {backgroundPosition: &#8220;0px 0px&#8221;} )<br />
        recursiveFunction();<br />
    });</p>
<p>    function recursiveFunction(){<br />
        $(&#8216;div.DivBackUpperImage&#8217;).animate({backgroundPosition:&#8221;(1000px 0px)&#8221;}, {duration:4000},<br />
            function(){<br />
                $(&#8216;div.DivBackUpperImage&#8217;).css( {backgroundPosition: &#8220;0px 0px&#8221;} )<br />
                recursiveFunction();<br />
            }<br />
        );<br />
    }</p>
<p>i think it should work  but&#8230; its not &#8230;<br />
thanks for the helo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anup Shah</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13796</link>
		<dc:creator>Anup Shah</dc:creator>
		<pubDate>Tue, 03 Feb 2009 23:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13796</guid>
		<description>@sarim: The animate() method also takes a callback (see http://docs.jquery.com/Effects/animate ) -- you could pass in a callback which, when called, finds out the background position, and if necessary reset the background position.

Edit: Come to think of it, the callback fires when the animation completes, so then you know to restart the animation!</description>
		<content:encoded><![CDATA[<p>@sarim: The animate() method also takes a callback (see <a href="http://docs.jquery.com/Effects/animate" rel="nofollow">http://docs.jquery.com/Effects/animate</a> ) &#8212; you could pass in a callback which, when called, finds out the background position, and if necessary reset the background position.</p>
<p>Edit: Come to think of it, the callback fires when the animation completes, so then you know to restart the animation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarim</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13795</link>
		<dc:creator>sarim</dc:creator>
		<pubDate>Tue, 03 Feb 2009 14:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13795</guid>
		<description>i am using this plug in my page as a test
i want to know
what shuld i do if i want to make an contiunes on going effect of moving background rather than on mouse over

my code is like this

       $(document).ready(
            function(){
            $(&#039;div.DivBackUpperImage&#039;).css( {backgroundPosition: &quot;0px 0px&quot;} )
			$(&#039;div.DivBackUpperImage&#039;).animate({backgroundPosition:&quot;(1000px 0px)&quot;}, {duration:4000})
        	}
	    );

how to check if the background position has reached 1000xp to restart moving for start so that it keep rotation all the time


actually you wrote a very nice plug in and helps me create many effects on mouse over click etc but this ... i cant understand i m little new to jquery...

please any help would be appriciable 
thanks</description>
		<content:encoded><![CDATA[<p>i am using this plug in my page as a test<br />
i want to know<br />
what shuld i do if i want to make an contiunes on going effect of moving background rather than on mouse over</p>
<p>my code is like this</p>
<p>       $(document).ready(<br />
            function(){<br />
            $(&#8216;div.DivBackUpperImage&#8217;).css( {backgroundPosition: &#8220;0px 0px&#8221;} )<br />
			$(&#8216;div.DivBackUpperImage&#8217;).animate({backgroundPosition:&#8221;(1000px 0px)&#8221;}, {duration:4000})<br />
        	}<br />
	    );</p>
<p>how to check if the background position has reached 1000xp to restart moving for start so that it keep rotation all the time</p>
<p>actually you wrote a very nice plug in and helps me create many effects on mouse over click etc but this &#8230; i cant understand i m little new to jquery&#8230;</p>
<p>please any help would be appriciable<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CID</title>
		<link>http://www.onenaught.com/posts/171/jonathan-snooks-jquery-background-animation-as-a-plugin/comment-page-1#comment-13759</link>
		<dc:creator>CID</dc:creator>
		<pubDate>Thu, 20 Nov 2008 03:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=171#comment-13759</guid>
		<description>This is exactly what i needed, thanks!</description>
		<content:encoded><![CDATA[<p>This is exactly what i needed, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

