CINXE.COM

A Basic jQuery Slideshow | 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/tutorials/a-basic-jquery-slideshow/","20101120003016","https://web.archive.org/","web","/_static/", "1290213016"); </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="Most sites you will visit nowadays will have some sort of slideshow or content slider. Check out Themes by bavotasan.com and you will see my Sliderota jQue..."/> <meta name="keywords" content="content slider,Images,Javascript,jquery,slider,Slideshow,"/> <title>A Basic jQuery Slideshow | bavotasan.com</title> <link rel="stylesheet" href="https://web.archive.org/web/20101120003016cs_/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/20101120003016im_/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/20101120003016/http://bavotasan.com/feed/"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Comments Feed" href="https://web.archive.org/web/20101120003016/http://bavotasan.com/comments/feed/"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 A Basic jQuery Slideshow Comments Feed" href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/feed/"/> <script type="text/javascript" src="https://web.archive.org/web/20101120003016js_/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="Text Rotation with CSS3" href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/text-rotation-css3/"/> <link rel="next" title="A Sleek Navigation Menu with CSS3" href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/a-sleek-navigation-menu-with-css3/"/> <link rel="canonical" href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/"/> <link rel="shortlink" href="https://web.archive.org/web/20101120003016/http://bit.ly/c5Bv4J"/> <script type="text/javascript" src="https://web.archive.org/web/20101120003016js_/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="A Basic jQuery Slideshow"/> <meta property="og:description" content="Most sites you will visit nowadays will have some sort of slideshow or content slider. Check out Themes by bavotasan.com and you will see my Sliderota jQuery plugin in action. I was visiting a site recently that had a very basic slideshow and I wanted to try to recreated it. It wasn鈥檛 anything fancy, just [...]"/> <meta property="og:type" content="article"/> <meta property="og:image" content="https://web.archive.org/web/20101120003016im_/http://bavotasan.com/wp-content/uploads/2010/09/img1.jpg"/> </head> <body class="single single-post postid-2875"> <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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/http://bavotasan.com/contact/">Contact</a></li> </ul></div> <div id="title"> <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/"> <img src="https://web.archive.org/web/20101120003016im_/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/20101120003016/http://twitter.com/bavotasan" class="twitter"></a> <a href="https://web.archive.org/web/20101120003016/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/20101120003016/http://bavotasan.com/"><span></span>Home</a></li> <li id="menu-item-2266"><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/category/articles/"><span></span>Articles</a></li> <li id="menu-item-2265" class="current-menu-item"><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/category/tutorials/"><span></span>Tutorials</a></li> <li id="menu-item-2267"><a href="https://web.archive.org/web/20101120003016/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">Sep</div><div class="day">21</div><div class="year">2010</div></div> <h1>A Basic jQuery Slideshow</h1> <br class="clear"/> <p>Most sites you will visit nowadays will have some sort of slideshow or content slider. Check out <a href="https://web.archive.org/web/20101120003016/http://themes.bavotasan.com/">Themes by bavotasan.com</a> and you will see my <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/downloads/sliderota-jquery-plugin/">Sliderota jQuery plugin</a> in action. I was visiting a site recently that had a very basic slideshow and I wanted to try to recreated it. It wasn&#8217;t anything fancy, just two controls that would switch between image/text slides. It took some jQuery, CSS and HTML to get it all working.</p> <p>First, let&#8217;s put together some 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;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;slideshow&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;controls&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:void(0)&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;prev&quot;</span><span style="color: #339933;">&gt;&amp;</span>laquo<span style="color: #339933;">;&lt;/</span>a<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;num&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span> of <span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;total&quot;</span><span style="color: #339933;">&gt;&lt;/</span>span<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:void(0)&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;next&quot;</span><span style="color: #339933;">&gt;&amp;</span>raquo<span style="color: #339933;">;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img1.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Phasellus in ligula enim<span style="color: #339933;">,</span> at pellentesque eros<span style="color: #339933;">.</span> Sed vehicula<span style="color: #339933;">,</span> diam vitae scelerisque consectetur<span style="color: #339933;">,</span> urna lectus fermentum dui<span style="color: #339933;">,</span> ac dictum tellus ligula at turpis<span style="color: #339933;">.</span> Integer feugiat dictum augue<span style="color: #339933;">,</span> cursus ultrices nibh iaculis et<span style="color: #339933;">.</span> Duis vitae diam et magna bibendum dictum<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img2.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Fusce libero quam<span style="color: #339933;">,</span> sollicitudin vel interdum nec<span style="color: #339933;">,</span> porttitor eu lectus<span style="color: #339933;">.</span> Quisque non rhoncus nunc<span style="color: #339933;">.</span> Aliquam mi mi<span style="color: #339933;">,</span> fermentum non feugiat vel<span style="color: #339933;">,</span> semper eu erat<span style="color: #339933;">.</span> In tempus pharetra feugiat<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img3.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Aliquam at semper nisi<span style="color: #339933;">.</span> Donec at vulputate velit<span style="color: #339933;">.</span> Donec eros risus<span style="color: #339933;">,</span> aliquam at laoreet sit amet<span style="color: #339933;">,</span> tempor at erat<span style="color: #339933;">.</span> Lorem ipsum dolor sit amet<span style="color: #339933;">,</span> consectetur adipiscing elit<span style="color: #339933;">.</span> Curabitur ultricies mi in nisl venenatis molestie<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img4.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>In eleifend consequat dolor ut vestibulum<span style="color: #339933;">.</span> Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas<span style="color: #339933;">.</span> Nulla facilisi<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div> <p>Each slide is a list item that contains an image and a paragraph. Let&#8217;s style it to get it looking the way we want.</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;">#slideshow</span> <span style="color: #00AA00;">&#123;</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;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">280px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> &nbsp; <span style="color: #cc00cc;">#slideshow</span> ul <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;">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;">&#125;</span> &nbsp; <span style="color: #cc00cc;">#slideshow</span> ul li <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: #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: #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: #00AA00;">&#125;</span> &nbsp; <span style="color: #cc00cc;">#slideshow</span> ul li<span style="color: #6666ff;">.current</span> <span style="color: #00AA00;">&#123;</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;">&#125;</span> &nbsp; <span style="color: #cc00cc;">#slideshow</span> li img <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> &nbsp; &nbsp; <span style="color: #cc00cc;">#slideshow</span> <span style="color: #cc00cc;">#controls</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></td></tr></table></div> <p>Our CSS will add some simple styles. It will also make sure that our unordered list has a relative position so that all of our list items can be aligned directly on top of one another. That will give the illusion that we are switching between slides, when really all we are doing is making one slide display while all the other slides are hidden. That will be done with a little bit of jQuery.</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;">&#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> <span style="color: #003366; font-weight: bold;">var</span> len <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> <span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow #total&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span>len<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow li:eq(0)&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</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> $<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;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #339933;">,</span> x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> x<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;#next&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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> <span style="color: #003366; font-weight: bold;">var</span> current <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow .current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #003366; font-weight: bold;">var</span> next <span style="color: #339933;">=</span> parseFloat<span style="color: #009900;">&#40;</span>current.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</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;">&#40;</span>next<span style="color: #339933;">==</span>len<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#num&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span>parseFloat<span style="color: #009900;">&#40;</span>next<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> current.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</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> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</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;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>next<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;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</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: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#prev&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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> <span style="color: #003366; font-weight: bold;">var</span> current <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow .current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #003366; font-weight: bold;">var</span> prev <span style="color: #339933;">=</span> parseFloat<span style="color: #009900;">&#40;</span>current.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</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;">&#40;</span>prev<span style="color: #339933;">&lt;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#num&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span>parseFloat<span style="color: #009900;">&#40;</span>prev<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> current.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</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> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</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;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>prev<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;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</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: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span></pre></div></td></tr></table></div> <p>This code will count the number of list items and display that number in our counter. It will also cycle through each list item and give it a reference number, which is how we can control which slide will appear. Next, it sets up our controls to scroll forward and backward through the slides.</p> <p>Put it all together and you get this:</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;">&lt;!</span>DOCTYPE html <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #0000ff;">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #0000ff;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>html xmlns<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>meta http<span style="color: #339933;">-</span>equiv<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Content-Type&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/html; charset=UTF-8&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>A Basic Slideshow<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #666666; font-style: italic;">#slideshow { </span> border<span style="color: #339933;">:</span> 1px solid <span style="color: #666666; font-style: italic;">#ccc; </span> padding<span style="color: #339933;">:</span> 10px<span style="color: #339933;">;</span> width<span style="color: #339933;">:</span> 600px<span style="color: #339933;">;</span> height<span style="color: #339933;">:</span> 280px<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #666666; font-style: italic;">#slideshow ul { </span> position<span style="color: #339933;">:</span> relative<span style="color: #339933;">;</span> list<span style="color: #339933;">-</span>style<span style="color: #339933;">:</span> none<span style="color: #339933;">;</span> padding<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> margin<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #666666; font-style: italic;">#slideshow ul li { </span> position<span style="color: #339933;">:</span> absolute<span style="color: #339933;">;</span> top<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> left<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> display<span style="color: #339933;">:</span> none<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #666666; font-style: italic;">#slideshow ul li.current { </span> display<span style="color: #339933;">:</span> block<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #666666; font-style: italic;">#slideshow li img { </span> float<span style="color: #339933;">:</span> left<span style="color: #339933;">;</span> margin<span style="color: #339933;">-</span>right<span style="color: #339933;">:</span> 20px<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">#slideshow #controls { </span> width<span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">%;</span> text<span style="color: #339933;">-</span>align<span style="color: #339933;">:</span> right<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span> &nbsp; <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;slideshow&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;controls&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:void(0)&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;prev&quot;</span><span style="color: #339933;">&gt;&amp;</span>laquo<span style="color: #339933;">;&lt;/</span>a<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;num&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span> of <span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;total&quot;</span><span style="color: #339933;">&gt;&lt;/</span>span<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:void(0)&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;next&quot;</span><span style="color: #339933;">&gt;&amp;</span>raquo<span style="color: #339933;">;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img1.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Phasellus in ligula enim<span style="color: #339933;">,</span> at pellentesque eros<span style="color: #339933;">.</span> Sed vehicula<span style="color: #339933;">,</span> diam vitae scelerisque consectetur<span style="color: #339933;">,</span> urna lectus fermentum dui<span style="color: #339933;">,</span> ac dictum tellus ligula at turpis<span style="color: #339933;">.</span> Integer feugiat dictum augue<span style="color: #339933;">,</span> cursus ultrices nibh iaculis et<span style="color: #339933;">.</span> Duis vitae diam et magna bibendum dictum<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img2.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Fusce libero quam<span style="color: #339933;">,</span> sollicitudin vel interdum nec<span style="color: #339933;">,</span> porttitor eu lectus<span style="color: #339933;">.</span> Quisque non rhoncus nunc<span style="color: #339933;">.</span> Aliquam mi mi<span style="color: #339933;">,</span> fermentum non feugiat vel<span style="color: #339933;">,</span> semper eu erat<span style="color: #339933;">.</span> In tempus pharetra feugiat<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img3.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Aliquam at semper nisi<span style="color: #339933;">.</span> Donec at vulputate velit<span style="color: #339933;">.</span> Donec eros risus<span style="color: #339933;">,</span> aliquam at laoreet sit amet<span style="color: #339933;">,</span> tempor at erat<span style="color: #339933;">.</span> Lorem ipsum dolor sit amet<span style="color: #339933;">,</span> consectetur adipiscing elit<span style="color: #339933;">.</span> Curabitur ultricies mi in nisl venenatis molestie<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;img4.jpg&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;258&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>In eleifend consequat dolor ut vestibulum<span style="color: #339933;">.</span> Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas<span style="color: #339933;">.</span> Nulla facilisi<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; 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: #000000; font-weight: bold;">var</span> len <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>length<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow #total&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>text<span style="color: #009900;">&#40;</span>len<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow li:eq(0)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>addClass<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #990000;">each</span><span style="color: #009900;">&#40;</span><span style="color: #000000; 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>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>attr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rel'</span><span style="color: #339933;">,</span> x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> x<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: #0000ff;">&quot;#next&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>click<span style="color: #009900;">&#40;</span><span style="color: #000000; 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: #000000; font-weight: bold;">var</span> <span style="color: #990000;">current</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow .current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #990000;">next</span> <span style="color: #339933;">=</span> parseFloat<span style="color: #009900;">&#40;</span><span style="color: #990000;">current</span><span style="color: #339933;">.</span>attr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">next</span><span style="color: #339933;">==</span>len<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#num&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>text<span style="color: #009900;">&#40;</span>parseFloat<span style="color: #009900;">&#40;</span><span style="color: #990000;">next</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">current</span><span style="color: #339933;">.</span>removeClass<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #990000;">each</span><span style="color: #009900;">&#40;</span><span style="color: #000000; 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: #b1b100;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>attr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #990000;">next</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> $<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>addClass<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</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: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#prev&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>click<span style="color: #009900;">&#40;</span><span style="color: #000000; 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: #000000; font-weight: bold;">var</span> <span style="color: #990000;">current</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow .current&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #990000;">prev</span> <span style="color: #339933;">=</span> parseFloat<span style="color: #009900;">&#40;</span><span style="color: #990000;">current</span><span style="color: #339933;">.</span>attr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>prev<span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#num&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>text<span style="color: #009900;">&#40;</span>parseFloat<span style="color: #009900;">&#40;</span><span style="color: #990000;">prev</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #990000;">current</span><span style="color: #339933;">.</span>removeClass<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#slideshow li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #990000;">each</span><span style="color: #009900;">&#40;</span><span style="color: #000000; 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: #b1b100;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>attr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #990000;">prev</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> $<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>addClass<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'current'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</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: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span> <span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div> <p>Here is a demo:</p> <div id="slideshow"> <div id="controls"><a href="javascript:void(0)" id="prev">&laquo;</a> <span id="num">1</span> of <span id="total"></span> <a href="javascript:void(0)" id="next">&raquo;</a></div> <ul> <li> <img src="https://web.archive.org/web/20101120003016im_/http://bavotasan.com/wp-content/uploads/2010/09/img1.jpg" width="387" height="258" alt=""/></p> <p>Phasellus in ligula enim, at pellentesque eros. Sed vehicula, diam vitae scelerisque consectetur, urna lectus fermentum dui, ac dictum tellus ligula at turpis. Integer feugiat dictum augue, cursus ultrices nibh iaculis et. Duis vitae diam et magna bibendum dictum. </p> </li> <li> <img src="https://web.archive.org/web/20101120003016im_/http://bavotasan.com/wp-content/uploads/2010/09/img2.jpg" width="387" height="258" alt=""/></p> <p>Fusce libero quam, sollicitudin vel interdum nec, porttitor eu lectus. Quisque non rhoncus nunc. Aliquam mi mi, fermentum non feugiat vel, semper eu erat. In tempus pharetra feugiat. </p> </li> <li> <img src="https://web.archive.org/web/20101120003016im_/http://bavotasan.com/wp-content/uploads/2010/09/img3.jpg" width="387" height="258" alt=""/></p> <p>Aliquam at semper nisi. Donec at vulputate velit. Donec eros risus, aliquam at laoreet sit amet, tempor at erat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ultricies mi in nisl venenatis molestie.</p> </li> <li> <img src="https://web.archive.org/web/20101120003016im_/http://bavotasan.com/wp-content/uploads/2010/09/img4.jpg" width="387" height="258" alt=""/></p> <p>In eleifend consequat dolor ut vestibulum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla facilisi. </p> </li> </ul> </div> <p><script type="text/javascript"> (function($) { var len = $("#slideshow li").length; var x = 0; $("#slideshow #total").text(len); $("#slideshow li:eq(0)").addClass("current"); $("#slideshow li").each(function() { $(this).attr('rel', x); x++ }); $("#next").click(function() { var current = $("#slideshow .current"); var next = parseFloat(current.attr('rel'))+1; if(next==len) { return false; } $("#num").text(parseFloat(next)+1); current.removeClass('current'); $("#slideshow li").each(function() { if($(this).attr('rel')==next) { $(this).addClass('current'); } }); }); $("#prev").click(function() { var current = $("#slideshow .current"); var prev = parseFloat(current.attr('rel'))-1; if(prev<0) { return false; } $("#num").text(parseFloat(prev)+1); current.removeClass('current'); $("#slideshow li").each(function() { if($(this).attr('rel')==prev) { $(this).addClass('current'); } }); }); })(jQuery) </script></p> <div class="imgprov"> Slideshow images provided by <a href="https://web.archive.org/web/20101120003016/http://www.pixmac.com/#cbavota">Pixmac</a>. </div> <div class="buttonbox"> </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/20101120003016/http://twitter.com/share?url=http%3A%2F%2Fbit.ly%2Fc5Bv4J&amp;counturl=http://bavotasan.com/tutorials/a-basic-jquery-slideshow/" class="twitter-share-button" data-count="vertical" data-via="bavotasan">Tweet</a><script type="text/javascript" src="https://web.archive.org/web/20101120003016js_/http://platform.twitter.com/widgets.js"></script></li> <li><a href="https://web.archive.org/web/20101120003016/http://www.facebook.com/sharer.php?u=http://bavotasan.com/tutorials/a-basic-jquery-slideshow/&amp;t=A Basic jQuery Slideshow" 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/20101120003016/http://digg.com/submit?phase=2&amp;url=http://bavotasan.com/tutorials/a-basic-jquery-slideshow/&amp;title=A Basic jQuery Slideshow&amp;bodytext=Most sites you will visit nowadays will have some sort of slideshow or content slider. Check out Themes by bavotasan.com and you will see my Sliderota jQuery plugin in action. I was visiting a site recently that had a very basic slideshow and I wanted to try to recreated it. It wasn鈥檛 anything fancy, just [...]" title="Digg" rel="nofollow" target="_blank" class="digg-icon"></a></li> <li><a href="https://web.archive.org/web/20101120003016/http://www.delicious.com/save" onclick="window.open('https://web.archive.org/web/20101120003016/http://www.delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/')+'&amp;title='+encodeURIComponent('A Basic jQuery Slideshow'),'delicious', 'toolbar=no,width=550,height=550'); return false;" class="delicious-icon"></a></li> <li><a href="https://web.archive.org/web/20101120003016/http://www.stumbleupon.com/submit?url=http://bavotasan.com/tutorials/a-basic-jquery-slideshow/&amp;title=A Basic jQuery Slideshow" title="StumbleUpon" rel="nofollow" target="_blank" class="stumbleupon-icon"></a></li> <li><iframe src="https://web.archive.org/web/20101120003016if_/http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fa-basic-jquery-slideshow%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowtransparency="true"></iframe></li> </ul> </div> <div class="post"> <p class="tags">Tags: <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tag/content-slider/" rel="tag">content slider</a>, <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tag/images/" rel="tag">Images</a>, <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tag/javascript/" rel="tag">Javascript</a>, <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tag/jquery/" rel="tag">jquery</a>, <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tag/slider/" rel="tag">slider</a>, <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tag/slideshow/" rel="tag">Slideshow</a></p> <p class="tags">Short URL: <a href="https://web.archive.org/web/20101120003016/http://bit.ly/c5Bv4J" title="A Basic jQuery Slideshow">http://bit.ly/c5Bv4J</a></p> </div> <div class="post"> <div id="crp_related"> <h3>Similar Posts</h3> <ul> <li><a href="https://web.archive.org/web/20101120003016/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/20101120003016/http://bavotasan.com/tutorials/add-a-copyright-notice-to-copied-text/" rel="bookmark" title="Permanent Link to Add a Copyright Notice to Copied Text">Add a Copyright Notice to Copied Text</a></li> <li><a href="https://web.archive.org/web/20101120003016/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/20101120003016/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> <li><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/blindtoggle-for-jquery/" rel="bookmark" title="Permanent Link to Blind Toggle for jQuery">Blind Toggle for jQuery</a></li> </ul> </div> <a href="https://web.archive.org/web/20101120003016/http://www.netfirms.com/web-hosting/web-hosting-business/?a_aid=4c8bb52b19602&amp;a_bid=8f049e07" target="_top" style="float:right;"><img src="https://web.archive.org/web/20101120003016im_/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/20101120003016im_/http://www.webhostrevenue.com/scripts/imp.php?a_aid=4c8bb52b19602&amp;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> 1 Comment</small> </h3> <ol class="commentlist"> <li class="comment even thread-even depth-1" id="li-comment-16306"> <div id="comment-16306"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120003016im_/http://1.gravatar.com/avatar/d1011fa24d42e36c92e4d4e4247b0555?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Ivan</span> <span class="commentdate"> on October 3, 2010 at 5:17 am</span> </div> <div class="comment-text"> <p>Hi,</p> <p>I`m little bit green in all the web design thingy so please excuse my lack of knowledge.<br/> So I`m looking for onmouseover onmouseout thumbslide jquery script. I`ve spent some time researching but with no success. An example for the result I want to achieve is <a href="https://web.archive.org/web/20101120003016/http://www.dailymotion.com/">http://www.dailymotion.com</a>.<br/> Thank you for your time.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120003016/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/?replytocom=16306#respond" onclick="return addComment.moveForm(&quot;comment-16306&quot;, &quot;16306&quot;, &quot;respond&quot;, &quot;2875&quot;)">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/20101120003016/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/#respond" style="display:none;">Cancel reply</a></small></h3> <form action="https://web.archive.org/web/20101120003016/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>&lt;pre lang="php"&gt; &lt;/pre&gt;</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="2875" 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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/http://themes.bavotasan.com/" class="themes"></a> <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/" class="deletedupes"></a> <a href="https://web.archive.org/web/20101120003016/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest&amp;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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/http://bavotasan.com/free-premium-theme/" class="fr"><em>Click here for more information &raquo;</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/20101120003016/http://bavotasan.com/">c.bavota</a> and <a href="https://web.archive.org/web/20101120003016/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/20101120003016/https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;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/20101120003016/http://twitter.com/bavotasan" class="footer-twitter"><span></span>Follow me on Twitter</a><br/> <a href="https://web.archive.org/web/20101120003016/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/20101120003016/http://bavotasan.com/downloads/my-first-vanilla-plugin/">My First Vanilla Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/http://bavotasan.com/downloads/sliderota-jquery-plugin/">Sliderota jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/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/20101120003016/http://bavotasan.com/tutorials/meta-descriptions-wordpress/">Meta Descriptions for WordPress</a></li> <li><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/turning-on-php-errors/">Turning On PHP Errors</a></li> <li><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/using-css-resets/">Using CSS Resets</a></li> <li><a href="https://web.archive.org/web/20101120003016/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/20101120003016/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/">A Basic jQuery Slideshow</a></li> <li><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/text-rotation-css3/">Text Rotation with CSS3</a></li> <li><a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/tutorials/adding-tweet-button-wordpress/">Adding a Tweet Button to WordPress</a></li> <li><a href="https://web.archive.org/web/20101120003016/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/20101120003016/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 &copy; 2010 <a href="https://web.archive.org/web/20101120003016/http://bavotasan.com/">bavotasan.com</a>. All Rights Reserved. Powered by <a href="https://web.archive.org/web/20101120003016/http://www.wordpress.org/">WordPress</a>. </div> </div> <!--stats_footer_test--><script src="https://web.archive.org/web/20101120003016js_/http://stats.wordpress.com/e-201046.js" type="text/javascript"></script> <script type="text/javascript"> st_go({blog:'5317602',v:'ext',post:'2875'}); var load_cmc = function(){linktracker_init(5317602,2875,2);}; if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc); else load_cmc(); </script> <script type="text/javascript" src="https://web.archive.org/web/20101120003016js_/http://bavotasan.com/wp-content/themes/bavotasan-2010/js/coolstuff.js"></script> <script type="text/javascript"> hs.graphicsDir = 'https://web.archive.org/web/20101120003016/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 5.542 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2010-11-17 11:35:00 --> <!-- super cache --><!-- FILE ARCHIVED ON 00:30:16 Nov 20, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 17:42:26 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: 0.496 exclusion.robots: 0.023 exclusion.robots.policy: 0.014 esindex: 0.01 cdx.remote: 31.266 LoadShardBlock: 86.155 (3) PetaboxLoader3.datanode: 99.594 (4) load_resource: 240.855 PetaboxLoader3.resolve: 140.557 -->

Pages: 1 2 3 4 5 6 7 8 9 10