<?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: Ordered Image and Background Switcher Using PHP &amp; jQuery</title> <atom:link href="http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/feed/" rel="self" type="application/rss+xml" /><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/</link> <description>Design, Development and Freelance Articles and Tutorials</description> <lastBuildDate>Mon, 06 Feb 2012 21:01:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Joseph</title><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/#comment-10813</link> <dc:creator>Joseph</dc:creator> <pubDate>Wed, 15 Dec 2010 11:54:19 +0000</pubDate> <guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=371#comment-10813</guid> <description>Thank you for this great post, That&#039;s exactly what i was looking for. only one question, can i have this code to work for a container with a background image using css. Thanks again for sharing this clean piece of code.</description> <content:encoded><![CDATA[<p>Thank you for this great post, That&#8217;s exactly what i was looking for. only one question, can i have this code to work for a container with a background image using css. Thanks again for sharing this clean piece of code.</p> ]]></content:encoded> </item> <item><title>By: Amber Weinberg</title><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/#comment-6599</link> <dc:creator>Amber Weinberg</dc:creator> <pubDate>Wed, 20 Oct 2010 14:46:32 +0000</pubDate> <guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=371#comment-6599</guid> <description>No, this code is only meant for background images.</description> <content:encoded><![CDATA[<p>No, this code is only meant for background images.</p> ]]></content:encoded> </item> <item><title>By: Harald</title><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/#comment-6597</link> <dc:creator>Harald</dc:creator> <pubDate>Wed, 20 Oct 2010 13:42:12 +0000</pubDate> <guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=371#comment-6597</guid> <description>Thanks for this great code. It works like a charm, but as usual one would always want to do a little more. So do I. Is there any possibility to add a link to each image?
Thanks again for charing this code.</description> <content:encoded><![CDATA[<p>Thanks for this great code. It works like a charm, but as usual one would always want to do a little more. So do I. Is there any possibility to add a link to each image?<br
/> Thanks again for charing this code.</p> ]]></content:encoded> </item> <item><title>By: Amber</title><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/#comment-169</link> <dc:creator>Amber</dc:creator> <pubDate>Sat, 31 Oct 2009 14:21:59 +0000</pubDate> <guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=371#comment-169</guid> <description>@BigAB Thanks for the suggestion, I&#039;ll keep that in mind :)</description> <content:encoded><![CDATA[<p>@BigAB Thanks for the suggestion, I&#8217;ll keep that in mind <img
src='http://www.amberweinberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: BigAB</title><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/#comment-168</link> <dc:creator>BigAB</dc:creator> <pubDate>Fri, 30 Oct 2009 22:47:18 +0000</pubDate> <guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=371#comment-168</guid> <description>Hey,
Small thing but I wouldn&#039;t use a global variable with such a common name as &quot;count&quot; just to prevent caching. You never know where someone is going to forget to add a &quot;var&quot; or something and get strange bugs they can&#039;t figure out because of that global setting of count (this happens more than you&#039;d think) or various other things that can happen if you mix scripts from other people into your sites and keep adding global scope variables.Because I don&#039;t see &quot;q&quot; being used anywhere in the PHP I&#039;ll assume it&#039;s just there to prevent the caching so you&#039;d be better off using something this
[pre]
$(document).ready(function() {
$(&quot;#nextButton&quot;).click(function(e) {
$(&quot;#rotateBkg&quot;).attr({src : &quot;&quot;});
$(&quot;#rotateBkg&quot;).attr({src : &quot;/images/bkg/rotate.php?q=&quot; + Math.random()});
});
});
[/pre]...also I don&#039;t know if there&#039;s a reason to clear the src before changing it, so you could probably lose that line too (though I didn&#039;t test it, so try it out I suppose).If you need an other &quot;programming friend&quot; just email, though due to my job I am specialized in front end (JavaScript and CSS).  love the site and the blog, keep cranking it out, it&#039;s good stuff.</description> <content:encoded><![CDATA[<p>Hey,<br
/> Small thing but I wouldn&#8217;t use a global variable with such a common name as &#8220;count&#8221; just to prevent caching. You never know where someone is going to forget to add a &#8220;var&#8221; or something and get strange bugs they can&#8217;t figure out because of that global setting of count (this happens more than you&#8217;d think) or various other things that can happen if you mix scripts from other people into your sites and keep adding global scope variables.</p><p>Because I don&#8217;t see &#8220;q&#8221; being used anywhere in the PHP I&#8217;ll assume it&#8217;s just there to prevent the caching so you&#8217;d be better off using something this<br
/> [pre]<br
/> $(document).ready(function() {<br
/> $(&#8220;#nextButton&#8221;).click(function(e) {<br
/> $(&#8220;#rotateBkg&#8221;).attr({src : &#8220;&#8221;});<br
/> $(&#8220;#rotateBkg&#8221;).attr({src : &#8220;/images/bkg/rotate.php?q=&#8221; + Math.random()});<br
/> });<br
/> });<br
/> [/pre]</p><p>&#8230;also I don&#8217;t know if there&#8217;s a reason to clear the src before changing it, so you could probably lose that line too (though I didn&#8217;t test it, so try it out I suppose).</p><p>If you need an other &#8220;programming friend&#8221; just email, though due to my job I am specialized in front end (JavaScript and CSS).  love the site and the blog, keep cranking it out, it&#8217;s good stuff.</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.amberweinberg.com/ordered-image-and-background-switcher-using-php-jquery/#comment-167</link> <dc:creator>Mike</dc:creator> <pubDate>Thu, 29 Oct 2009 19:37:53 +0000</pubDate> <guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=371#comment-167</guid> <description>@envyeconomy (Mike)Its always nice that once you work on a project, you share. Very appreciated.about.com has some code similar as well. I like how customizable your code is, Theirs is more random.Excellent post.</description> <content:encoded><![CDATA[<p>@envyeconomy (Mike)</p><p>Its always nice that once you work on a project, you share. Very appreciated.</p><p>about.com has some code similar as well. I like how customizable your code is, Theirs is more random.</p><p>Excellent post.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 239/240 objects using disk: basic

Served from: www.amberweinberg.com @ 2012-02-08 08:12:04 -->
