<?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>mclelun &#187; jQuery</title>
	<atom:link href="http://www.mclelun.com/blog/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mclelun.com/blog</link>
	<description>I am a colorblind multimedia designer + developer</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:36:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery Twitter Update List</title>
		<link>http://www.mclelun.com/blog/2010/01/jquery-twitter-update-list/</link>
		<comments>http://www.mclelun.com/blog/2010/01/jquery-twitter-update-list/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 15:29:06 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=12</guid>
		<description><![CDATA[After my first experiment using jQuery to develop a rotating banner, I noticed that the script I wrote could be use for other similar list items such as a Twitter update list. To retrieve recent my tweets, I paste the following JavaScript provided by Twitter into the &#60;body&#62; of my page. &#60;script src="http://twitter.com/javascripts/blogger.js"&#62;&#60;/script&#62; &#60;script src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&#38;count=3"&#62;&#60;/script&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>After my first experiment using jQuery to develop a rotating banner, I noticed that the script I wrote could be use for other similar list items such as a Twitter update list.</p>
<p><span id="more-12"></span></p>
<p>To retrieve recent my tweets, I paste the following JavaScript provided by Twitter into the <code>&lt;body&gt;</code> of my page. </p>
<p><code>&lt;script src="http://twitter.com/javascripts/blogger.js"&gt;&lt;/script&gt;<br />
&lt;script src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&amp;count=3"&gt;&lt;/script&gt;</code></p>
<p>Then, I make some simple changes to my jQuery rotating banner script and CSS. Viola! The twitter update list is working as expected. You can view the demo in this <a href="http://www.mclelun.com/labs/#jqtwitter" target="_blank">page</a>.</p>
<h3>Download</h3>
<p>To use this twitter update list, You will need to replace the <code>username</code> with your twitter name. You can also specify how many tweets to retrieve by changing the value of <code>count</code> parameter.</p>
<p><a href="http://www.mclelun.com/conlabs/jqtwitter/jqtwitter.js">jqtwitter.js</a> 1KB<br />
<a href="http://www.mclelun.com/conlabs/jqtwitter/jqtwitter.zip">jqbanner.zip</a> 35.5KB</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2010/01/jquery-twitter-update-list/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery Rotating Banner</title>
		<link>http://www.mclelun.com/blog/2010/01/jquery-rotating-banner/</link>
		<comments>http://www.mclelun.com/blog/2010/01/jquery-rotating-banner/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 14:33:24 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=8</guid>
		<description><![CDATA[While I was working on the revamp of my site, I noticed I could use a rotating banner in the landing page to show certain works or blog post that I wish to highlight. My first thought was to develop this with Flash, but I changed my mind after thinking that banner like this could [...]]]></description>
			<content:encoded><![CDATA[<p>While I was working on the revamp of my site, I noticed I could use a rotating banner in the landing page to show certain works or blog post that I wish to highlight. My first thought was to develop this with Flash, but I changed my mind after thinking that banner like this could be done easily with just JavaScript.</p>
<p><span id="more-8"></span></p>
<p>While developing this banner, I used a JavaScript Framework, <a href="http://www.jquery.com/" target="_blank">jQuery </a>to speed up the development process. JavaScript is not my strongest point, but I managed to come out with a simple rotating banner. You can view the banner in this <a href="http://www.mclelun.com/labs/#jqbanner" target="_blank">page</a>.</p>
<p><a href="http://www.mclelun.com/labs/#jqbanner" title="jquery rotating banner" target="_blank"><img src="http://www.mclelun.com/img/blog/100110_jqbanner_01.jpg" alt="jquery banner" /></a></p>
<h3>Features</h3>
<p>Currently, the banner will rotate automatically every few seconds and can be pause or resume anytime by clicking the button on the banner. You can go through the banners by clicking the next or previous buttons too. Slides information text is grab from the container DIV. so, you could basically put text, images or both into the rotating slides.</p>
<h3>How To Use</h3>
<p>This simple banner rotating script was not written as a plugin. You will need to do some editing on the page you want to display this. There are only few simple steps you need to do.</p>
<p><strong>1) Include the JavaScript and CSS</strong><br />
Include jQuery library, JavaScript and CSS for this banner in your page header. You can cut and paste the CSS into your website main CSS file too.<br />
<code><br />
&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;script src="jqbanner.js" type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;link rel="stylesheet" type="text/css" media="screen" href="jqbanner.css" /&gt;<br />
</code></p>
<p><strong>2) Include the list of banners</strong><br />
To tell the script which images in your page are for rotating banners. You will need to construct the DIV in the following structure. The number of slides is count automatically through the JS. So, if you experience &#8220;extra slide&#8221; bug, it is probably because there is an extra or missing DIV tag in your page.</p>
<p><code>&lt;div id="jqb_object"&gt;</code><br />
<code><br />
&lt;div class="jqb_slides"&gt;<br />
&lt;div class="jqb_slide" title="slide title" &gt;&lt;a href="slide link"&gt;&lt;img src="banner1.jpg"/&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;div class="jqb_slide" title="slide title" &gt;&lt;a href="slide link"&gt;&lt;img src="banner2.jpg"/&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;div class="jqb_slide" title="slide title"&gt;&lt;a href="slide link"&gt;&lt;img src="banner3.jpg"/&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;div class="jqb_slide" title="slide title" &gt;&lt;span&gt;TEXT SLIDE IN DIV&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;<br />
</code><code><br />
&lt;div class="jqb_bar"&gt;<br />
&lt;div class="jqb_info"&gt;&lt;/div&gt;<br />
&lt;div id="btn_next" class="jqb_btn jqb_btn_next"&gt;&lt;/div&gt;<br />
&lt;div id="btn_pauseplay" class="jqb_btn jqb_btn_pause"&gt;&lt;/div&gt;<br />
&lt;div id="btn_prev" class="jqb_btn jqb_btn_prev"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
</code><code><br />
&lt;/div&gt;<br />
</code></p>
<h3>Download</h3>
<p>The script for this banner is quite simple and self explanatory. To use this rotating banner, you will need to download the zip file which contain all the images, CSS and sample HTML page.</p>
<p><a href="http://www.mclelun.com/conlabs/jqbanner/jqbanner.zip">jqbanner.zip</a> 35.7KB<br />
<a href="http://www.mclelun.com/conlabs/jqbanner/jqbanner_v1.zip">jqbanner_v1.zip (Old version) </a> 35.1KB</p>
<h3>Last Update</h3>
<p>31/05/2010 &#8211; Add in Sliding/Fading animation for title attributes.<br />
30/04/2010 &#8211; Change to horizontal scrolling of slides, it still can be easily modify to vertical scrolling. The old script of fading in and out of slides is still in the JS.<br />
16/01/2010 &#8211; Pause and play share a single button now and I had change the structure slightly to allow HTML text in the rotating slides.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2010/01/jquery-rotating-banner/feed/</wfw:commentRss>
		<slash:comments>104</slash:comments>
		</item>
	</channel>
</rss>

