CINXE.COM
Sliderota jQuery Plugin | bavotasan.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en-US"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://bavotasan.com/downloads/sliderota-jquery-plugin/","20101120003258","https://web.archive.org/","web","/_static/", "1290213178"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="googlebot" content="index,archive,follow,noodp"/> <meta name="robots" content="all,index,follow"/> <meta name="msnbot" content="all,index,follow"/> <meta name="description" content=" The new design on Themes by bavotasan.com required a content slider so I built a simple jQuery plugin that would work the way I needed it to. There isn't..."/> <meta name="keywords" content="Background Url,Click,end,Function,Images,jquery,loop,overflow,plugin,Png,Slides,Slideshow,speed,timer,Width,"/> <title>Sliderota jQuery Plugin | bavotasan.com</title> <link rel="stylesheet" href="https://web.archive.org/web/20101120003258cs_/http://bavotasan.com/wp-content/themes/bavotasan-2010/style.css?ver=1.0.8" type="text/css" media="screen"/> <link rel="shortcut icon" href="https://web.archive.org/web/20101120003258im_/http://bavotasan.com/favicon.ico"/> <link rel="pingback" href="http://bavotasan.com/xmlrpc.php"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Feed" href="https://web.archive.org/web/20101120003258/http://bavotasan.com/feed/"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Comments Feed" href="https://web.archive.org/web/20101120003258/http://bavotasan.com/comments/feed/"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Sliderota jQuery Plugin Comments Feed" href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/feed/"/> <script type="text/javascript" src="https://web.archive.org/web/20101120003258js_/http://bavotasan.com/wp-includes/js/jquery/jquery.js?ver=1.4.2"></script> <link rel="index" title="bavotasan.com" href="http://bavotasan.com/"/> <link rel="start" title="Removing Images from a WordPress Post: Redux" href="http://bavotasan.com/tutorials/removing-images-from-a-wordpress-post/"/> <link rel="prev" title="A Slightly New Design for Themes by bavotasan.com" href="https://web.archive.org/web/20101120003258/http://bavotasan.com/articles/slightly-new-design-for-themes-by-bavotasan-com/"/> <link rel="next" title="Gradient Buttons with CSS3" href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/gradient-buttons-with-css3/"/> <link rel="canonical" href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/"/> <link rel="shortlink" href="https://web.archive.org/web/20101120003258/http://bit.ly/c9eYpO"/> <script type="text/javascript" src="https://web.archive.org/web/20101120003258js_/http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script> <meta property="fb:page_id" content="137456822940271"/> <meta property="fb:admins" content="586505548"/> <meta property="og:site_name" content="bavotasan.com"/> <meta property="og:title" content="Sliderota jQuery Plugin"/> <meta property="og:description" content="The new design on Themes by bavotasan.com required a content slider so I built a simple jQuery plugin that would work the way I needed it to. There isn鈥檛 much to it but you can set the speed, slide timer, easing and if you want it to work solely as a content slider or as [...]"/> <meta property="og:type" content="article"/> <meta property="og:image" content="https://web.archive.org/web/20101120003258im_/http://bavotasan.com/wp-content/uploads/2010/04/sliderota-sml.jpg"/> </head> <body class="single single-post postid-1973"> <div id="bodywrap"> <!-- BuySellAds.com Ad Code --> <script type="text/javascript"> (function(){ var bsa = document.createElement('script'); bsa.type = 'text/javascript'; bsa.async = true; bsa.src = '//web.archive.org/web/20101120003258/http://s3.buysellads.com/ac/bsa.js'; (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); })(); </script> <!-- END BuySellAds.com Ad Code --> <!-- begin header --> <div id="header"> <div id="topmenu" class="menu-top-menu-container"><ul id="menu-top-menu" class="menu"><li id="menu-item-2254" class="menu-item menu-item-type-custom menu-item-2254"><a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/">Themes by bavotasan.com</a></li> <li id="menu-item-2255" class="menu-item menu-item-type-custom menu-item-2255"><a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/support/">Support Forum</a></li> <li id="menu-item-2259" class="menu-item menu-item-type-custom menu-item-2259"><a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/affiliates">Affiliates</a></li> <li id="menu-item-2256" class="menu-item menu-item-type-post_type menu-item-2256"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/about/">About</a></li> <li id="menu-item-2257" class="menu-item menu-item-type-post_type menu-item-2257"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/services/">Services</a></li> <li id="menu-item-2258" class="menu-item menu-item-type-post_type menu-item-2258"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/contact/">Contact</a></li> </ul></div> <div id="title"> <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/"> <img src="https://web.archive.org/web/20101120003258im_/http://bavotasan.com/wp-content/themes/bavotasan-2010/images/bavotasan.png" alt="bavotasan.com" width="400" height="70"/> <span id="desc"></span></a> </div> <div id="follow"> <span></span> <a href="https://web.archive.org/web/20101120003258/http://twitter.com/bavotasan" class="twitter"></a> <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/feed/" class="rss"></a> </div> <div id="navigation" class="menu-main-menu-container"> <ul id="menu-main-menu" class="menu"> <li id="menu-item-2264"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/"><span></span>Home</a></li> <li id="menu-item-2266"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/category/articles/"><span></span>Articles</a></li> <li id="menu-item-2265"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/category/tutorials/"><span></span>Tutorials</a></li> <li id="menu-item-2267" class="current-menu-item"><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/category/downloads/"><span></span>Downloads</a></li> </ul> </div> </div> <!-- end header --> <div id="mainwrapper"> <div id="leftcontent"> <div class="posttop"> <div class="thedate"><div class="month">Apr</div><div class="day">21</div><div class="year">2010</div></div> <h1>Sliderota jQuery Plugin</h1> <br class="clear"/> <p><img src="https://web.archive.org/web/20101120003258im_/http://bavotasan.com/wp-content/uploads/2010/04/sliderota-570x240.jpg" alt="" title="sliderota" width="570" height="240" class="aligncenter size-medium wp-image-1976"/><br/> The new design on <a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/">Themes by bavotasan.com</a> required a content slider so I built a simple <a href="https://web.archive.org/web/20101120003258/http://jquery.com/">jQuery</a> plugin that would work the way I needed it to. There isn’t much to it but you can set the speed, slide timer, easing and if you want it to work solely as a content slider or as a slideshow. It even loops so you don’t have any of that ugly backwards sliding when it hits the end.<br/> <span id="more-1973"></span><br/> Here is the basic CSS you need:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#sliderota</span> <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">900px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* change to the width you want */</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">380px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* change to the height you want */</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;">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;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">(</span><span style="color: #ff0000; font-style: italic;">../images/bigad_bg.png</span><span style="color: #00AA00;">)</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> <span style="color: #6666ff;">.slides</span> <span style="color: #00AA00;">{</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: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> img <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> ul <span style="color: #00AA00;">{</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;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> ul li <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> ul li a <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">(</span><span style="color: #ff0000; font-style: italic;">../images/controls.png</span><span style="color: #00AA00;">)</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> ul li<span style="color: #6666ff;">.selected</span> a <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-18px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> <span style="color: #6666ff;">.controls</span> a <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</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;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">(</span><span style="color: #ff0000; font-style: italic;">../images/controls.png</span><span style="color: #00AA00;">)</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">-54px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span> <span style="color: #cc00cc;">#sliderota</span> <span style="color: #6666ff;">.controls</span> a<span style="color: #6666ff;">.play</span> <span style="color: #00AA00;">{</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-36px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">}</span></pre></div></td></tr></table></div> <p>Here is the basic HTML:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;"><</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sliderota"</span><span style="color: #339933;">></span> <span style="color: #339933;"><</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">"slides"</span><span style="color: #339933;">></span> <span style="color: #339933;"><</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://themes.bavotasan.com/our-themes/premium-themes/moderno"</span><span style="color: #339933;">><</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">"images/moderno_bigad.png"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"900"</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"380"</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">"Moderno"</span> <span style="color: #339933;">/></</span>a<span style="color: #339933;">></span> <span style="color: #339933;"><</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://themes.bavotasan.com/our-themes/premium-themes/magazine-premium"</span><span style="color: #339933;">><</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">"images/magprem_bigad.png"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"900"</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"380"</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">"Magazine Premium"</span> <span style="color: #339933;">/></</span>a<span style="color: #339933;">></span> <span style="color: #339933;"><</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://themes.bavotasan.com/our-themes/premium-themes/stationery"</span><span style="color: #339933;">><</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">"images/stationery_bigad.png"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"900"</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"380"</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">"Stationery"</span> <span style="color: #339933;">/></</span>a<span style="color: #339933;">></span> <span style="color: #339933;"><</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://themes.bavotasan.com/our-themes/premium-themes/illustrious"</span><span style="color: #339933;">><</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">"images/illustrious_bigad.png"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"900"</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"380"</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">"Illustrious"</span> <span style="color: #339933;">/></</span>a<span style="color: #339933;">></span> <span style="color: #339933;"></</span>div<span style="color: #339933;">></span> <span style="color: #339933;"></</span>div<span style="color: #339933;">></span></pre></div></td></tr></table></div> <p>Of course, you need to call jQuery and the plugin function:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;"><</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">"text/javascript"</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"</span><span style="color: #339933;">></</span>script<span style="color: #339933;">></span> <span style="color: #339933;"><</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">"text/javascript"</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"</span><span style="color: #339933;">></</span>script<span style="color: #339933;">></span> <span style="color: #339933;"><</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">"text/javascript"</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">"js/jquery.sliderota.js"</span><span style="color: #339933;">></</span>script<span style="color: #339933;">></span> <span style="color: #339933;"><</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">"text/javascript"</span><span style="color: #339933;">></span> $<span style="color: #009900;">(</span><span style="color: #0000ff;">"#sliderota"</span><span style="color: #009900;">)</span><span style="color: #339933;">.</span>sliderota<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;"></script></span></pre></div></td></tr></table></div> <p>If you are only using <a href="https://web.archive.org/web/20101120003258/http://jquery.com/">jQuery</a> 1.3.2, then you will also have to include the <a href="https://web.archive.org/web/20101120003258/http://gsgd.co.uk/sandbox/jquery/easing/">Easing plugin</a> to use the advanced easing options that are included in the Core UI v1.8.0.</p> <p>And now for the plugin:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/** * jQuery.sliderota * Version 1.0 * Copyright (c) 2010 c.bavota - http://bavotasan.com * Dual licensed under MIT and GPL. * Date: 04/22/2010 **/</span> <span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span>$<span style="color: #009900;">)</span> <span style="color: #009900;">{</span> $.<span style="color: #660066;">fn</span>.<span style="color: #660066;">sliderota</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span>options<span style="color: #009900;">)</span> <span style="color: #009900;">{</span> <span style="color: #006600; font-style: italic;">// setting the defaults</span> <span style="color: #006600; font-style: italic;">// $("#sliderota").sliderota({speed: 3000, timer: 6000, slideshow: true, easing: "easeInOutQuint"});</span> <span style="color: #003366; font-weight: bold;">var</span> defaults <span style="color: #339933;">=</span> <span style="color: #009900;">{</span> speed<span style="color: #339933;">:</span> <span style="color: #CC0000;">3000</span><span style="color: #339933;">,</span> timer<span style="color: #339933;">:</span> <span style="color: #CC0000;">6000</span><span style="color: #339933;">,</span> slideshow<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">'easeInOutQuint'</span> <span style="color: #009900;">}</span><span style="color: #339933;">;</span> <span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> $.<span style="color: #660066;">extend</span><span style="color: #009900;">(</span>defaults<span style="color: #339933;">,</span> options<span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// and the plugin begins</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> <span style="color: #006600; font-style: italic;">// initializing the variables</span> <span style="color: #003366; font-weight: bold;">var</span> loop<span style="color: #339933;">,</span> counter<span style="color: #339933;">,</span> obj<span style="color: #339933;">,</span> totalWidth<span style="color: #339933;">,</span> itemWidth<span style="color: #339933;">,</span> curLeft<span style="color: #339933;">,</span> itemNum<span style="color: #339933;">,</span> limit<span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// creating the object variable</span> obj <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> counter <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> itemWidth <span style="color: #339933;">=</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">width</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> itemNum <span style="color: #339933;">=</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides a"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> totalWidth <span style="color: #339933;">=</span> <span style="color: #009900;">(</span>itemNum <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">)</span> <span style="color: #339933;">*</span> itemWidth<span style="color: #339933;">;</span> limit <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #009900;">(</span>itemNum <span style="color: #339933;">*</span> itemWidth<span style="color: #009900;">)</span><span style="color: #339933;">;</span> obj .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">css</span><span style="color: #009900;">(</span><span style="color: #009900;">{</span> width<span style="color: #339933;">:</span> totalWidth<span style="color: #339933;">+</span><span style="color: #3366CC;">"px"</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> .<span style="color: #660066;">append</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"<ul></ul>"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides a"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">each</span><span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> $<span style="color: #009900;">(</span><span style="color: #3366CC;">"<li><a href='javascript:void(0)' class='slide_"</span><span style="color: #339933;">+</span>counter<span style="color: #339933;">+</span><span style="color: #3366CC;">"'></a></li>"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">(</span>obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"ul"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> counter<span style="color: #339933;">++;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"ul li:eq(0)"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"selected"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides a:eq(0)"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">clone</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#simpleslider .slides"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #006600; font-style: italic;">// creating the click event</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"ul li a"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">live</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"ul li"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">each</span><span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"selected"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> curLeft <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'class'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"slide_"</span><span style="color: #339933;">,</span><span style="color: #3366CC;">""</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> curLeft <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #009900;">(</span>curLeft <span style="color: #339933;">*</span> itemWidth<span style="color: #009900;">)</span><span style="color: #339933;">;</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"selected"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> obj <span style="color: #006600; font-style: italic;">// selecting the object</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides"</span><span style="color: #009900;">)</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">(</span><span style="color: #009900;">{</span> left<span style="color: #339933;">:</span> curLeft<span style="color: #339933;">+</span><span style="color: #3366CC;">"px"</span> <span style="color: #009900;">}</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">speed</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">easing</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls a.play"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">show</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls a.pause"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> clearTimeout<span style="color: #009900;">(</span>loop<span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// slideshow functionality</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">(</span>options.<span style="color: #660066;">slideshow</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> <span style="color: #006600; font-style: italic;">// adding the play/pause controls</span> obj <span style="color: #006600; font-style: italic;">// selecting the object</span> .<span style="color: #660066;">append</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"<div class='controls'></div>"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">append</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"<a href='javascript:void(0)' class='play'></a>"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">append</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"<a href='javascript:void(0)' class='pause'></a>"</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #006600; font-style: italic;">// creating the play click event</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls .play"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">click</span><span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> loop <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> moveSlides<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">timer</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls .pause"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">show</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span> .<span style="color: #660066;">end</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #006600; font-style: italic;">// creating the pause click event</span> .<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls .pause"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">click</span><span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> clearTimeout<span style="color: #009900;">(</span>loop<span style="color: #009900;">)</span><span style="color: #339933;">;</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".controls .play"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">show</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// creating the loop for the slideshow</span> loop <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> moveSlides<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">timer</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// creating the function to move the slides</span> <span style="color: #003366; font-weight: bold;">function</span> moveSlides<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"ul li"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">each</span><span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> $<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"selected"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span> curLeft <span style="color: #339933;">=</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">css</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'left'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"px"</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">""</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> curItem <span style="color: #339933;">=</span> <span style="color: #009900;">(</span>Math.<span style="color: #660066;">abs</span><span style="color: #009900;">(</span>curLeft<span style="color: #009900;">)</span> <span style="color: #339933;">/</span> itemWidth<span style="color: #009900;">)</span><span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">(</span>curLeft<span style="color: #339933;">==</span>limit<span style="color: #339933;">+</span>itemWidth<span style="color: #009900;">)</span> <span style="color: #009900;">{</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'ul li:eq(0)'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"selected"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">{</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'ul li a.slide_'</span><span style="color: #339933;">+</span>curItem<span style="color: #009900;">)</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"selected"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span> curLeft <span style="color: #339933;">=</span> curLeft <span style="color: #339933;">-</span> itemWidth<span style="color: #339933;">;</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides"</span><span style="color: #009900;">)</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">(</span><span style="color: #009900;">{</span> left<span style="color: #339933;">:</span> curLeft<span style="color: #339933;">+</span><span style="color: #3366CC;">"px"</span> <span style="color: #009900;">}</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">speed</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">easing</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">(</span>curLeft<span style="color: #339933;">==</span>limit<span style="color: #009900;">)</span> <span style="color: #009900;">{</span> obj.<span style="color: #660066;">find</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".slides"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">css</span><span style="color: #009900;">(</span><span style="color: #009900;">{</span> left<span style="color: #339933;">:</span> <span style="color: #3366CC;">"0px"</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> loop <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">(</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> moveSlides<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">timer</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #339933;">;</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>jQuery<span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div> <p>The options are pretty simple:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">(</span><span style="color: #3366CC;">"#sliderota"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">sliderota</span><span style="color: #009900;">(</span><span style="color: #009900;">{</span> speed<span style="color: #339933;">:</span> <span style="color: #CC0000;">3000</span><span style="color: #339933;">,</span> timer<span style="color: #339933;">:</span> <span style="color: #CC0000;">6000</span><span style="color: #339933;">,</span> slideshow<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">"easeInOutQuint"</span> <span style="color: #009900;">}</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div> <div class="buttonbox"> <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/download-manager.php?id=26" class="button">Download</a><a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/" class="button">Demo</a> </div> </div> <div class="post"> <div class="socialleft">If you liked this, please share it.</div> <ul class="addtoany_list"> <li><a href="https://web.archive.org/web/20101120003258/http://twitter.com/share?url=http%3A%2F%2Fbit.ly%2Fc9eYpO&counturl=http://bavotasan.com/downloads/sliderota-jquery-plugin/" class="twitter-share-button" data-count="vertical" data-via="bavotasan">Tweet</a><script type="text/javascript" src="https://web.archive.org/web/20101120003258js_/http://platform.twitter.com/widgets.js"></script></li> <li><a href="https://web.archive.org/web/20101120003258/http://www.facebook.com/sharer.php?u=http://bavotasan.com/downloads/sliderota-jquery-plugin/&t=Sliderota jQuery Plugin" title="Click to send this page to Facebook!" target="_blank" rel="nofollow" class="facebook-icon"></a></li> <li><a href="https://web.archive.org/web/20101120003258/http://digg.com/submit?phase=2&url=http://bavotasan.com/downloads/sliderota-jquery-plugin/&title=Sliderota jQuery Plugin&bodytext=The new design on Themes by bavotasan.com required a content slider so I built a simple jQuery plugin that would work the way I needed it to. There isn鈥檛 much to it but you can set the speed, slide timer, easing and if you want it to work solely as a content slider or as [...]" title="Digg" rel="nofollow" target="_blank" class="digg-icon"></a></li> <li><a href="https://web.archive.org/web/20101120003258/http://www.delicious.com/save" onclick="window.open('https://web.archive.org/web/20101120003258/http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent('https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/')+'&title='+encodeURIComponent('Sliderota jQuery Plugin'),'delicious', 'toolbar=no,width=550,height=550'); return false;" class="delicious-icon"></a></li> <li><a href="https://web.archive.org/web/20101120003258/http://www.stumbleupon.com/submit?url=http://bavotasan.com/downloads/sliderota-jquery-plugin/&title=Sliderota jQuery Plugin" title="StumbleUpon" rel="nofollow" target="_blank" class="stumbleupon-icon"></a></li> <li><iframe src="https://web.archive.org/web/20101120003258if_/http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbavotasan.com%2Fdownloads%2Fsliderota-jquery-plugin%2F&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowtransparency="true"></iframe></li> </ul> </div> <div class="post"><div class="help"></div>If you require help or support, please visit the <a href="https://web.archive.org/web/20101120003258/http://support.bavotasan.com/" title="Support Forum">Support Forum</a> and ask all your questions there. Questions about themes or plugins posted in the comments below will not be answered.</div> <div class="post"> <p class="tags">Tags: <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/background-url/" rel="tag">Background Url</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/click/" rel="tag">Click</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/end/" rel="tag">end</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/function/" rel="tag">Function</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/images/" rel="tag">Images</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/jquery/" rel="tag">jquery</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/loop/" rel="tag">loop</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/overflow/" rel="tag">overflow</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/plugin/" rel="tag">plugin</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/png/" rel="tag">Png</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/slides/" rel="tag">Slides</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/slideshow/" rel="tag">Slideshow</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/speed/" rel="tag">speed</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/timer/" rel="tag">timer</a>, <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tag/width/" rel="tag">Width</a></p> <p class="tags">Short URL: <a href="https://web.archive.org/web/20101120003258/http://bit.ly/c9eYpO" title="Sliderota jQuery Plugin">http://bit.ly/c9eYpO</a></p> </div> <div class="post"> <div id="crp_related"> <h3>Similar Posts</h3> <ul> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/my-first-vanilla-plugin/" rel="bookmark" title="Permanent Link to My First Vanilla Plugin">My First Vanilla Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/" rel="bookmark" title="Permanent Link to Delete Duplicate Posts Pro WordPress Plugin">Delete Duplicate Posts Pro WordPress Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/" rel="bookmark" title="Permanent Link to A Basic jQuery Slideshow">A Basic jQuery Slideshow</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/optimization-tips-speed-up-site/" rel="bookmark" title="Permanent Link to Optimization Tips to Speed Up Your Site">Optimization Tips to Speed Up Your Site</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/jquery-replace-word-with-link/" rel="bookmark" title="Permanent Link to Use jQuery to Replace a Word with a Link">Use jQuery to Replace a Word with a Link</a></li> </ul> </div> <a href="https://web.archive.org/web/20101120003258/http://www.netfirms.com/web-hosting/web-hosting-business/?a_aid=4c8bb52b19602&a_bid=8f049e07" target="_top" style="float:right;"><img src="https://web.archive.org/web/20101120003258im_/http://www.webhostrevenue.com/accounts/default1/banners/300x250-us.gif" alt="Netfirms Business Hosting Plan" title="Netfirms Business Hosting Plan" width="250" height="208"/></a><img style="border:0" src="https://web.archive.org/web/20101120003258im_/http://www.webhostrevenue.com/scripts/imp.php?a_aid=4c8bb52b19602&a_bid=8f049e07" width="1" height="1" alt=""/> </div> <div class="post"> <a href="#comment_list"></a> <div id="comments"> <h3 id="comments-title">Discussion <small> 3 Comments</small> </h3> <ol class="commentlist"> <li class="comment even thread-even depth-1" id="li-comment-8915"> <div id="comment-8915"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120003258im_/http://0.gravatar.com/avatar/82ae24c1abb2d6a58b32478e190452af?s=60&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120003258/http://www.eavasi.ru/" rel="external " class="url">eavasi</a></span> <span class="commentdate"> on April 22, 2010 at 2:34 am</span> </div> <div class="comment-text"> <p>Great design! Very cool!<br/> Wonderful jQuery code-slide effect!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/?replytocom=8915#respond" onclick="return addComment.moveForm("comment-8915", "8915", "respond", "1973")">Reply</a> </div> </div> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-9023"> <div id="comment-9023"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120003258im_/http://0.gravatar.com/avatar/82ae24c1abb2d6a58b32478e190452af?s=60&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120003258/http://www.eavasi.ru/" rel="external " class="url">eavasi</a></span> <span class="commentdate"> on April 28, 2010 at 2:15 am</span> </div> <div class="comment-text"> <p>I am from Russian bloggers. I can tell you exactly that Russian bloggers are not actively using the sliders in the themes of their blogs. However, they like very much templates with fluid width depending on the resolution of the monitor user.<br/> Thank you for the article. Perhaps the time will come when the Russian blogs sliders’ll be very popular.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/?replytocom=9023#respond" onclick="return addComment.moveForm("comment-9023", "9023", "respond", "1973")">Reply</a> </div> </div> </li> <li class="comment even thread-even depth-1" id="li-comment-12581"> <div id="comment-12581"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120003258im_/http://0.gravatar.com/avatar/8fd6cadc79df5852087f1fa64204fbae?s=60&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120003258/http://lafreebeee.com/" rel="external " class="url">David</a></span> <span class="commentdate"> on July 10, 2010 at 1:29 am</span> </div> <div class="comment-text"> <p>I love the slider. Thanks<br/> Also your new site looks great!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/?replytocom=12581#respond" onclick="return addComment.moveForm("comment-12581", "12581", "respond", "1973")">Reply</a> </div> </div> </li> </ol> <a name="respond"></a> <div id="respond"> <h3 id="reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/#respond" style="display:none;">Cancel reply</a></small></h3> <form action="https://web.archive.org/web/20101120003258/http://bavotasan.com/wp-comments-post.php" method="post" id="commentform"> <p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p> <p class="comment-form-author"><label for="author">Name</label> <span class="required">*</span><br/><input id="author" name="author" type="text" value="" size="30"/></p> <p class="comment-form-email"><label for="email">Email</label> <span class="required">*</span><br/><input id="email" name="email" type="text" value="" size="30"/></p> <p class="comment-form-url"><label for="url">Website</label><br/><input id="url" name="url" type="text" value="" size="30"/></p> <p>To enter code in the comment box, please place it between <strong><pre lang="php"> </pre></strong> tags. You don't have to convert any characters to their hex/HTML code. Just add your code the way you would to any code editor.</p> <p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p> <p class="form-submit"> <input name="submit" type="submit" id="submit" value="Post Comment"/> <input type="hidden" name="comment_post_ID" value="1973" id="comment_post_ID"/> <input type="hidden" name="comment_parent" id="comment_parent" value="0"/> </p> </form> </div><!-- #respond --> </div><!-- #comments --> </div> </div> <!-- begin sidebar --> <div id="sidebar"> <div id="search"> <form method="get" id="searchform" action="https://web.archive.org/web/20101120003258/http://bavotasan.com/"> <div> <input type="text" class="search_input" value="Search" name="s" id="s" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}"/> <input type="hidden" id="searchsubmit" value="Search"/> </div> </form> <div class="arrow"></div> </div> <div id="sideads"> <!-- BuySellAds.com Zone Code --> <div id="bsap_1237633" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div> <!-- END BuySellAds.com Zone Code --> <br class="clear"/> <!-- BuySellAds.com Zone Code --> <div id="bsap_1237624" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div> <!-- END BuySellAds.com Zone Code --> </div> <br class="clear"/> <div class="line"></div> <div class="side-widget"> <h4>Most Popular Posts</h4> <ul class="wppp_list"> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/creating-a-jquery-mouseover-fade-effect/" title="Creating a Mouseover Fade Effect with jQuery ">Creating a Mouseover Fade Effect with jQuery </a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/a-simple-mouseover-hover-effect-with-jquery/" title="A Simple Mouseover Hover Effect with jQuery">A Simple Mouseover Hover Effect with jQuery</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/" title="Full Size Background Image jQuery Plugin">Full Size Background Image jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/" title="Magazine Basic v2.6 WordPress Theme">Magazine Basic v2.6 WordPress Theme</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/" title="Processing Multiple Forms on One Page with PHP">Processing Multiple Forms on One Page with PHP</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/6-free-vinyl-record-vectors/" title="6 Free Vinyl Record Vectors">6 Free Vinyl Record Vectors</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/how-to-create-a-twitter-feed-on-your-web-site/" title="How to Create a Twitter Feed on Your Web Site">How to Create a Twitter Feed on Your Web Site</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/php-code-to-redirect-mobilehandheld-users/" title="PHP Code to Redirect Mobile/Handheld Users">PHP Code to Redirect Mobile/Handheld Users</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/" title="Excerpt or Content Word Limit in WordPress: Redux">Excerpt or Content Word Limit in WordPress: Redux</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/adding-extra-fields-to-the-wordpress-user-profile/" title="Adding Extra Fields to the WordPress User Profile">Adding Extra Fields to the WordPress User Profile</a></li> </ul> </div> <div id="affiliates-ads"> <a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/" class="themes"></a> <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/" class="deletedupes"></a> <a href="https://web.archive.org/web/20101120003258/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest&page=7" class="inmotion"></a> </div> <div class="line"></div> <div class="side-widget redlink"> <h4>Get a Premium Theme for FREE</h4> <p><a href="https://web.archive.org/web/20101120003258/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest" class="wordpress-logo"></a>Don't have a Web site? How would you like to have WordPress and a <a href="https://web.archive.org/web/20101120003258/http://themes.bavotasan.com/category/premium-themes">Themes by bavotasan.com</a> Premium theme installed and configured for <em>FREE</em>? All you need to do is <a href="https://web.archive.org/web/20101120003258/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest">sign up with InMotion Hosting through this link</a>. <br/> <br/> <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/free-premium-theme/" class="fr"><em>Click here for more information »</em></a> </p> </div> <div class="side-widget"> <h4>Support c.bavota</h4> <p>If you would like to support <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/">c.bavota</a> and <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/">bavotasan.com</a>, please use the donate link below. Any amount, even $1.00, is appreciated (a man's gotta eat, ya know).</p> <a href="https://web.archive.org/web/20101120003258/https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5745952" id="donate" class="fr">Donate</a> </div> </div> <!-- end sidebar --></div> </div> <!-- begin footer --> <div class="whiteline"></div> <div id="footer"> <div id="bottombar"> <a href="javascript:void(0)" class="backtotop">Back to Top<span></span></a> <div class="col col1"> <h4 class="one"><span></span>Stay in Touch</h4> <a href="https://web.archive.org/web/20101120003258/http://twitter.com/bavotasan" class="footer-twitter"><span></span>Follow me on Twitter</a><br/> <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/feed/" class="footer-rss"><span></span>Subscribe to my RSS Feed</a> <br class="clear"/> <h4 class="two"><span></span>Stay in Tune</h4> <div class="tweets"></div> </div> <div class="col col2"> <h4 class="three"><span></span>Downloads</h4> <ul> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/my-first-vanilla-plugin/">My First Vanilla Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/">Delete Duplicate Posts Pro WordPress Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/feed-me-seymour-free-wordpress-theme/">Feed Me, Seymour 1.2</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/">Magazine Basic v2.6 WordPress Theme</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/sliderota-jquery-plugin/">Sliderota jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/">Full Size Background Image jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/easy-overlay-modal-window-jquery-plugin/">Easy Overlay Modal Window jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/snowblind-free-wordpress-theme/">Snowblind v1.1.2 Free WordPress Theme</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/8-free-colorful-background-textures-for-designers/">8 Free Colorful Background Textures for Designers</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/downloads/stationery-premium-wordpress-theme/">Stationery Premium WordPress Theme</a></li> </ul> </div> <div class="col col3"> <h4 class="four"><span></span>Tutorials</h4> <ul> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/add-a-copyright-notice-to-copied-text/">Add a Copyright Notice to Copied Text</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/meta-descriptions-wordpress/">Meta Descriptions for WordPress</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/turning-on-php-errors/">Turning On PHP Errors</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/using-css-resets/">Using CSS Resets</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/a-sleek-navigation-menu-with-css3/">A Sleek Navigation Menu with CSS3</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/">A Basic jQuery Slideshow</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/text-rotation-css3/">Text Rotation with CSS3</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/adding-tweet-button-wordpress/">Adding a Tweet Button to WordPress</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/developing-themes-for-wordpress-make-money/">Developing Themes for WordPress: Part 5</a></li> <li><a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/tutorials/developing-themes-for-wordpress-options/">Developing Themes for WordPress: Part 4</a></li> </ul> </div> </div> </div> <div id="copyright"> <div id="copyright-wrapper"> Copyright © 2010 <a href="https://web.archive.org/web/20101120003258/http://bavotasan.com/">bavotasan.com</a>. All Rights Reserved. Powered by <a href="https://web.archive.org/web/20101120003258/http://www.wordpress.org/">WordPress</a>. </div> </div> <!--stats_footer_test--><script src="https://web.archive.org/web/20101120003258js_/http://stats.wordpress.com/e-201046.js" type="text/javascript"></script> <script type="text/javascript"> st_go({blog:'5317602',v:'ext',post:'1973'}); var load_cmc = function(){linktracker_init(5317602,1973,2);}; if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc); else load_cmc(); </script> <script type="text/javascript" src="https://web.archive.org/web/20101120003258js_/http://bavotasan.com/wp-content/themes/bavotasan-2010/js/coolstuff.js"></script> <script type="text/javascript"> hs.graphicsDir = 'https://web.archive.org/web/20101120003258/http://bavotasan.com/images/graphics/'; hs.outlineType = 'rounded-white'; hs.outlineWhileAnimating = true; hs.showCredits = false; </script> <!-- Bavota San 2010 theme designed by c.bavota, http://bavotasan.com --> </body> </html> <!-- Dynamic page generated in 1.384 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2010-11-17 11:50:42 --> <!-- super cache --><!-- FILE ARCHIVED ON 00:32:58 Nov 20, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 13:38:27 Nov 25, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 1.841 exclusion.robots: 0.021 exclusion.robots.policy: 0.013 esindex: 0.009 cdx.remote: 15.573 LoadShardBlock: 195.383 (3) PetaboxLoader3.datanode: 179.695 (4) PetaboxLoader3.resolve: 76.496 (2) load_resource: 122.856 -->