<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: slideshow code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 00:39:18 GMT</pubDate>
    <description>DZone Snippets: slideshow code</description>
    <item>
      <title>embed flickr slideshow</title>
      <link>http://snippets.dzone.com/posts/show/5804</link>
      <description>// embed flickr slideshow&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;iframe align="center" src="http://www.flickr.com/slideShow/index.gne?user_id=12345678@N00&amp;tags=YOUR_TAGS" frameBorder="0" "width=500" height="500" scrolling="no"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 21 Jul 2008 19:59:39 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5804</guid>
      <author>fabricadecosas (ana m.)</author>
    </item>
    <item>
      <title>Beefed up RSS2 template for consumption with the Google Feed API Slide Show Control</title>
      <link>http://snippets.dzone.com/posts/show/4083</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;xml.instruct!&lt;br /&gt;&lt;br /&gt;# RSS2 rxml template based on: http://snippets.dzone.com/posts/show/558&lt;br /&gt;xml.rss "version" =&gt; "2.0", \&lt;br /&gt;        "xmlns:dc" =&gt; "http://purl.org/dc/elements/1.1/", \&lt;br /&gt;        "xmlns:media" =&gt; "http://search.yahoo.com/mrss/" do&lt;br /&gt;&lt;br /&gt;    xml.channel do&lt;br /&gt;&lt;br /&gt;        xml.title       "foto-foo :: public timeline"&lt;br /&gt;        xml.link        url_for :only_path =&gt; false, :controller =&gt; 'feeds'&lt;br /&gt;        xml.pubDate     CGI.rfc1123_date(@images.first.updated_at) if @images.any?&lt;br /&gt;        xml.description "foto-foo :: public timeline image feed"&lt;br /&gt;&lt;br /&gt;        host = "AWS.S3.storage.host"&lt;br /&gt;        @images.each do |img|&lt;br /&gt;            img.url = "http://#{host}/#{img.name}"&lt;br /&gt;            xml.item do&lt;br /&gt;                xml.title       img.name&lt;br /&gt;                xml.link        url_for :only_path =&gt; false, :controller =&gt; 'feeds', :action =&gt; 'show', :id =&gt; img.id&lt;br /&gt;                xml.description "&lt;a href='#{img.url}'&gt;&lt;img src='#{img.url}'/&gt;&lt;/a&gt;"&lt;br /&gt;                xml.enclosure :url =&gt; "#{img.url}", :type =&gt; "image/jpg"&lt;br /&gt;&lt;br /&gt;                xml.pubDate     CGI.rfc1123_date img.updated_at&lt;br /&gt;                xml.guid        url_for :only_path =&gt; false, :controller =&gt; 'posts', :action =&gt; 'show', :id =&gt; img.id&lt;br /&gt;                xml.author      "\"user-#{img.user_id}\" (#{img.user_id}@foto-foo.com)"&lt;br /&gt;&lt;br /&gt;                xml.media :group do&lt;br /&gt;                    xml.media :title, img.name&lt;br /&gt;                    xml.media \&lt;br /&gt;                        :content, :type =&gt; "#{img.mime}", :medium =&gt; "image", \&lt;br /&gt;                        :url =&gt; "#{img.url}"&lt;br /&gt;                        xml.media :credit, "#{img.credit.txt}", \&lt;br /&gt;                                :role =&gt; "#{img.credit.role}" &lt;br /&gt;                    xml.media :description, "#{img.desc}", :type =&gt; 'plain'&lt;br /&gt;                    xml.media :keywords, "#{img.tags}"&lt;br /&gt;                    xml.media :thumbnail, \&lt;br /&gt;                        :width =&gt; "#{img.thumbnail.widh}", \&lt;br /&gt;                        :height =&gt; "#{img.thumbnail.height}", \&lt;br /&gt;                        :url =&gt; "#{img.thumbnail.url}"&lt;br /&gt;                end&lt;br /&gt;            end&lt;br /&gt;        end&lt;br /&gt;&lt;br /&gt;    end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 31 May 2007 09:17:59 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4083</guid>
      <author>crux (dirk luesebrink)</author>
    </item>
    <item>
      <title>Scriptaculous JavaScript slideshow</title>
      <link>http://snippets.dzone.com/posts/show/1320</link>
      <description>Found this amazing code by obie at &lt;a href="http://blog.caboo.se/articles/2006/01/19/easy-scriptaculous-slideshow"&gt;http://blog.caboo.se/articles/2006/01/19/easy-scriptaculous-slideshow&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;var album = { &lt;br /&gt;  startup: function() { &lt;br /&gt;    new PeriodicalExecuter(album.cycle, 5) // change image every 5 seconds &lt;br /&gt;  }, &lt;br /&gt;  cycle: function() { &lt;br /&gt;    new Effect.Fade('image', { // the id of the &lt;DIV&gt; containing the photos &lt;br /&gt;      duration: 1, &lt;br /&gt;      fps: 50, &lt;br /&gt;      afterFinish: function() { &lt;br /&gt;        new Ajax.Updater('image','/album/next', { // URL for next &lt;IMG&gt; tag &lt;br /&gt;          asynchronous: true, &lt;br /&gt;          onSuccess: function() { &lt;br /&gt;            new Effect.Appear('image', {&lt;br /&gt;              duration: 1,&lt;br /&gt;              fps: 50,&lt;br /&gt;              queue:'end'&lt;br /&gt;            })&lt;br /&gt;          } &lt;br /&gt;        }) &lt;br /&gt;      } &lt;br /&gt;    }) &lt;br /&gt;  } &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;window.onload = album.startup&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I want to tweak it so that an earlier event precaches the next image instead.</description>
      <pubDate>Tue, 31 Jan 2006 21:12:58 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1320</guid>
      <author>peter (Peter Cooperx)</author>
    </item>
    <item>
      <title>Miniature slideshow for DIVs using Scriptaculous</title>
      <link>http://snippets.dzone.com/posts/show/1068</link>
      <description>&lt;code&gt;&lt;div id="slideshow1" class="slide"&gt;&lt;div&gt;frame 1&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="slideshow2" class="slide" style="display: none"&gt;&lt;div&gt;frame 2&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="slideshow3" class="slide" style="display: none"&gt;&lt;div&gt;frame 3&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="slideshow4" class="slide" style="display: none"&gt;&lt;div&gt;frame 4&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;    &lt;br /&gt;    start_slideshow(1, 4, 2000);&lt;br /&gt;    &lt;br /&gt;    function start_slideshow(start_frame, end_frame, delay) {&lt;br /&gt;        setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay);&lt;br /&gt;    }&lt;br /&gt;                            &lt;br /&gt;    function switch_slides(frame, start_frame, end_frame, delay) {&lt;br /&gt;        return (function() {&lt;br /&gt;            Effect.Fade('slideshow' + frame);&lt;br /&gt;            if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }&lt;br /&gt;            setTimeout("Effect.Appear('slideshow" + frame + "');", 850);&lt;br /&gt;            setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850);&lt;br /&gt;        })&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 05 Jan 2006 20:16:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1068</guid>
      <author>peter (Peter Cooperx)</author>
    </item>
  </channel>
</rss>
