<?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>nDzynes - Web Design and Development by Nathan Parikh &#187; flash</title>
	<atom:link href="http://www.ndzynes.com/category/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ndzynes.com</link>
	<description>Custom WordPress themes and plugins</description>
	<lastBuildDate>Tue, 05 Jan 2010 00:22:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Make a Featured Content Slider for Your Site</title>
		<link>http://www.ndzynes.com/make-a-featured-content-slider-for-your-site</link>
		<comments>http://www.ndzynes.com/make-a-featured-content-slider-for-your-site#comments</comments>
		<pubDate>Fri, 20 Jun 2008 16:47:15 +0000</pubDate>
		<dc:creator>Nathan Parikh</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[rotator]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://ndzynes.com/?p=52</guid>
		<description><![CDATA[If you surf the web for any length of time, you&#8217;ll eventually notice that a very popular and very useful tool that many websites use is a featured content slider. This is useful in a variety of ways. Churches like to use it to attractively display their upcoming events, businesses like to use it to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://preview.ndzynes.com/wp-content/uploads/2008/06/featured-content.jpg"><img class="alignleft size-medium wp-image-54" title="featured-content" src="http://ndzynes.com/wp-content/uploads/2008/06/featured-content-300x224.jpg" alt="Featured Content" width="300" height="224" /></a>If you surf the web for any length of time, you&#8217;ll eventually notice that a very popular and very useful tool that many websites use is a featured content slider. This is useful in a variety of ways. Churches like to use it to attractively display their upcoming events, businesses like to use it to showcase their latest products, bloggers can highlight their latest or most popular posts, and artists can showcase their latest work. There are just a lot of useful applications for this. Two &#8220;real-world&#8221; examples I quickly found were <a href="http://www.gateway.com" target="blank">Gateway&#8217;s website</a> and <a href="http://amd.com" target="blank">AMD&#8217;s website</a>.</p>
<p>Can&#8217;t wait? <a href="http://ndzynes.com/demo/FeaturedContentSlider/FeaturedContentDemo.html" target="blank">Here&#8217;s a preview</a> of what we&#8217;ll be making.</p>
<p>This tutorial is thorough, so it might seem long at first, but once you get it, you&#8217;ll see how easy it is. Don&#8217;t be scared of the code either, it&#8217;s mostly copy and paste.<br />
<span id="more-52"></span><br />
For this example, we&#8217;ll be using the popular <a href="http://www.jeroenwijering.com/?item=JW_Image_Rotator" target="blank">JW Image Rotator</a> which uses Flash. The player comes with built in controls, but they don&#8217;t look very good and if you have the controls turned on, then you also have to have the caption beneath the image&#8230;just not the best aesthetically.</p>
<p>Once you download the player, you&#8217;ll have to embed it in your page with some code. The easiest way to do this is to use the <a href="http://www.jeroenwijering.com/?page=wizard&amp;example=51" target="blank">Setup Wizard</a>. Make sure that you have the value &#8220;shownavigation&#8221; (found under Control Bar Appearance in the Setup Wizard) set to False. Under &#8220;External Communication&#8221;, set &#8220;enablejs&#8221; to True. Also, make sure that you use the swfobject code, not the embed code! Just click &#8220;get the swfobject code&#8221; at the bottom of the Setup Wizard Page.</p>
<p>Here&#8217;s a quick example of what your code should look like:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script src=&quot;http://www.jeroenwijering.com/embed/swfobject.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;
&nbsp;
&lt;div id=&quot;player&quot;&gt;This text will be replaced&lt;/div&gt;
&nbsp;
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Now that you have your slideshow finished, it&#8217;s time to give it some controls for your visitors.<br />
First, copy this code into your header before the ending head tag:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">2</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Next, we have to set up the HTML for the controls. Copy and paste this code beneath the code you used to embed your image rotator:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;flash_nav&quot;&gt;
&nbsp;
&lt;ul&gt;
&nbsp;
	&lt;li&gt;&lt;a href=&quot;javascript:sendEvent('mpl','playitem','0');&quot;&gt;1&lt;/a&gt;&lt;/li&gt;
&nbsp;
&nbsp;
	&lt;li&gt;&lt;a href=&quot;javascript:sendEvent('mpl','playitem','1');&quot;&gt;2&lt;/a&gt;&lt;/li&gt;
&nbsp;
&nbsp;
	&lt;li&gt;&lt;a href=&quot;javascript:sendEvent('mpl','playitem','2');&quot;&gt;3&lt;/a&gt;&lt;/li&gt;
&nbsp;
&lt;/ul&gt;
&lt;/div&gt;</pre></div></div>

<p>Here&#8217;s what some of that code means:<br />
&#8216;mpl&#8217; is the ID of the flash player which MUST match the ID of the embed code (line 6 in the first example). You can change this to anything you want, just remember to change the ID in both the Image Rotator code AND in the navigation code.<br />
In my example I had 3 links. However, you can have as many as your playlist has. Just update the numbers accordingly.</p>
<p>With some CSS styling you can get your featured content slider looking just the way you want.</p>
<p><a href="http://ndzynes.com/demo/FeaturedContentSlider/FeaturedContentDemo.html" target="blank">My final result</a><br />
Download my example: <a class="downloadlink" href="http://www.ndzynes.com/download/FeaturedContentSlider.zip" title="Version1.0 downloaded 4675 times" >Featured Content Slider Demo (4675)</a></p>
<p>This is not the only way to create this feature on your website, but I hope this method will be a help to you!</p>
<img src="http://www.ndzynes.com/?ak_action=api_record_view&id=52&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.ndzynes.com/make-a-featured-content-slider-for-your-site/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>
