<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development Blog &#187; slideshow</title>
	<atom:link href="http://www.leigeber.com/tag/slideshow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leigeber.com</link>
	<description>This web development blog features fresh articles on JavaScript, AJAX, CSS, XHTML, PHP, Photoshop and more.</description>
	<lastBuildDate>Sat, 13 Feb 2010 02:05:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Slideshow Script &#8211; TinySlider</title>
		<link>http://www.leigeber.com/2009/12/slideshow-script/</link>
		<comments>http://www.leigeber.com/2009/12/slideshow-script/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 19:44:37 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=297</guid>
		<description><![CDATA[This lightweight slideshow script supports any content and gracefully degrades without JavaScript support. It supports automatic rotation with the option to auto-resume, an active class on a navigation list if applicable, and a direction toggle (vertical or horizontal).]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2009/12/tiny-slider.jpg" alt="Slideshow Script" width="592" height="300" /></p>
<p>This super lightweight (1.5KB) and standalone sliding slideshow script can easily be customized to integrate with any website through CSS. You can add any content to it, not just images, and it gracefully degrades without JavaScript support. The script supports automatic rotation with the option to auto-resume, an active class on a navigation list if applicable, and a direction toggle (vertical or horizontal).</p>
<p>To initialize the script use the following:</p>
<pre class="brush: jscript;">var slideshow=new TINY.slider.slide('slideshow',{
	id:'slider', // ID of the parent slideshow div
	auto:3, // Seconds to auto-advance, defaults to disabled
	resume:true, // Resume auto after interrupted, defaults to false
	vertical:false, // Direction, defaults to false
	navid:'pagination', // Optional ID of direct navigation UL
	activeclass:'current', // Class to set on the current LI
	position:0 // Initial slide position, defaulting to index 0
});</pre>
<p>The first parameter taken by TINY.slider.slide is the variable name used for the object instance. You can also optionally set width and height parameters for the applicable direction you are sliding. If it is not set the width or height will be automatically calculated using the offsetWidth/offsetHeight of the first list element. This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><a href="http://sandbox.leigeber.com/tinyslider/">Click here for the demo.</a></p>
<p><a href="http://forum.leigeber.com/index.php?app=downloads&#038;showfile=8">Click here to download the source code.</a></p>
<p><strong>12/8/2009</strong> – Fixed bug that threw slider into loop outside of constraints.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2009/12/slideshow-script/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>Animated JavaScript Slideshow &#8211; 5KB</title>
		<link>http://www.leigeber.com/2008/12/javascript-slideshow/</link>
		<comments>http://www.leigeber.com/2008/12/javascript-slideshow/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 23:34:13 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=109</guid>
		<description><![CDATA[This JavaScript slideshow is feature packed and under 5KB. Features include smooth animation, title/description/link support, no naming restrictions, graceful degradation, on-demand image loading and active thumbnail status.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2008/12/javascript-slideshow.jpg" alt="JavaScript Slideshow" width="459" height="200" /></p>
<p>This dynamic JavaScript slideshow is feature packed and under 5KB. It is the long awaited update to my previous script <a href="http://www.leigeber.com/2008/05/ajax-image-gallery-slideshow/">here</a>. A few new features include description support, link support, no naming restrictions, portrait image support, graceful degradation and active thumbnail status. This script was built ground-up and will soon be included at <a href="http://www.scriptiny.com/">scriptiny </a>where all my scripts will be added as they are updated, debugged and incorporated in the new TINY namespace. I will also document the scripts more thoroughly and publish multiple examples. I will continue to publish scripts there and support as I have time via the new community forum. I will try and post more frequently here on a wide range of web development related topics.</p>
<p>Here is an example of the markup to build a slideshow…</p>
<pre class="brush: xml;">
&lt;ul id=&quot;slideshow&quot;&gt;
	&lt;li&gt;
		&lt;h3&gt;Image One&lt;/h3&gt;
		&lt;span&gt;photos/image-one.jpg&lt;/span&gt;
		&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.&lt;/p&gt;
		&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;thumbnails/image-one.jpg&quot; alt=&quot;Image One&quot; /&gt;&lt;/a&gt;
	&lt;/li&gt;
	&lt;li&gt;
		&lt;h3&gt;Image Two&lt;/h3&gt;
		&lt;span&gt;photos/image-two.jpg&lt;/span&gt;
		&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.&lt;/p&gt;
		&lt;img src=&quot;thumbnails/image-two.jpg&quot; alt=&quot;Image Two&quot; /&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Each &#8220;li&#8221; above represents an image. The &#8220;h3&#8243; content becomes the title for the image and the &#8220;p&#8221; the description. The &#8220;span&#8221; content is the path to the fullsize image. If you want to link the image wrap an &#8220;a&#8221; tag around the &#8220;img&#8221; tag which is the thumbnail image.</p>
<p>The following are the parameters that can be set on the object&#8230; more complete documentation will follow soon. Default values are displayed as (10) and recommended values as [1-20].</p>
<p><strong>Images</strong></p>
<p>imgSpeed = int; (10)<br />
navOpacity = int; (25)<br />
navHover = int; (70)<br />
letterbox = &#8220;string&#8221;; (#000) required color for letterbox on portrait images<br />
link = &#8220;string&#8221;; class name for link hover state</p>
<p><strong>Auto Slideshow</strong></p>
<p>auto = boolean; (false)<br />
speed = int; (10)</p>
<p><strong>Information Dialog</strong></p>
<p>info = boolean; (true)<br />
infoID = &#8220;string&#8221;; required for information dialog<br />
infoSpeed = int; (10)</p>
<p><strong>Thumbnail Slider</strong></p>
<p>thumbs = &#8220;string&#8221;; id of thumbnail slider, disabled if not set<br />
scrollSpeed = int; [1-20] (5)<br />
thumbOpacity = int; [0-100] (70)<br />
active = &#8220;string&#8221;; required for thumbnail active border<br />
spacing = int; (5) spacing between thumbnails<br />
left = &#8220;string&#8221;; id of left navigation link, required for slider<br />
right = &#8220;string&#8221;; id of right navigation link, required for slider</p>
<p>Here is an example calling the script&#8230;</p>
<pre class="brush: jscript;">var slideshow=new TINY.slideshow(&quot;slideshow&quot;);
window.onload=function(){
slideshow.auto=true;
slideshow.speed=5;
slideshow.link=&quot;linkhover&quot;;
slideshow.info=&quot;information&quot;;
slideshow.thumbs=&quot;slider&quot;;
slideshow.left=&quot;slideleft&quot;;
slideshow.right=&quot;slideright&quot;;
slideshow.scrollSpeed=4;
slideshow.spacing=5;
slideshow.active=&quot;#fff&quot;;
slideshow.init('slideshow','image','imgprev','imgnext','imglink');
}</pre>
<p>The init function takes 5 parameters (id of the slideshow content placeholder, the id of the image placeholder, the id of the previous image placeholder, the id of the next image placeholder, the id of the image link placeholder).</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/javascript-slideshow/" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://forum.leigeber.com/index.php?app=downloads&#038;showfile=6">Click here to download the source.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/12/javascript-slideshow/feed/</wfw:commentRss>
		<slash:comments>279</slash:comments>
		</item>
		<item>
		<title>Dynamic Image Gallery and Slideshow</title>
		<link>http://www.leigeber.com/2008/05/ajax-image-gallery-slideshow/</link>
		<comments>http://www.leigeber.com/2008/05/ajax-image-gallery-slideshow/#comments</comments>
		<pubDate>Thu, 15 May 2008 18:11:05 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=43</guid>
		<description><![CDATA[This lightweight Ajax image gallery and slideshow script clocks in under 3kb packed with a number of cool features.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2008/05/slideshow.jpg" alt="Ajax Image Gallery" width="459" height="250" /></p>
<p><strong>The updated version of the script is <a href="http://www.leigeber.com/2008/12/javascript-slideshow/">available here</a>.</strong></p>
<p>This extremely lightweight JavaScript image gallery and slideshow script clocks in under 3kb packed and includes a number of cool features. Recently I was looking for a nice existing script for a client project. I wanted something elegant, simple and lightweight. What I found were a number of scripts built on JavaScript frameworks and a few others that really lacked any appealing interface or were over  30kb. I challenged myself to build a full-featured slideshow gallery under 4kb. Hopefully I will be add a few more features to the script soon and make it a little mode user-friendly.</p>
<p>Here is an example of the markup&#8230;</p>
<pre class="brush: xml;">&lt;div id=&quot;gallery&quot;&gt;
&lt;div id=&quot;imagearea&quot;&gt;
&lt;div id=&quot;image&quot;&gt;
&lt;a href=&quot;javascript:slideShow.nav(-1)&quot; id=&quot;previmg&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;javascript:slideShow.nav(1)&quot; id=&quot;nextimg&quot;&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;thumbwrapper&quot;&gt;
&lt;div id=&quot;thumbarea&quot;&gt;
&lt;ul id=&quot;thumbs&quot;&gt;
&lt;li value=&quot;1&quot;&gt;&lt;img src=&quot;thumbs/1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;2&quot;&gt;&lt;img src=&quot;thumbs/2.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;3&quot;&gt;&lt;img src=&quot;thumbs/3.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;4&quot;&gt;&lt;img src=&quot;thumbs/4.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;5&quot;&gt;&lt;img src=&quot;thumbs/5.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p>The list section is the important element to the gallery. Each li has a value property that is set to the name of the full-size image. The interface is very flexible and can easily be altered in the HTML and CSS.</p>
<p>You will also need to setup the variables below and include the slideshow JavaScript&#8230;</p>
<pre class="brush: jscript;">var imgid = 'image'; // id of image div //
var imgdir = 'fullsize'; // full-size image directory //
var imgext = '.jpg'; // full-size image extension //
var thumbid = 'thumbs'; // id of the thumbnail container //
var auto = true; // automatic rotation toggle //
var autodelay = 5; // seconds before the image rotates //</pre>
<p>This script isn&#8217;t completely polished yet but I wanted to go ahead and get it out there for anyone that can put it to use. It has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/slideshow/" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://www.leigeber.com/wp-content/uploads/2008/05/slideshow.zip">Click here to download the source.</a></strong></p>
<p><strong>Update 5/16/2008</strong> &#8211; Updated CSS and added outline:none for the next and previous links.<br />
<strong>Update 5/26/2008</strong> &#8211; Updated the CSS to resolve an issue with resizing the window in IE6. Thanks to Jon Stoski for reporting.<br />
<strong>Update 5/28/2008</strong> &#8211; Pushed script inside global namespace. Fixed a couple IE related bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/05/ajax-image-gallery-slideshow/feed/</wfw:commentRss>
		<slash:comments>302</slash:comments>
		</item>
		<item>
		<title>Ultimate JavaScript Slider and Scroller</title>
		<link>http://www.leigeber.com/2008/05/ultimate-javascript-scroller-and-slider/</link>
		<comments>http://www.leigeber.com/2008/05/ultimate-javascript-scroller-and-slider/#comments</comments>
		<pubDate>Wed, 07 May 2008 03:34:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[scroller]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=38</guid>
		<description><![CDATA[This versatile JavaScript slider and scroller script makes it easy to scroll text blocks, create slideshows, slide between content blocks, create tickers and more.]]></description>
			<content:encoded><![CDATA[<p>This versatile and lightweight JavaScript clocks in at less than 3.5kb unpacked. The above example is one of four scenarios I have demonstrated on the <a href="http://sandbox.leigeber.com/contentslider/slider.html" target="_blank">demo page</a>.</p>
<p>To setup a scroll/slide area create a container with the following CSS properties&#8230;</p>
<pre class="brush: css;">position:relative; overflow:hidden; height:XXXpx;</pre>
<p>Inside the scroll area container create another div that will house your actual content. It needs the positioned absolutely within the previous div. Each sliding or scrolling area on the page needs to have a unique ID for this div.</p>
<pre class="brush: css;">position:absolute;</pre>
<p>Inside the content div you can need to create a section for each area of content, be it 1 or 50. For each section after the &#8220;prefix-&#8221; numerate the order from 1 onwards. The prefix (ie section, newssection, imgsection, etc) needs to be unique to the current sliding/scrolling container&#8217;s sections.</p>
<pre class="brush: xml;">&lt;div id=&quot;section-1&quot; class=&quot;section&quot;&gt;&lt;/div&gt;</pre>
<p>You can call functions to incrementally scroll up or down, scroll to a particular section and initiate autoscroll/cancel the autoscroll. Take a look at the source code for examples. You might also consider dynamically adding some currently static CSS properties such as overflow:hidden and the height to allow for better degradation without JavaScript support.</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/contentslider/slider.html" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://www.leigeber.com/wp-content/uploads/2008/05/contentslider.zip">Click here to download the source.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/05/ultimate-javascript-scroller-and-slider/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>
