<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Create a Simple Slideshow Using&#160;MooTools</title> <atom:link href="http://davidwalsh.name/mootools-slideshow/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-slideshow</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 07:54:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Garethsoul</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-28521</link> <dc:creator>Garethsoul</dc:creator> <pubDate>Thu, 12 Jan 2012 06:09:03 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-28521</guid> <description>Very nice info!!! i used it for a web with joomla 1.7 and it run perfectly!</description> <content:encoded><![CDATA[<p>Very nice info!!! i used it for a web with joomla 1.7 and it run perfectly!</p> ]]></content:encoded> </item> <item><title>By: Frederick Lim</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-26723</link> <dc:creator>Frederick Lim</dc:creator> <pubDate>Fri, 26 Aug 2011 09:15:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-26723</guid> <description>How I can add an URL in the image?</description> <content:encoded><![CDATA[<p>How I can add an URL in the image?</p> ]]></content:encoded> </item> <item><title>By: Peter</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-24495</link> <dc:creator>Peter</dc:creator> <pubDate>Thu, 23 Jun 2011 16:56:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-24495</guid> <description>Hi!
I like your simple script!
But I need to change the duration of the fade/change effect.
The default duration of fade(&#039;out&#039;) and fade(&#039;in&#039;) is to fast.I don`t know mootools well, so can anyone help me to change the duration of the effect?Thanks in advance!</description> <content:encoded><![CDATA[<p>Hi!<br
/> I like your simple script!<br
/> But I need to change the duration of the fade/change effect.<br
/> The default duration of fade(&#8216;out&#8217;) and fade(&#8216;in&#8217;) is to fast.</p><p>I don`t know mootools well, so can anyone help me to change the duration of the effect?</p><p>Thanks in advance!</p> ]]></content:encoded> </item> <item><title>By: Martin Frönmark</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-23216</link> <dc:creator>Martin Frönmark</dc:creator> <pubDate>Wed, 23 Mar 2011 16:23:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-23216</guid> <description>I&#039;m a little late here, given that this was posted like a year and a half ago, but I was just wondering how you would go about a PNG fix for (old, crappy) IE when using this one.
Thanks!</description> <content:encoded><![CDATA[<p>I&#8217;m a little late here, given that this was posted like a year and a half ago, but I was just wondering how you would go about a PNG fix for (old, crappy) IE when using this one.<br
/> Thanks!</p> ]]></content:encoded> </item> <item><title>By: Mizpah</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-22362</link> <dc:creator>Mizpah</dc:creator> <pubDate>Wed, 19 Jan 2011 18:30:48 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-22362</guid> <description>Hi Folks,I am trying to rewrite a simple version of this to support transitioning divs. This is sitting in Joomla 1.5 .22 (Using mootools. 1.2), and the divs in question are autogenerated via:&lt;code&gt;
&lt;blockquote&gt;quote; ?&gt;&lt;/blockquote&gt;
name . &#039;, &#039;; ?&gt;&lt;em&gt;company; ?&gt;&lt;/em&gt;&lt;/code&gt;This is what I have:
(I have also tried  var quotes = container.getElements(&#039;div.testimonial&#039;);)&lt;code&gt;
window.addEvent(&#039;domready&#039;,function() {
/* settings */
var showDuration = 3000;
var container = $(&#039;testimonial-slideshow&#039;);
var quotes = container.getElements(&#039;div&#039;);
var currentIndex = 0;
var interval;
/* opacity and fade */
quotes.each(function(div,i){
if(i &gt; 0) {
div.set(&#039;opacity&#039;,0);
}
});
/* worker */
var show = function() {
quotes[currentIndex].fade(&#039;out&#039;);
quotes[currentIndex = currentIndex &lt; quotes.length - 1 ? currentIndex+1 : 0].fade(&#039;in&#039;);
};
/* start once the page is finished loading */
window.addEvent(&#039;load&#039;,function(){
interval = show.periodical(showDuration);
});
});
&lt;/code&gt;Yet I get mootools.js error on line 38 , or with div.testimonial (as above) I getreturn result;},getStyles:function(){r...hild);return this.appendText(text);}}Can anyone see any obvious errors ? This is the very last part of a given task and I havent used mootols prior!Cheer :)</description> <content:encoded><![CDATA[<p>Hi Folks,</p><p>I am trying to rewrite a simple version of this to support transitioning divs. This is sitting in Joomla 1.5 .22 (Using mootools. 1.2), and the divs in question are autogenerated via:</p><p><code></p><blockquote><p>quote; ?&gt;</p></blockquote><p> name . ', '; ?&gt;<em>company; ?&gt;</em></p><p></code></p><p>This is what I have:<br
/> (I have also tried  var quotes = container.getElements(&#8216;div.testimonial&#8217;);)</p><p><code><br
/> window.addEvent('domready',function() {<br
/> /* settings */<br
/> var showDuration = 3000;<br
/> var container = $('testimonial-slideshow');<br
/> var quotes = container.getElements('div');<br
/> var currentIndex = 0;<br
/> var interval;<br
/> /* opacity and fade */<br
/> quotes.each(function(div,i){<br
/> if(i &gt; 0) {<br
/> div.set('opacity',0);<br
/> }<br
/> });<br
/> /* worker */<br
/> var show = function() {<br
/> quotes[currentIndex].fade('out');<br
/> quotes[currentIndex = currentIndex &lt; quotes.length - 1 ? currentIndex+1 : 0].fade(&#039;in&#039;);<br
/> };<br
/> /* start once the page is finished loading */<br
/> window.addEvent(&#039;load&#039;,function(){<br
/> interval = show.periodical(showDuration);<br
/> });<br
/> });<br
/> </code></p><p>Yet I get mootools.js error on line 38 , or with div.testimonial (as above) I get</p><p>return result;},getStyles:function(){r&#8230;hild);return this.appendText(text);}}</p><p>Can anyone see any obvious errors ? This is the very last part of a given task and I havent used mootols prior!</p><p>Cheer :)</p> ]]></content:encoded> </item> <item><title>By: Mugen</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-22151</link> <dc:creator>Mugen</dc:creator> <pubDate>Thu, 30 Dec 2010 09:49:55 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-22151</guid> <description>I was having trouble with this in IE... And I have a solution that works fine :var duration = 4000,
container = $(&quot;slideshow&quot;),
images = container.getElements(&quot;img&quot;),
currentIndex = 0,
interval;
images.each(function(img, i) {
if (i &gt; 0) {
img.set(&quot;opacity&quot;, 0);
}
});var show = function() {
images[currentIndex++].set(&quot;tween&quot;, {
duration: 2000
}).tween(&quot;opacity&quot;, 0);
images[currentIndex %= images.length].set(&quot;tween&quot;, {
duration: 2000
}).tween(&quot;opacity&quot;, 1);
}
show.periodical(duration);
}Big up !</description> <content:encoded><![CDATA[<p>I was having trouble with this in IE&#8230; And I have a solution that works fine :</p><p> var duration = 4000,<br
/> container = $(&#8220;slideshow&#8221;),<br
/> images = container.getElements(&#8220;img&#8221;),<br
/> currentIndex = 0,<br
/> interval;<br
/> images.each(function(img, i) {<br
/> if (i &gt; 0) {<br
/> img.set(&#8220;opacity&#8221;, 0);<br
/> }<br
/> });</p><p> var show = function() {<br
/> images[currentIndex++].set(&#8220;tween&#8221;, {<br
/> duration: 2000<br
/> }).tween(&#8220;opacity&#8221;, 0);<br
/> images[currentIndex %= images.length].set(&#8220;tween&#8221;, {<br
/> duration: 2000<br
/> }).tween(&#8220;opacity&#8221;, 1);<br
/> }<br
/> show.periodical(duration);<br
/> }</p><p>Big up !</p> ]]></content:encoded> </item> <item><title>By: Atea Webdiensten</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-21763</link> <dc:creator>Atea Webdiensten</dc:creator> <pubDate>Thu, 16 Dec 2010 11:16:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-21763</guid> <description>Thank you. I took your example and extended it with controls:HTML:
&lt;code&gt;
&lt;a href=&quot;#test2&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;#test3&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;#0&quot; rel=&quot;nofollow&quot;&gt;1&lt;/a&gt;
&lt;a href=&quot;#1&quot; rel=&quot;nofollow&quot;&gt;2&lt;/a&gt;&lt;/code&gt;CSS:
&lt;code&gt;
#slideshow {position:relative; height: 170px; width: 760px; overflow: hidden;}
#slideshow ul { margin: 0; padding: 0; }
#slideshow .slides li { opacity: 0; position: absolute; top: 0; left: 0; }
#slideshow .slides li.first { opacity: 1; }#slideshow .controls { position: absolute; bottom: 4px; right:4px}
#slideshow .controls a {float: left; margin: 0 0 0 6px; padding: 1px 7px; background: #fff; list-style: none; }
#slideshow .controls a.active {background: #c0c0c0; }
&lt;/code&gt;MooTools JS:
&lt;code&gt;
/* Custom Mootools Slider */
window.addEvent(&#039;domready&#039;,function() {/* settings */
var showDuration = 6000;
var wrap = $(&#039;slideshow&#039;);
var slides = wrap.getElements(&#039;ul.slides li&#039;);
var controls = wrap.getElements(&#039;div.controls a&#039;);
var currentIndex = 0;
var interval;/* hide all but first slide */
slides.each(function(li,i){
if(i &gt; 0) {
li.set(&#039;opacity&#039;,0);
}
});/* updates controls */
var updateControls = function() {
if (controls !== false) {
//reset controls
controls.each(function(el){
el.removeClass(&#039;active&#039;);
});controls.getParent().getElement(&#039;[rel=&#039; + currentIndex + &#039;]&#039;).addClass(&#039;active&#039;);
}
}
/* worker */
var show = function(index) {slides[currentIndex].fade(&#039;out&#039;);// show next slide automaticly or show selected slide
if(index == undefined){
slides[currentIndex = currentIndex &lt; slides.length - 1 ? currentIndex+1 : 0].fade(&#039;in&#039;);
} else{
$clear(interval);slides[index].fade(&#039;in&#039;);
currentIndex = index;interval = show.periodical(showDuration);
}updateControls();
};/* start once the page is finished loading */
window.addEvent(&#039;load&#039;,function(){interval = show.periodical(showDuration);/* controls */
controls.addEvent(&#039;click&#039;, function(){
var rel = parseInt(this.rel,10);
show(rel);
return false;
});
updateControls();
});
});
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Thank you. I took your example and extended it with controls:</p><p>HTML:<br
/> <code></p><p> <a
href="#test2" rel="nofollow"></a><br
/> <a
href="#test3" rel="nofollow"></a></p><p> <a
href="#0" rel="nofollow">1</a><br
/> <a
href="#1" rel="nofollow">2</a></p><p></code></p><p>CSS:<br
/> <code><br
/> #slideshow {position:relative; height: 170px; width: 760px; overflow: hidden;}<br
/> #slideshow ul { margin: 0; padding: 0; }<br
/> #slideshow .slides li { opacity: 0; position: absolute; top: 0; left: 0; }<br
/> #slideshow .slides li.first { opacity: 1; }</p><p>#slideshow .controls { position: absolute; bottom: 4px; right:4px}<br
/> #slideshow .controls a {float: left; margin: 0 0 0 6px; padding: 1px 7px; background: #fff; list-style: none; }<br
/> #slideshow .controls a.active {background: #c0c0c0; }<br
/> </code></p><p>MooTools JS:<br
/> <code><br
/> /* Custom Mootools Slider */<br
/> window.addEvent('domready',function() {</p><p> /* settings */<br
/> var showDuration = 6000;<br
/> var wrap = $('slideshow');<br
/> var slides = wrap.getElements('ul.slides li');<br
/> var controls = wrap.getElements('div.controls a');<br
/> var currentIndex = 0;<br
/> var interval;</p><p> /* hide all but first slide */<br
/> slides.each(function(li,i){<br
/> if(i &gt; 0) {<br
/> li.set('opacity',0);<br
/> }<br
/> });</p><p> /* updates controls */<br
/> var updateControls = function() {<br
/> if (controls !== false) {<br
/> //reset controls<br
/> controls.each(function(el){<br
/> el.removeClass('active');<br
/> });</p><p> controls.getParent().getElement('[rel=' + currentIndex + ']').addClass('active');<br
/> }<br
/> }</p><p> /* worker */<br
/> var show = function(index) {</p><p> slides[currentIndex].fade('out');</p><p> // show next slide automaticly or show selected slide<br
/> if(index == undefined){<br
/> slides[currentIndex = currentIndex &lt; slides.length - 1 ? currentIndex+1 : 0].fade(&#039;in&#039;);<br
/> } else{<br
/> $clear(interval);</p><p> slides[index].fade(&#039;in&#039;);<br
/> currentIndex = index;</p><p> interval = show.periodical(showDuration);<br
/> }</p><p> updateControls();<br
/> };</p><p> /* start once the page is finished loading */<br
/> window.addEvent(&#039;load&#039;,function(){</p><p> interval = show.periodical(showDuration);</p><p> /* controls */<br
/> controls.addEvent(&#039;click&#039;, function(){<br
/> var rel = parseInt(this.rel,10);<br
/> show(rel);<br
/> return false;<br
/> });</p><p> updateControls();<br
/> });<br
/> });<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-19502</link> <dc:creator>Chris</dc:creator> <pubDate>Tue, 24 Aug 2010 20:22:39 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-19502</guid> <description>I&#039;m with rob - this works great in FF, but doesn&#039;t seem to work in IE8.  I was able to get it to work in IE8 ... but only if I include at least 1 of the original pictures in the array.  (very weird).  As soon as I replace the img src links with localized pics, it breaks.  But if at least one points to the Christina Ricci photos, it works fine.  Any help would be appreciated!!!</description> <content:encoded><![CDATA[<p>I&#8217;m with rob &#8211; this works great in FF, but doesn&#8217;t seem to work in IE8.  I was able to get it to work in IE8 &#8230; but only if I include at least 1 of the original pictures in the array.  (very weird).  As soon as I replace the img src links with localized pics, it breaks.  But if at least one points to the Christina Ricci photos, it works fine.  Any help would be appreciated!!!</p> ]]></content:encoded> </item> <item><title>By: Rob</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-18839</link> <dc:creator>Rob</dc:creator> <pubDate>Fri, 16 Jul 2010 19:01:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-18839</guid> <description>Love the script, works great in FF however does not transition in IE8... any fixes?</description> <content:encoded><![CDATA[<p>Love the script, works great in FF however does not transition in IE8&#8230; any fixes?</p> ]]></content:encoded> </item> <item><title>By: Conal</title><link>http://davidwalsh.name/mootools-slideshow/comment-page-1#comment-18631</link> <dc:creator>Conal</dc:creator> <pubDate>Thu, 08 Jul 2010 04:33:36 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4373#comment-18631</guid> <description>Hi, I have just implemented this on my site and it looks great. However I am also using a mootools accordian on another page and it stops working. I take the slideshow stuff away and it works again. I include the mootools-1.2.4-core file first.
Any ideas?
Thanks</description> <content:encoded><![CDATA[<p>Hi, I have just implemented this on my site and it looks great. However I am also using a mootools accordian on another page and it stops working. I take the slideshow stuff away and it works again. I include the mootools-1.2.4-core file first.<br
/> Any ideas?<br
/> Thanks</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 (User agent is rejected)
Database Caching 1/17 queries in 0.013 seconds using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 04:09:01 -->
