<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Threadbare Canvas Productions &#187; JQuery</title>
	<atom:link href="http://threadbarecanvas.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://threadbarecanvas.com</link>
	<description>Online Journal of James Hogan the Web Developer</description>
	<lastBuildDate>Sun, 01 Aug 2010 19:32:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Write a Bouncing Accordian with JQuery</title>
		<link>http://threadbarecanvas.com/jquery/write-a-bouncing-accordian-with-jquery/</link>
		<comments>http://threadbarecanvas.com/jquery/write-a-bouncing-accordian-with-jquery/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 19:40:05 +0000</pubDate>
		<dc:creator>Siriquelle</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://threadbarecanvas.com/?p=142</guid>
		<description><![CDATA[The following example is of a bouncing accordian. The idea behind a bouncing accordian is to use ajax to pull content for a number of pages and populate a central div with that data. The content area on the main page will fade out resize to 0px and then rsize again back to a new [...]]]></description>
			<content:encoded><![CDATA[<p>The following example is of a bouncing accordian. The idea behind a bouncing accordian is to use ajax to pull content for a number of pages and populate a central div with that data. The content area on the main page will fade out resize to 0px and then rsize again back to a new height with the new content displayed. The following is the result of the labour.</p>
<p><a href="http://threadbarecanvas.com/wp-content/uploads/2009/11/bouncing.png"><img class="aligncenter size-full wp-image-143" title="_bouncing" src="http://threadbarecanvas.com/wp-content/uploads/2009/11/bouncing.png" alt="_bouncing" width="480" height="261" /></a></p>
<p style="text-align: center; font-size: 24px;"><strong><a title="Write a Bouncing Accordian with JQuery" href="http://threadbarecanvas.com/wp-content/uploads/2009/11/15.zip" target="_blank">Source</a> <a title="Write a Bouncing Accordian with JQuery" href="http://threadbarecanvas.com/wp-content/uploads/2009/11/15/index.html" target="_blank">Demo</a></strong></p>
<p>So, now that you&#8217;ve had a peek at it working you can look over the code. The first thing is folder structure. I like base folder &gt; assets &gt; and then folders for each asset like &gt; ajax for the pages of content and css for css and so on. The following is the HTML and JQUERY all on one page as its fairly simple to put together.</p>
<pre class="brush:html">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" &gt;

	&lt;head&gt;
		&lt;title&gt;
			Bouncing Accordian
		&lt;/title&gt;
		&lt;link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico" /&gt;
		&lt;link rel="stylesheet" type="text/css" media="screen" href="assets/css/style.css" /&gt;
		&lt;script type="text/javascript" src="assets/js/jquery.js"&gt;&lt;/script&gt;
		&lt;script type="text/javascript" charset="utf-8"&gt;</pre>
<pre class="brush:javascript">		 $(document).ready(function() {

			$('#nav_list li').live('click', function(e) {
				loadContent(e.target.id);
			});

			function loadContent(pgNum){

					$('#ajax').animate({'height' : '0px', opacity : 0}, 1000, function(){
						//console.log($('#'+this.id).height());
						$('#'+this.id).load('assets/ajax/' + pgNum + '.html', function(){
						$('#'+this.id).animate({'height' : '420px' , opacity : 1}, 1000);
						});
					});
			}

			});</pre>
<pre class="brush:html">		&lt;/script&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id="main"&gt;

			&lt;div id="container" class="aligncenter"&gt;

				&lt;div id="nav"&gt;
					&lt;ul id="nav_list" class="aligncenter"&gt;
						&lt;li id="page1" &gt;Home&lt;/li&gt;
						&lt;li id="page2"&gt;About&lt;/li&gt;
						&lt;li id="page3"&gt;Contact&lt;/li&gt;
					&lt;/ul&gt;
				&lt;/div&gt;

				&lt;div id="content"&gt;
					&lt;div id="ajax"&gt;
						&lt;img src="http://bulk.destructoid.com/ul/122540-hands-on-yakuza-3-japanese-demo/wow-468x.jpg" width="460px"/&gt;
					&lt;/div&gt;
				&lt;/div&gt;

				&lt;div id="footer"&gt;
				&lt;div&gt;© Threadbare Canvas Productions &amp; James Hogan&lt;/div&gt;
				&lt;/div&gt;

			&lt;/div&gt;

		&lt;/div&gt;

	&lt;/body&gt;
&lt;/html&gt;</pre>
<p>That was easy, a couple of lines of jquery and youve got a neat effect. Add some CSS for Style.</p>
<pre class="brush: css">
body{margin:0; padding:0px; background-color: #bdbdbd;}
a{text-decoration:inherit; color: inherit;}
.aligncenter{margin-left:auto;margin-right:auto;}

#main{
background-color:#dedede;
font-family:arial;
}

#container{
width:480px;
background-color:#dedede;
}

#nav{
border:5px #efefef solid;
-moz-border-radius:15px;
}
#nav #nav_list{
width:355px;
}

#nav #nav_list li{
display:inline;
margin-left:30px;
padding:5px;
border:1px #ccc outset;
background-color:#cdcdcd;
color:#fefefe;
-moz-border-radius:10px;
font-weight:bold;
cursor:pointer;
}

#content{
-moz-border-radius:15px;
min-height:0px;
padding:5px;
border-left: 5px #efefef solid;
border-right: 5px #efefef solid;
}
#content h1{
font-size:18px;
}
#content p{
font-size:14px;
}

#footer{
-moz-border-radius:15px;
border: 5px #efefef solid;
padding:5px;
text-align:center;
font-size:12px;
}
</pre>
<p>Also there are three other pages those are the ajax pages that will be dragged in to fill the content area.. So I created three files page1, page2, page3 .html and put them in an ajax folder then I gave an id of page1, page2, page3 to each of the buttons that i wanted to activate the ajax request for the content. The following is the sample content I had in those files.</p>
<pre class="brush:html">
&lt;h1&gt;Home&lt;/h1&gt;

&lt;p&gt;Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis &lt;/p&gt;

&lt;p&gt;et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci &lt;/p&gt;

&lt;p&gt;velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea&lt;/p&gt;

&lt;p&gt; commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate&lt;/p&gt;

&lt;p&gt; velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?&lt;/p&gt;
</pre>
<p>And there you have it a few simple files and a few lines of jquery can create a really nice effect for a website. Even if it looks fuggley :). PEACE!!</p>
<p><map name='google_ad_map_142_d0b0fa17a4b5b092'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/142?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_142_d0b0fa17a4b5b092' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=142&amp;url= http%3A%2F%2Fthreadbarecanvas.com%2Fjquery%2Fwrite-a-bouncing-accordian-with-jquery%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://threadbarecanvas.com/jquery/write-a-bouncing-accordian-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write a simple Bingo Card with Javascript and Jquery</title>
		<link>http://threadbarecanvas.com/jquery/bingo-card-javascript-and-jquery/</link>
		<comments>http://threadbarecanvas.com/jquery/bingo-card-javascript-and-jquery/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:07:59 +0000</pubDate>
		<dc:creator>Siriquelle</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://threadbarecanvas.com/?p=122</guid>
		<description><![CDATA[Writing a bingo card couldn&#8217;t be easier with tools such as JQuery and a brain. There are some simple techniques that you need to put into place to get it all up and running. There are three files included in this tutorial. index.html, style.css and script.js
Now, you should end up with something like this:

Source Demo
If [...]]]></description>
			<content:encoded><![CDATA[<p>Writing a bingo card couldn&#8217;t be easier with tools such as JQuery and a brain. There are some simple techniques that you need to put into place to get it all up and running. There are three files included in this tutorial. index.html, style.css and script.js</p>
<p>Now, you should end up with something like this:</p>
<p style="text-align: center;"><img class="aligncenter" style="align-center" src="http://threadbarecanvas.com/wp-content/uploads/2009/10/bingo.png" alt="" width="350px" height="329px" /></p>
<p style="text-align: center; font-size: 24px;"><strong><a title="JQuery Content Slider Source" href="/wp-content/uploads/2009/10/io.zip" target="_blank">Source</a> <a title="Simple Bingo Card" href="/wp-content/uploads/2009/10/index.html" target="_blank">Demo</a></strong></p>
<p>If you want to glance through the source code you can do so here: index.html</p>
<pre class="brush:html">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=utf-8 /&gt;
        &lt;title&gt;Bingo - Card&lt;/title&gt;
        &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
        &lt;!--[if IE]&gt;
        &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
    &lt;![endif]--&gt;

        &lt;script type="text/javascript" src="assets/js/script.js"&gt;&lt;/script&gt;
        &lt;link rel="stylesheet" type="text/css" media="screen" href="assets/css/style.css" /&gt;
    &lt;/head&gt;
    &lt;body&gt;

        &lt;div id="page"&gt;
            &lt;h1&gt;Free Bingo Card&lt;/h1&gt;
            &lt;table&gt;
                &lt;tr&gt;
                    &lt;td id="cell0"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell5"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell10"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell14"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell19"&gt;&nbsp;nbsp;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td id="cell1"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell6"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell11"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell15"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell20"&gt;&nbsp;nbsp;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td id="cell2"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell7"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="free"&gt;Free&lt;/td&gt;
                    &lt;td id="cell16"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell21"&gt;&nbsp;nbsp;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td id="cell3"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell8"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell12"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell17"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell22"&gt;&nbsp;nbsp;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td id="cell4"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell9"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell13"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell18"&gt;&nbsp;nbsp;&lt;/td&gt;
                    &lt;td id="cell23"&gt;&nbsp;nbsp;&lt;/td&gt;
                &lt;/tr&gt;
            &lt;/table&gt;
            &lt;h3&gt;&lt;a href="#" id="newCard" &gt;Click me for a new card&lt;/a&gt;&lt;/h3&gt;
        &lt;/div&gt;

    &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>The following is the source of the CSS: style.css</p>
<pre class="brush:css">
#page{
    width:455px;
    margin:0 auto;
}

td{
    font-family:arial;
    color:#333;
    padding:10px;
    width:50px;
    height:50px;
    text-align:center;
    border:10px solid #ddc;
    background-color:#eee;
}

.bingohead{
    border:10px solid #c2324c;
}

h1, h3, h3 a{
    font-family:arial;
    text-align:center;
    padding:3px;
    color:#211111;
    background-color:#EEEEEE;
    border:2px solid #DDDDCC;
}

td{
    cursor:pointer;
}

#free{
    background-color:#fff;
    color:#eee;
    cursor:default;
}
</pre>
<p>And finally all of that JavaScript goodness: script.js</p>
<pre class="brush:js">
$(document).ready(function(){

    var usedArray = new Array(76);
    var baseArray = new Array(0,0,0,0,0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4);
    var number = 0;
    var base = 0;

    init();

    function init(){
        for(var i = 0; i<24; i++){
            fillCard(i);
        }
    }

    function fillCard(i){
        base = baseArray[i] * 15;
        number = base + Math.floor(Math.random()*15)+1;

        if(usedArray[number] != true){
            $('#cell'+i).html(number);
            usedArray[number] = true;
        }else{
            fillCard(i);
        }
    }

    function resetUsedNumbersArray(){
        for(var j = 0; j < usedArray.length; j++){
            usedArray[j] = false;
        }
    }

    $('#newCard').click(function(){
        resetUsedNumbersArray();
        init();
    });

    $('td').click(function(){

        var toggle = this.style;
        toggle.backgroundColor = toggle.backgroundColor? "":"#333";
        toggle.color = toggle.color? "":"#fff";
    });

});
</pre>
<p>Something to read while eating your sandwich and drinking your tea, yummie! Extreme programming!!</p>
<p><map name='google_ad_map_122_d0b0fa17a4b5b092'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/122?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_122_d0b0fa17a4b5b092' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=122&amp;url= http%3A%2F%2Fthreadbarecanvas.com%2Fjquery%2Fbingo-card-javascript-and-jquery%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://threadbarecanvas.com/jquery/bingo-card-javascript-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Content Slider with JQuery</title>
		<link>http://threadbarecanvas.com/jquery/creating-a-content-slider-with-jquery/</link>
		<comments>http://threadbarecanvas.com/jquery/creating-a-content-slider-with-jquery/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 14:36:37 +0000</pubDate>
		<dc:creator>Siriquelle</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://threadbarecanvas.com/?p=64</guid>
		<description><![CDATA[Content sliders add very nice interactivity to your website. In this tutorial I will show you how to use jQuery to create a simple content slider. Of course you can change the styles look and feel of the product your self but for now I&#8217;m keeping it simple. The final product will look like this:

Source [...]]]></description>
			<content:encoded><![CDATA[<p>Content sliders add very nice interactivity to your website. In this tutorial I will show you how to use jQuery to create a simple content slider. Of course you can change the styles look and feel of the product your self but for now I&#8217;m keeping it simple. The final product will look like this:<br />
<a href="http://threadbarecanvas.com/wp-content/uploads/2009/07/JQuery-Slider.png"><img class="aligncenter size-full wp-image-66" title="JQuery Content Slider" src="http://threadbarecanvas.com/wp-content/uploads/2009/07/JQuery-Slider.png" alt="JQuery Content Slider" width="498" height="160" /></a></p>
<p style="text-align: center;font-size:24px"><strong><a title="JQuery Content Slider Source" href="/wp-content/uploads/2009/07/io.zip" target="_blank">Source</a> <a title="JQuery Content Slider Demo" href="/wp-content/uploads/2009/07/io/index.html" target="_blank">Demo</a></strong></p>
<p>First thing you should do is get your folder structure in order so in the root folder of your project create a folder called &#8216;assets&#8217; and in that folder create three more folders called &#8216;js&#8217;, &#8217;style&#8217; and &#8216;img&#8217; to contain your JavaScript your <abbr title="Cascading Style Sheet">css</abbr> and your images. I am using &#8216;io&#8217; as my root folder but you can use whatever you like, somehting liek &#8216;Content_Slider&#8217; comes to mind. The end folder structure should will look like this:<br />
<a href="http://threadbarecanvas.com/wp-content/uploads/2009/07/Folder-Structure.png"><img class="alignnone size-full wp-image-65" title="Folder Structure" src="http://threadbarecanvas.com/wp-content/uploads/2009/07/Folder-Structure.png" alt="Folder Structure" width="114" height="84" /></a></p>
<p>In the project root folder create a new <abbr title="Hyper-Text Markup Language">html</abbr> file and name it index.html and past the following code inside:</p>
<pre class="brush:html">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
    &lt;link href="assets/css/style.css" media="screen" type="text/css" rel="stylesheet" /&gt;
    &lt;title&gt;JQuery Content Slider&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="content"&gt;
      &lt;div id="leftArrow"&gt;&lt;/div&gt;
      &lt;div id="viewport"&gt;
        &lt;div id="conveyor"&gt;
          &lt;div class="item no1"&gt;
            &lt;p&gt;Hello&lt;/p&gt;
            &lt;div class="news no3"&gt;
              &lt;p&gt;Hello&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="item no2"&gt;
            &lt;p&gt;Hello&lt;/p&gt;
            &lt;div class="news no1"&gt;
              &lt;p&gt;Hello&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="item lastItem no3"&gt;
            &lt;p&gt;Hello&lt;/p&gt;
            &lt;div class="news no2"&gt;
              &lt;p&gt;Hello&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="rightArrow"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;script type="text/javascript"
    src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="assets/js/JavaScript.js"&gt;
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Now that the html file is set up you&#8217;ll need to create another file called style.css to contain all of your styles. Copy and past this code into the style.css file and stick it into the css folder:</p>
<pre class="brush:css">
* {
    margin: 0;
    padding: 0;

}
body {
    font: 71%/1.5 Verdana, Sans-Serif;
    background: #eee;

}

/* */
#content{
    margin:100px auto;
    padding:5px;
    width:688px;
    display:table;
}

/* */
#leftArrow, #rightArrow, #viewport{
    float:left;
}
#leftArrow, #rightArrow{
    width:100px;
    height:100px;
    margin:50px auto;
    cursor:pointer;
}
#leftArrow{
    background:transparent url(../img/nav.png) no-repeat 0px 0px;
}

#rightArrow{
    clear:right;
    background:transparent url(../img/nav.png) no-repeat 0px -100px;
}

/* */
#viewport{
    width:482px;
    height:200px;
    overflow:hidden;
    border:1px #333 solid;
}

/* */
#conveyor{
    position:relative;
    left:0px;
    width:1452px;
    height:200px;
}

#conveyor .item{
    float:left;
    width:482px;
    height:200px;
}

#conveyor .item .lastItem{
    clear:right;
}

/**/
.news{
    min-height:60px;
    width:476px;
    margin:3px auto;
    position:relative;
    top:100%;
    border:1px #444 solid;
}
/* */
.no1{background-color:aqua;}
.no2{background-color:blue;}
.no3{background-color:green;}

.item, .news, #viewport{
    -moz-border-radius:10px;
}

p{
    padding:15px;
    font-size:24px;
    font-weight:bold;
}
</pre>
<p>Now you should have a page with a look but no interactivity to it so create a new javascript file and call is JavaScript.js and copy and past the following code into it and stick it into your js folder:</p>
<pre class="brush:javascript ">$(document).ready(function() {

    /* */
    var conveyor = $("#conveyor");
    var conveyorPos = conveyor.position();

    var leftArrow = $("#leftArrow");
    var rightArrow = $("#rightArrow");

    var item = $(".item");
    var dist = item.width();

    /* */
    leftArrow.click(function(){
        updateConveyorPos();
        if(conveyorPos.left &lt; 0){             conveyor.animate({                 "left": "+="+dist+"px"             }, "slow");         }     });     rightArrow.click(function(){         updateConveyorPos();         if(conveyorPos.left &gt; -567){
            conveyor.animate({
                "left": "-="+dist+"px"
            }, "slow");
        }
    });

    /* */
    item.mouseenter(function(){
        $(".news").animate({
            "top": "61px"
        }, "slow");

    });

    item.mouseleave(function(){
        $(".news").animate({
            "top": "100%"
        }, "slow");

    });

    /* */
    function updateConveyorPos(){
        conveyorPos = conveyor.position();
        //alert("left: " + conveyorPos.left + "/ dist: " + dist);
    }
});</pre>
<p>Luckily the folks at JQuery offer free hosting for their latest release so we don&#8217;t need to store it in our own file system. But that&#8217;s it, you should now have a JQuery content slider that you can play with yippiee!!.</p>
<p><map name='google_ad_map_64_d0b0fa17a4b5b092'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/64?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_64_d0b0fa17a4b5b092' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=64&amp;url= http%3A%2F%2Fthreadbarecanvas.com%2Fjquery%2Fcreating-a-content-slider-with-jquery%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://threadbarecanvas.com/jquery/creating-a-content-slider-with-jquery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
