<?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 Style Press, Best Practices from all the Web, Build Better Websites &#187; Rotators</title>
	<atom:link href="http://www.webstylepress.com/category/jquery/rotators/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Create jQuery Smooth News Rotator</title>
		<link>http://www.webstylepress.com/jquery-smooth-news-rotator/</link>
		<comments>http://www.webstylepress.com/jquery-smooth-news-rotator/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 19:42:17 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Rotators]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery news rotator]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[rotator]]></category>
		<category><![CDATA[scroller]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=369</guid>
		<description><![CDATA[Here is a very smooth little jQuery news scroller, ticker or rotator. One news at a time. This rotator adds a vertical news sliding animation with easing effect into content. Script file is as light as 1kb. Javascript Part Include this script in head section of web page or via external js file. &#60;script language=&#34;javascript&#34; [...]<p><a href="http://www.webstylepress.com/jquery-smooth-news-rotator/">Create jQuery Smooth News Rotator</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/news-scroller.gif" alt="" title="news-scroller" width="200" height="200" class="alignnone size-full wp-image-370" /></p>
<p>Here is a very smooth little jQuery news scroller, ticker or rotator. One news at a time. This rotator adds a vertical news sliding animation with easing effect into content. Script file is as light as 1kb.</p>
<p><span id="more-369"></span></p>
<h4>Javascript Part</h4>
<p>Include this script in head section of web page or via external js file.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #003366; font-weight: bold;">var</span> headline_count<span style="color: #339933;">;</span>
 <span style="color: #003366; font-weight: bold;">var</span> headline_interval<span style="color: #339933;">;</span>
 <span style="color: #003366; font-weight: bold;">var</span> old_headline <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
 <span style="color: #003366; font-weight: bold;">var</span> current_headline <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
 $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   headline_count <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.headline&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.headline:eq(&quot;</span><span style="color: #339933;">+</span>current_headline<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'top'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'5px'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   headline_interval <span style="color: #339933;">=</span> setInterval<span style="color: #009900;">&#40;</span>headline_rotate<span style="color: #339933;">,</span><span style="color: #CC0000;">5000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//time in milliseconds</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#scrollup'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     clearInterval<span style="color: #009900;">&#40;</span>headline_interval<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     headline_interval <span style="color: #339933;">=</span> setInterval<span style="color: #009900;">&#40;</span>headline_rotate<span style="color: #339933;">,</span><span style="color: #CC0000;">5000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//time in milliseconds</span>
     headline_rotate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #003366; font-weight: bold;">function</span> headline_rotate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   current_headline <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>old_headline <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> headline_count<span style="color: #339933;">;</span> 
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.headline:eq(&quot;</span> <span style="color: #339933;">+</span> old_headline <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>top<span style="color: #339933;">:</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">205</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'top'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'210px'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.headline:eq(&quot;</span> <span style="color: #339933;">+</span> current_headline <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>top<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
   old_headline <span style="color: #339933;">=</span> current_headline<span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<h4>CSS Part</h4>
<p>Include this css in head section.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
 <span style="color: #cc00cc;">#scrollup</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span>
 <span style="color: #00AA00;">&#125;</span>
 <span style="color: #6666ff;">.headline</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">210px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">195px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">190px</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<h4>HTML Part</h4>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;scrollup&quot;&gt;
&nbsp;
&lt;div class=&quot;headline&quot;&gt;
&lt;strong&gt;content 1 ...&lt;/strong&gt;
&lt;br /&gt;
This is content number 1
&lt;/div&gt; 
&nbsp;
&lt;div class=&quot;headline&quot;&gt;
&lt;strong&gt;content 2 ...&lt;/strong&gt;
&lt;br /&gt;
This is content number 2
&lt;/div&gt; 
&nbsp;
&lt;div class=&quot;headline&quot;&gt;
&lt;strong&gt;content 3 ...&lt;/strong&gt;
&lt;br /&gt;
This is content number 3
&lt;/div&gt; 
&nbsp;
&lt;div class=&quot;headline&quot;&gt;
&lt;strong&gt;content 4 ...&lt;/strong&gt;
&lt;br /&gt;
This is content number 4
&lt;/div&gt;     
&nbsp;
&lt;/div&gt;</pre></div></div>

<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/news-rotator.rar'>Download jQuery News Rotator</a></span></p>
<p><a href="http://www.webstylepress.com/jquery-smooth-news-rotator/">Create jQuery Smooth News Rotator</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/accessible-news-slider/" title="Accessible News Slider jQuery Plugin Download">Accessible News Slider jQuery Plugin Download</a></li><li><a href="http://www.webstylepress.com/use-any-font-in-webpages-as-text/" title="Use Any Font in Webpages As Text">Use Any Font in Webpages As Text</a></li><li><a href="http://www.webstylepress.com/change-image-opacity-easily-using-css-js/" title="Change Image Opacity Easily Using CSS or JS">Change Image Opacity Easily Using CSS or JS</a></li><li><a href="http://www.webstylepress.com/advanced-js-calendar/" title="Advanced JS Calendar">Advanced JS Calendar</a></li><li><a href="http://www.webstylepress.com/simple-js-calendar/" title="Create Simple Javascript Based Calendar">Create Simple Javascript Based Calendar</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-6/" title="Javascript Essentials Part 6">Javascript Essentials Part 6</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-5/" title="Javascript Essentials Part 5">Javascript Essentials Part 5</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-4/" title="Javascript Essentials Part 4">Javascript Essentials Part 4</a></li><li><a href="http://www.webstylepress.com/jquery-fancy-date-picker/" title="jQuery Fancy Date Picker">jQuery Fancy Date Picker</a></li><li><a href="http://www.webstylepress.com/javascript-essentials-part-3/" title="Javascript Essentials Part 3">Javascript Essentials Part 3</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/jquery-smooth-news-rotator/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

