<?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 MooTools, Part II:  Controls and&#160;Events</title> <atom:link href="http://davidwalsh.name/mootools-slideshow-ii/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-slideshow-ii</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 14:01:31 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: bob</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-31234</link> <dc:creator>bob</dc:creator> <pubDate>Sun, 25 Mar 2012 21:04:10 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-31234</guid> <description>Yes there was a bug.  It has been fixed in mootools core 1.4.5.</description> <content:encoded><![CDATA[<p>Yes there was a bug.  It has been fixed in mootools core 1.4.5.</p> ]]></content:encoded> </item> <item><title>By: bob</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-29640</link> <dc:creator>bob</dc:creator> <pubDate>Fri, 17 Feb 2012 13:45:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-29640</guid> <description>Fade out stopped working for me in new mootools core 1.4.4.  Is there a bug in the new core ?</description> <content:encoded><![CDATA[<p>Fade out stopped working for me in new mootools core 1.4.4.  Is there a bug in the new core ?</p> ]]></content:encoded> </item> <item><title>By: Tilo</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-29301</link> <dc:creator>Tilo</dc:creator> <pubDate>Thu, 16 Feb 2012 13:21:41 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-29301</guid> <description>Hi David,thats the best stuff in the web for mootools, very simple and absolutly great. Can You buiild this slideshow with controlls for the mobile device like iPad (potrait, landscape) and iPhone/Android (portrait, landscape) ?</description> <content:encoded><![CDATA[<p>Hi David,</p><p>thats the best stuff in the web for mootools, very simple and absolutly great. Can You buiild this slideshow with controlls for the mobile device like iPad (potrait, landscape) and iPhone/Android (portrait, landscape) ?</p> ]]></content:encoded> </item> <item><title>By: gtechpedia</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-27932</link> <dc:creator>gtechpedia</dc:creator> <pubDate>Thu, 15 Dec 2011 02:36:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-27932</guid> <description>Hello, thanks for this tutorial, it&#039;s collbut i just think that can we use this with carousel sytle? if yes, can you share for its tooThanks</description> <content:encoded><![CDATA[<p>Hello, thanks for this tutorial, it&#8217;s coll</p><p>but i just think that can we use this with carousel sytle? if yes, can you share for its too</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Jonathan Robidas</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-27117</link> <dc:creator>Jonathan Robidas</dc:creator> <pubDate>Tue, 04 Oct 2011 14:12:54 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-27117</guid> <description>Great Tutorial!!! Got me up and running in no times with a cool slider!!!Thanks again!!</description> <content:encoded><![CDATA[<p>Great Tutorial!!! Got me up and running in no times with a cool slider!!!</p><p>Thanks again!!</p> ]]></content:encoded> </item> <item><title>By: Daniel Yee</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-26237</link> <dc:creator>Daniel Yee</dc:creator> <pubDate>Tue, 26 Jul 2011 04:24:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-26237</guid> <description>@Tony - It&#039;s not a browser issue, but a Mootools version issue. Once I used the same version David used here, it works. The current version of Mootools doesn&#039;t work. Haven&#039;t had a chance to look further as to what changed.</description> <content:encoded><![CDATA[<p>@Tony &#8211; It&#8217;s not a browser issue, but a Mootools version issue. Once I used the same version David used here, it works. The current version of Mootools doesn&#8217;t work. Haven&#8217;t had a chance to look further as to what changed.</p> ]]></content:encoded> </item> <item><title>By: Tony Schappaugh</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-25889</link> <dc:creator>Tony Schappaugh</dc:creator> <pubDate>Mon, 11 Jul 2011 01:32:24 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-25889</guid> <description>Sorry for the formatting issue.
I have used this script and it works well in every browser except Firefox, even 4 and 5.The line of code that appears to be the problem in Firefox is:&lt;code&gt; images[currentIndex = ($defined(to) ? to : (currentIndex &lt; images.length - 1 ? currentIndex+1 : 0))].fade(&#039;in&#039;); &lt;/code&gt;Is there any way to rewrite this code in a different way, even if it means using more lines of code? I think that might resolve the problem in Firefox. </description> <content:encoded><![CDATA[<p>Sorry for the formatting issue.<br
/> I have used this script and it works well in every browser except Firefox, even 4 and 5.</p><p>The line of code that appears to be the problem in Firefox is:</p><p><code> images[currentIndex = ($defined(to) ? to : (currentIndex &lt; images.length - 1 ? currentIndex+1 : 0))].fade(&#039;in&#039;); </code></p><p>Is there any way to rewrite this code in a different way, even if it means using more lines of code? I think that might resolve the problem in Firefox.</p> ]]></content:encoded> </item> <item><title>By: Tony Schappaugh</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-25888</link> <dc:creator>Tony Schappaugh</dc:creator> <pubDate>Mon, 11 Jul 2011 01:28:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-25888</guid> <description>I have used this script and it works well in every browser except Firefox, even 4 and 5.The line of code that appears to be the problem in Firefox is:images[currentIndex = ($defined(to) ? to : (currentIndex &lt; images.length - 1 ? currentIndex+1 : 0))].fade(&#039;in&#039;);Is there any way to rewrite this code in a different way, even if it means using more lines of code? I think that might resolve the problem in Firefox.</description> <content:encoded><![CDATA[<p>I have used this script and it works well in every browser except Firefox, even 4 and 5.</p><p>The line of code that appears to be the problem in Firefox is:</p><p> images[currentIndex = ($defined(to) ? to : (currentIndex &lt; images.length - 1 ? currentIndex+1 : 0))].fade(&#039;in&#039;);</p><p>Is there any way to rewrite this code in a different way, even if it means using more lines of code? I think that might resolve the problem in Firefox.</p> ]]></content:encoded> </item> <item><title>By: TazNormand</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-22709</link> <dc:creator>TazNormand</dc:creator> <pubDate>Sat, 12 Feb 2011 17:57:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-22709</guid> <description>Hi,
1st of all i&#039;m french so excuse my bad english ^_^here is my contribution for PAUSE button, tested with MooTools core 1.2.5, not working with 1.3 :JAVASCRIPT Part :
&lt;code&gt;
window.addEvent(&#039;domready&#039;,function() {
/* settings */
var showDuration = 3000;
var container = $(&#039;SlideShowPubs&#039;);
var images = container.getElements(&#039;img&#039;);
var currentIndex = 0;
var interval;
var toc = [];
var tocWidth = 20;
var tocActive = &#039;toc-active&#039;;
var playPause = false;/* new: starts the show */
var start = function() {
interval = show.periodical(showDuration);
$(&#039;pause&#039;).set(&#039;text&#039;,&#039;&#124;&#124;&#039;);
};
var stop = function() {
$clear(interval);
$(&#039;pause&#039;).set(&#039;text&#039;,&#039;&gt;&#039;);
};/* worker */
var show = function(to) {
images[currentIndex].fade(&#039;out&#039;);
toc[currentIndex].removeClass(tocActive);
images[currentIndex = ($defined(to) ? to : (currentIndex  0) { img.set(&#039;opacity&#039;,0); }
});/* new: control: next, pause and previous */
var next = new Element(&#039;a&#039;,{
href: &#039;#&#039;,
id: &#039;next&#039;,
text: &#039;&gt;&gt;&#039;,
events: {
click: function(e) {
if(e) e.stop();
stop(); show();
}
}
}).inject(container);
var pause = new Element(&#039;a&#039;,{
href: &#039;#&#039;,
id: &#039;pause&#039;,
text: &#039;&#124;&#124;&#039;,
events: {
click: function(e) {
if(e) {
// switch playPause to true or false depending on its previous state
playPause=!playPause;
// if TRUE then stop() slideshow, else start() (continue)
// TRUE means that user has clicked on the Pause button
playPause ? stop(): start();
}
}
}
}).inject(container);var previous = new Element(&#039;a&#039;,{
href: &#039;#&#039;,
id: &#039;previous&#039;,
text: &#039;&lt;&lt;&#039;,
events: {
click: function(e) {
if(e) e.stop();
stop(); show(currentIndex != 0 ? currentIndex -1 : images.length-1);
}
}
}).inject(container);/* new: control: start/stop on mouseover/mouseout */
/*container.addEvents({
mouseenter: function() { stop(); },
mouseleave: function() { start(); }
});*//* start once the page is finished loading */
window.addEvent(&#039;load&#039;,function(){
start();
});
});
&lt;/code&gt;And don&#039;t forget to put CSS part too :&lt;code&gt;
#pause {
position: absolute;
bottom: 20px;
right: 70px;
z-index: 2;
display: block;
width: 20px;
background: #6D84B4;
color: #fff;
text-align: center;
padding: 3px;
text-decoration: none;
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Hi,<br
/> 1st of all i&#8217;m french so excuse my bad english ^_^</p><p>here is my contribution for PAUSE button, tested with MooTools core 1.2.5, not working with 1.3 :</p><p>JAVASCRIPT Part :<br
/> <code><br
/> window.addEvent('domready',function() {<br
/> /* settings */<br
/> var showDuration = 3000;<br
/> var container = $('SlideShowPubs');<br
/> var images = container.getElements('img');<br
/> var currentIndex = 0;<br
/> var interval;<br
/> var toc = [];<br
/> var tocWidth = 20;<br
/> var tocActive = 'toc-active';<br
/> var playPause = false;</p><p> /* new: starts the show */<br
/> var start = function() {<br
/> interval = show.periodical(showDuration);<br
/> $('pause').set('text','||');<br
/> };</p><p> var stop = function() {<br
/> $clear(interval);<br
/> $('pause').set('text','&gt;');<br
/> };</p><p> /* worker */<br
/> var show = function(to) {<br
/> images[currentIndex].fade('out');<br
/> toc[currentIndex].removeClass(tocActive);<br
/> images[currentIndex = ($defined(to) ? to : (currentIndex  0) { img.set('opacity',0); }<br
/> });</p><p> /* new: control: next, pause and previous */<br
/> var next = new Element('a',{<br
/> href: '#',<br
/> id: 'next',<br
/> text: '&gt;&gt;',<br
/> events: {<br
/> click: function(e) {<br
/> if(e) e.stop();<br
/> stop(); show();<br
/> }<br
/> }<br
/> }).inject(container);</p><p> var pause = new Element('a',{<br
/> href: '#',<br
/> id: 'pause',<br
/> text: '||',<br
/> events: {<br
/> click: function(e) {<br
/> if(e) {<br
/> // switch playPause to true or false depending on its previous state<br
/> playPause=!playPause;<br
/> // if TRUE then stop() slideshow, else start() (continue)<br
/> // TRUE means that user has clicked on the Pause button<br
/> playPause ? stop(): start();<br
/> }<br
/> }<br
/> }<br
/> }).inject(container);</p><p> var previous = new Element('a',{<br
/> href: '#',<br
/> id: 'previous',<br
/> text: '&lt;&lt;&#039;,<br
/> events: {<br
/> click: function(e) {<br
/> if(e) e.stop();<br
/> stop(); show(currentIndex != 0 ? currentIndex -1 : images.length-1);<br
/> }<br
/> }<br
/> }).inject(container);</p><p> /* new: control: start/stop on mouseover/mouseout */<br
/> /*container.addEvents({<br
/> mouseenter: function() { stop(); },<br
/> mouseleave: function() { start(); }<br
/> });*/</p><p> /* start once the page is finished loading */<br
/> window.addEvent(&#039;load&#039;,function(){<br
/> start();<br
/> });<br
/> });<br
/> </code></p><p>And don&#8217;t forget to put CSS part too :</p><p><code><br
/> #pause {<br
/> position: absolute;<br
/> bottom: 20px;<br
/> right: 70px;<br
/> z-index: 2;<br
/> display: block;<br
/> width: 20px;<br
/> background: #6D84B4;<br
/> color: #fff;<br
/> text-align: center;<br
/> padding: 3px;<br
/> text-decoration: none;<br
/> }<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: babuk</title><link>http://davidwalsh.name/mootools-slideshow-ii#comment-22677</link> <dc:creator>babuk</dc:creator> <pubDate>Thu, 10 Feb 2011 09:13:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4472#comment-22677</guid> <description>I need pause button. i am not able to get this ?</description> <content:encoded><![CDATA[<p>I need pause button. i am not able to get this ?</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 2/7 queries in 0.011 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 10:37:58 -->
