<?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: ctRotator &#8211; A Flexible Item/Image Rotator Script for jQuery</title>
	<atom:link href="http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery</link>
	<description>A piece of code for everyone!</description>
	<lastBuildDate>Fri, 12 Mar 2010 10:38:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marcos Vinicius</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-47036</link>
		<dc:creator>Marcos Vinicius</dc:creator>
		<pubDate>Sat, 23 Jan 2010 17:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-47036</guid>
		<description>I would like to know how can I call php data sources, recordsets in dreamweaver using this script.</description>
		<content:encoded><![CDATA[<p>I would like to know how can I call php data sources, recordsets in dreamweaver using this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Philpott</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-46894</link>
		<dc:creator>Andrew Philpott</dc:creator>
		<pubDate>Tue, 19 Jan 2010 16:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-46894</guid>
		<description>Is there a way to use this with sifr? I tried adding a callback function and the rotator is working, but not the font replacement.</description>
		<content:encoded><![CDATA[<p>Is there a way to use this with sifr? I tried adding a callback function and the rotator is working, but not the font replacement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luiz</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-46627</link>
		<dc:creator>Luiz</dc:creator>
		<pubDate>Tue, 12 Jan 2010 16:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-46627</guid>
		<description>Hi again,

I tried to use the &quot;itemRenderer&quot; parameter, but I didn&#039;t have success.

The item.url, item.title works well, but the item.image is always undefined.

My source code:


$(document).ready(function(){ 
	var dataSource = new ctRotatorBridgeLi($(&#039;#areaAuxiliar #listaEmpresasConveniadas ul&#039;)).getDataSource();

	$(&#039;#areaAuxiliar #listaEmpresasConveniadas ul&#039;).ctRotator(dataSource, {
		showCount: 3,
		speed: 1000,
		itemRenderer: function(item){   
			return  &#039;&lt;a href=&quot;&#039; + item.url + &#039;&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&#039; + item.title + &#039; - &#039; + item.image + &#039;&#039;;
		}
	});	
});

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;/Teste/&quot;&gt;&lt;img src=&quot;imagens/___empresa1.gif&quot; width=&quot;81&quot; height=&quot;46&quot; /&gt;Empresa 1&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;/Teste/&quot;&gt;&lt;img src=&quot;imagens/___empresa2.gif&quot; width=&quot;81&quot; height=&quot;47&quot; /&gt;Empresa 2&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;/Teste/&quot;&gt;&lt;img src=&quot;imagens/___empresa3.gif&quot; width=&quot;84&quot; height=&quot;44&quot; /&gt;Empresa 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


I need help, please.</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I tried to use the "itemRenderer" parameter, but I didn't have success.</p>
<p>The item.url, item.title works well, but the item.image is always undefined.</p>
<p>My source code:</p>
<p>$(document).ready(function(){ <br />
	var dataSource = new ctRotatorBridgeLi($('#areaAuxiliar #listaEmpresasConveniadas ul')).getDataSource();</p>
<p>	$('#areaAuxiliar #listaEmpresasConveniadas ul').ctRotator(dataSource, {<br />
		showCount: 3,<br />
		speed: 1000,<br />
		itemRenderer: function(item){   <br />
			return  '<a href="' + item.url + '" rel="nofollow"></a>' + item.title + ' - ' + item.image + '';<br />
		}<br />
	});	<br />
});</p>
<p>&lt;ul&gt;<br />
	&lt;li&gt;&lt;a href=&#34;/Teste/&#34;&gt;&lt;img src=&#34;imagens/___empresa1.gif&#34; width=&#34;81&#34; height=&#34;46&#34; /&gt;Empresa 1&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href=&#34;/Teste/&#34;&gt;&lt;img src=&#34;imagens/___empresa2.gif&#34; width=&#34;81&#34; height=&#34;47&#34; /&gt;Empresa 2&lt;/a&gt;&lt;/li&gt;<br />
	&lt;li&gt;&lt;a href=&#34;/Teste/&#34;&gt;&lt;img src=&#34;imagens/___empresa3.gif&#34; width=&#34;84&#34; height=&#34;44&#34; /&gt;Empresa 3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>I need help, please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike khattab</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-44666</link>
		<dc:creator>mike khattab</dc:creator>
		<pubDate>Wed, 02 Dec 2009 11:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-44666</guid>
		<description>When using jQuery 1.2.6, things are fine, but not with JQuery 1.3.2 where the rotator causes screen disturbance or flickering of the footer at the bottom of the page. This happens only when the page is scrolled to the bottom completely, and both the footer and rotator are visible.

I would be thankful for a solution or an update</description>
		<content:encoded><![CDATA[<p>When using jQuery 1.2.6, things are fine, but not with JQuery 1.3.2 where the rotator causes screen disturbance or flickering of the footer at the bottom of the page. This happens only when the page is scrolled to the bottom completely, and both the footer and rotator are visible.</p>
<p>I would be thankful for a solution or an update</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctRotator &#124; jQuery Wisdom</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-43675</link>
		<dc:creator>ctRotator &#124; jQuery Wisdom</dc:creator>
		<pubDate>Sat, 14 Nov 2009 06:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-43675</guid>
		<description>[...] HTML UL/OL list, RSS feed, Flickr feed. More data sources can be supported with custom bridges.  Web Site Demo Download         Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] <span class="caps">HTML</span> UL/OL list, <span class="caps">RSS </span>feed, Flickr feed. More data sources can be supported with custom bridges.  Web Site Demo Download         Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seven</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-40496</link>
		<dc:creator>Seven</dc:creator>
		<pubDate>Fri, 28 Aug 2009 20:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-40496</guid>
		<description>This is a great script and just what I needed for a WordPress template I am working on.

I have another project however wherein I am having an issue using images in an existing . Any suggestions?</description>
		<content:encoded><![CDATA[<p>This is a great script and just what I needed for a WordPress template I am working on.</p>
<p>I have another project however wherein I am having an issue using images in an existing . Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-39369</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 03 Aug 2009 02:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-39369</guid>
		<description>You can stop rotating simply by altering the script and looking at about line 50. You&#039;re looking for the call to updateRotation. You&#039;ll want to put in a simple condition. I basically said if it&#039;s 0, don&#039;t rotate. Why would we want to rotate in rapid fire anyway? Perhaps this could be included in the next release? 

if(options.speed &gt; 0) {

  	updateRotation(rotator, container, options);
}

Why? Well because it&#039;s quite handy to not have it rotate...and then in the callback function where it displays the list of photos, count the length of the json object (feed from datasource)...So say we do:

var totalImages = dataSource.length;

Now in the options object we specify to the rotator we can say:

$(&#039;#flickr&#039;).ctRotator(dataSource, {
    showCount: totalImages,
    speed: 0,
...

That will then show all the images in the feed and not rotate them.
With a little creativity we can change the output in the itemRenderer and return some id&#039;s in those anchor links. Then take jQuery and handle events for clicking those and instead of going to the image make it bring up a lightbox or appear in another area on the page, etc.

This very quickly turns the rotator plugin here into a very customizable gallery plugin as well. 

I like how it&#039;s a very minimal script -- many other scripts I&#039;ve seen for galleries are way too bloated. This is much better. It also leaves things client side. &quot;Mash-up&quot; away for little hit to your server.

My only request (and I haven&#039;t looked at the script long enough to figure it out) is that there was an event listener to updateRotation()... So I can have a &quot;next&quot; and ultimately &quot;prev&quot; link to move the list. That would mean the rotation needs to go in reverse too, which would be more alteration...but specified in the options again by perhaps &quot;direction: forward&quot; or &quot;direction: reverse&quot;.

That would be really nice. Then it&#039;s essentially exactly the same, but completely flexible to serve as originally intended, but also as a much more complex gallery (with some elbow grease).

Thanks for writing this script!</description>
		<content:encoded><![CDATA[<p>You can stop rotating simply by altering the script and looking at about line 50. You're looking for the call to updateRotation. You'll want to put in a simple condition. I basically said if it's 0, don't rotate. Why would we want to rotate in rapid fire anyway? Perhaps this could be included in the next release? </p>
<p>if(options.speed &gt; 0) {</p>
<p>  	updateRotation(rotator, container, options);<br />
}</p>
<p>Why? Well because it's quite handy to not have it rotate...and then in the callback function where it displays the list of photos, count the length of the json object (feed from datasource)...So say we do:</p>
<p>var totalImages = dataSource.length;</p>
<p>Now in the options object we specify to the rotator we can say:</p>
<p>$('#flickr').ctRotator(dataSource, {<br />
    showCount: totalImages,<br />
    speed: 0,<br />
...</p>
<p>That will then show all the images in the feed and not rotate them.<br />
With a little creativity we can change the output in the itemRenderer and return some id's in those anchor links. Then take jQuery and handle events for clicking those and instead of going to the image make it bring up a lightbox or appear in another area on the page, etc.</p>
<p>This very quickly turns the rotator plugin here into a very customizable gallery plugin as well. </p>
<p>I like how it's a very minimal script -- many other scripts I've seen for galleries are way too bloated. This is much better. It also leaves things client side. "Mash-up" away for little hit to your server.</p>
<p>My only request (and I haven't looked at the script long enough to figure it out) is that there was an event listener to updateRotation()... So I can have a "next" and ultimately "prev" link to move the list. That would mean the rotation needs to go in reverse too, which would be more alteration...but specified in the options again by perhaps "direction: forward" or "direction: reverse".</p>
<p>That would be really nice. Then it's essentially exactly the same, but completely flexible to serve as originally intended, but also as a much more complex gallery (with some elbow grease).</p>
<p>Thanks for writing this script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clo"decorators fabricche"SonDane"website design"Channel</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-36300</link>
		<dc:creator>Clo"decorators fabricche"SonDane"website design"Channel</dc:creator>
		<pubDate>Mon, 08 Jun 2009 14:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-36300</guid>
		<description>Iâ€™ll try applying these scripts. Thanks.</description>
		<content:encoded><![CDATA[<p>I&acirc;€™ll try applying these scripts. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxim</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-33272</link>
		<dc:creator>Maxim</dc:creator>
		<pubDate>Tue, 05 May 2009 13:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-33272</guid>
		<description>Hello

How can I stop rotating?</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>How can I stop rotating?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Pickard</title>
		<link>http://thecodecentral.com/2008/11/12/ctrotator-a-flexible-itemimage-rotator-script-for-jquery/comment-page-1#comment-30881</link>
		<dc:creator>Samuel Pickard</dc:creator>
		<pubDate>Tue, 07 Apr 2009 16:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://thecodecentral.com/?p=196#comment-30881</guid>
		<description>Hey,

I&#039;ve written a Twitter bridge for this as well, so you can rotate tweets from an RSS search from search.twitter.com.

I also need it to refresh the data periodically, not just keep rotating the same items.  Is there anyway to do this?

Thanks


function ctRotatorBridgeTwitter(url, readyCallback) {

    this.url = url;
    this.readyCallback = readyCallback;
}

ctRotatorBridgeTwitter.prototype = 
{
    getDataSource: function() 
    {
        var readyCallback = this.readyCallback;
        var dataSource = [];
        $.get(this.url, {}, function(data) 
        {
            $(data).find(&#039;channel item&#039;).each(function() 
            {
                var e = $(this);
                dataSource.push(
                {
                    title: e.find(&#039;title&#039;).text(),
                    url: e.find(&#039;link&#039;).text(),
                    image: e.find(&#039;google\\:image_link&#039;).eq(0).text()
                });
            });
            readyCallback(dataSource);
        }, &#039;xml&#039;);

        return dataSource;
    }

};

</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I've written a Twitter bridge for this as well, so you can rotate tweets from an <span class="caps">RSS </span>search from search.twitter.com.</p>
<p>I also need it to refresh the data periodically, not just keep rotating the same items.  Is there anyway to do this?</p>
<p>Thanks</p>
<p>function ctRotatorBridgeTwitter(url, readyCallback) {</p>
<p>    this.url = url;<br />
    this.readyCallback = readyCallback;<br />
}</p>
<p>ctRotatorBridgeTwitter.prototype = <br />
{<br />
    getDataSource: function() <br />
    {<br />
        var readyCallback = this.readyCallback;<br />
        var dataSource = [];<br />
        $.get(this.url, {}, function(data) <br />
        {<br />
            $(data).find('channel item').each(function() <br />
            {<br />
                var e = $(this);<br />
                dataSource.push(<br />
                {<br />
                    title: e.find('title').text(),<br />
                    url: e.find('link').text(),<br />
                    image: e.find('google\\:image_link').eq(0).text()<br />
                });<br />
            });<br />
            readyCallback(dataSource);<br />
        }, 'xml');</p>
<p>        return dataSource;<br />
    }</p>
<p>};</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->