<?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>Tweeaks Design &#187; Coding</title>
	<atom:link href="http://tweeaks.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://tweeaks.com</link>
	<description>more than just eye popping designs</description>
	<lastBuildDate>Sat, 12 Jun 2010 10:04:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Attack Of Deliciously Colorful Code That Caused Me To Explode</title>
		<link>http://tweeaks.com/design/attack-of-deliciously-colorful-code-caused-me-to-explode/</link>
		<comments>http://tweeaks.com/design/attack-of-deliciously-colorful-code-caused-me-to-explode/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 03:10:50 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=3298</guid>
		<description><![CDATA[<img src="http://tweeaks.com/wp-content/uploads/2010/03/css1.gif" class="alignright" alt="Link Unloading" />Okay I just need to offload a list of links for really cool and/or useful things that I collected within the last half hour or so. I think I might explode if I don't do something because today has just been too much for me. You may be able to relate to what this is like if you are have anything to do with the design world, social media. In this post, you'll get an idea of it if you're not.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://tweeaks.com/wp-content/uploads/2010/03/css1.gif" class="alignright" alt="Link Unloading" />Okay I just need to offload a list of links for really cool and/or useful things that I collected within the last half hour or so. I think I might explode if I don&#8217;t do something because today has just been too much for me. You may be able to relate to what this is like if you are have anything to do with the design world, social media. In this post, you&#8217;ll get an idea of it if you&#8217;re not.</p>
<p>Seriously, today was way too much of an information overload, and I really have to just get this out. I&#8217;m afraid of what might happen if I don&#8217;t, and I don&#8217;t want to find out.</p>
<h2><strong>Sooo&#8230;&#8230;</strong></h2>
<p>Woosaah. I needed to take a breather.</p>
<p>Now, the list of links, which I was more or less <em>bombarded by  Bombay bombers</em>. All I wanted to do was a search for at the time was a simple, online color picking tool that I could just bookmark, and have quick access to at my fingertips when I need to make a different shade or tint of a color setting I&#8217;m using, or whatever other reason. Just a simple search for something I knew had to exist but never saw was a mistake. I had no idea how many of these tools there would be, and what a wide variety of different, cool, and worth sharing at least, bunch of color picking tools. The first is <strong>exactly</strong> what I was looking for.</p>
<div class="res">
<strong><a href="http://www.colorpicker.com/">ColorPicker</a></strong>
</div>
<p>This is a basic colorpicker that is similar but better than the one used in Photoshop. Both RGB and HEX codes are used by it and you can store a set of up to 10 different colors if you want. Plain and simple, just the essentials. Out of all the different ones I found below, I just wanted a simple HEX / RGB color picker, and will take the added bonus of saving the colors. </p>
<h2>You need MORE!!</h2>
<p>Color picking tools. Save time and if you just need to grab a couple colors really quick for something, and work in real-time.</p>
<p><strong>Pick Color RGB and Hex Codes</strong></p>
<div class="res">
<ul>
<li><a href="http://www.1728.com/colrchr3.htm">Background Color Picker</a></li>
<li><a href="http://www.1728.com/colrchr2.htm">Background Color Picker with Font Color Picker</a></li>
<li><a href="http://www.colorschemer.com/online.html">Color Schemer 2 Online</a></li>
</ul>
<p><strong>More Than Just Color</strong></p>
<ul>
<li><a href="http://instant-eyedropper.com/">Instant Eyedropper (free download -desktop app)</a></li>
<li><a href="http://spicebrains.com/">Webmasters Toolkit</a></li>
</ul>
</div>
<p>There were many more, by the way just no time to <em>re</em>-gather them all or I&#8217;ll be here all night. The color pickers above half of what I managed to collect in about 3-4 minutes, no intention to do that (link junky?). I honestly didn&#8217;t know what the hell was going on, or why I all of a sudden felt like I went from living in a black and white world, to feeling as though colors were bleeding from my eyes. Maybe I became possessed and since don&#8217;t have any clue what went on during that time, I must have blacked or gone into epileptic shock or something. It was just so beautiful you wouldn&#8217;t be able to imagine.</p>
<p><img src="http://tweeaks.com/wp-content/uploads/2010/03/Color_Smudges.png" alt="" title="Color_Smudges" width="548" height="325" class="aligncenter size-full wp-image-3303" /></p>
<p>That&#8217;s when I hit my breaking point and had to stop with the colors. Which brings me to what I found previously. A entirely different thing that I was again overloaded after finding it, some how or another most likely on Twitter, I came across a CSS and JavaScript tool that claimed you could drag and drop fonts into the page for testing in real-time, and this I had to see obviously since that&#8217;s cool shit if it were real. This is how I found <a href="http://thecssninja.com">theCSSninja.com</a> and from there <strong><em>it</em></strong> happened, yet again. A handful of posts on that site, in combination with some 25 other random tabs I had opening and closing at any given time, it was just a matter of minutes before I had far more information than I needed, again. I tried to stay focused on the things from thecssninja site as could since it was new to me, but I&#8217;m unable to focus when there&#8217;s so much info swirling like a tornado around me. So that is why in the list below I focus more on cssninja posts. Yes, I am crazy. I know you&#8217;ve already concluded that by this point.</p>
<p><strong><a href="http://www.thecssninja.com/javascript/font-dragr">Font Dragr &#8211; Drag and Drop Font Tester</a></strong></p>
<p>This is a page that you can just select, drag and drop a typeface, or font into the page, so could test how it would look in that page in the section which you can also edit in place if you wanted. Stuff like that is cool in itself.</p>
<h2>CSS &#8211; JavaScript &#8211; Text</h2>
<div class="res">
<ul>
<li><a href="http://desandro.com/articles/opera-logo-css/">Opera Logo Created With CSS</a></li>
<li><a href="http://www.thecssninja.com/javascript/drag-and-drop-upload">Drag and Drop File Upload &#8211; Really worth checking out</a></li>
<li><a href="http://doctype.tv">Doctype.TV</a></li>
<li><a href="http://www.thecssninja.com/javascript/pocket-speedo">iPhone Speedometer Kilometers/hr using geolocation API</a></li>
</ul>
</div>
<p>There were others but I can&#8217;t remember what they were. That&#8217;s ok though, they will be found again, and by larger numbers. That I have no doubt will be true. While I&#8217;m on this topic, I might as well rant on about it some more, because it was one of those days that you just say, damn there&#8217;s just too much.</p>
<p>There are so many new things in web technology. Things that have extremely cool, easy to use, and feature-filled, and these things include the  <a href="http://w3.org"><strong><span style="color:#D10000;">W3</span></strong></a> recently released and/or updated technologies <span style="color:#14A1FF;"><strong>HTML5</strong></span>, <span style="color:#06CC1E;"><strong>CSS3</strong></span>, <span style="color:#3D278C;"><strong>Canvas</strong></span>, <span style="color:#D100D1;"><strong>SVG</strong></span>, along with the less recent but still new and extremely powerful <span style="color:#F21F4D;"><strong>jQuery1.4.2</strong></span>, and the somewhat even less recently updated <span style="color:#FF8A14;"><strong>jQueryUI 1.8</strong></span>, which is the cherry on top this list of all that is possible from any one of them.</p>
<p><a href="http://tweeaks.com/wp-content/uploads/2010/03/ninja.jpg"><img src="http://tweeaks.com/wp-content/uploads/2010/03/ninja-300x300.jpg" alt="" title="ninja" width="300" height="300" class="alignleft size-medium wp-image-3305" /></a>I would say it is easy to understand why someone who works with these things daily, as I do, becoming extremely overwhelmed by the rapidly increasing number of resources for any or a combination of these technologies. Which is noticeably advancing into the future at the speed of light. Every next thing I see, is yet even more amazing, and never could conceive as a possibility just a mere 3 months ago.</p>
<p>This is by no means a bad thing, and I am extremely happy to be able to be apart of the growing community of developers and designers, BUT, I mean come ON, take a chill pill. I know that asking an entire online community to chill out and take a rest is delusional, and I would never want it to stop, I love it to much! It would be nice to have that kind of power though, huh?</p>
<p>Anyways, I guess what I should do, but have a very hard time doing, is to <a href="http://perishablepress.com/press/2010/02/15/a-few-steps-back">take a step back with Jeff Star</a>, since it would seem to be a good, no, Necessary* thing to do. Duh, obviously. I know but actually doing it and knowing it is good to do, are entirely different things. Just ask me, I am the king of knowing all the things I should or shouldn&#8217;t do or be doing. Do I do them though? I can do what you do? Voodoo, coming through your area, &#8211; Fugees. Despite having ability to do what you do, or doing what I should/shouldn&#8217;t do, I 90% of the time, do NOT DO them. I just do things the hard way, the way NOT TO DO them. Don&#8217;t do what I do, in case you were planning to, I know you were. <img src='http://tweeaks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>One last thing, all of that stuff above, also makes it very difficult to get anything at all done, and I have: a plugin update to release, a theme to finalize, as well as 2 half completed posts over at New2WP.com, one which is a continuance of the <a href="http://new2wp.com/noob/how-to-structure-pages-using-html-5-and-css3-styling-for-basic-wordpress-theme/">W3C HTML5/CSS3 meetup post</a> which is the post-meetup review and overview of what was covered at it. Coming soon!</p>
<p>Anyways, ok I feel much better now that I got some of this stress of the web today out. Thanks for listening, if anyone does actually read this.</p>
<p>Okay go play with those links I posted, no more blabla mouth from me. Good day to you all.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/blogging/climate-change-and-global-warming-solutions/" rel="bookmark" class="crp_title">Climate Change And Global Warming Solutions</a></li><li><a href="http://tweeaks.com/resources/26-ancient-resources-of-2008-rediscovered/" rel="bookmark" class="crp_title">26 Ancient Resources Of 2008 Rediscovered</a></li><li><a href="http://tweeaks.com/tutorials/create-an-abstract-illustration-with-simple-hand-drawn-elements/" rel="bookmark" class="crp_title">Create An Abstract Illustration With Simple Hand-Drawn Elements</a></li><li><a href="http://tweeaks.com/tutorials/5-minute-web-20-button-in-photoshop/" rel="bookmark" class="crp_title">5 Minute Web 2.0 Button in Photoshop</a></li><li><a href="http://tweeaks.com/contribute/" rel="bookmark" class="crp_title">Contribute</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/design/attack-of-deliciously-colorful-code-caused-me-to-explode/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My First WordPress Plugin Almost Complete</title>
		<link>http://tweeaks.com/wordpress/my-first-wordpress-plugin-almost-complete/</link>
		<comments>http://tweeaks.com/wordpress/my-first-wordpress-plugin-almost-complete/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 17:43:25 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://tweeaks.com/wordpress/my-first-wordpress-plugin-almost-complete/</guid>
		<description><![CDATA[<img src="http://tweeaks.com/wp-content/uploads/2010/03/wordpress-logo13.jpg" alt="" title="wordpress-logo13" width="150" height="150" class="alignright size-full wp-image-3281" />I have been working on making a plugin for Wordpress users, that would add an Author bio box to the bottom of posts. I know there's other plugins that do this already out there, but I don't think any of them add a Twitter field to your profile page. ]]></description>
			<content:encoded><![CDATA[<p><img src="http://tweeaks.com/wp-content/uploads/2010/03/wordpress-logo13.jpg" alt="" title="wordpress-logo13" width="150" height="150" class="alignright size-full wp-image-3281" />I have been working on making a plugin for WordPress users, that would add an Author bio box to the bottom of posts. I know there&#8217;s other plugins that do this already out there, but I don&#8217;t think any of them add a Twitter field to your profile page. </p>
<p>What my plugin does is it utilizes your information from the WP dashboard on your profile. It makes better use of the fields by removing the Yahoo IM one and adding a Twitter field. Then it will pull the information from that and the URL and Bio of the post author, as well as display the Gravatar of the author by getting the authors email address. Then it adds a nice box in between the post and the comments.</p>
<p>I am extremely excited about this. I never thought I would ever be able to complete it, and get it working. I managed to create the functions and simulate it over at New2WP, but getting it to work in a plugin has been a bit more work. I am still working on cleaning it up and adding the finishing touches, and then I will submit it to WordPress.</p>
<p>You can see an example of it below, I am currently using it on this site, and I&#8217;d love to know what you think!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/wordpress/wordpress-custom-fields-add-excerpts-and-post-thumbnails-to-theme/" rel="bookmark" class="crp_title">WordPress Custom Fields: Add Excerpts And Post Thumbnails To Theme</a></li><li><a href="http://tweeaks.com/wordpress/10-extremely-useful-wordpress-hacks-and-tips/" rel="bookmark" class="crp_title">10 Extremely Useful WordPress Hacks</a></li><li><a href="http://tweeaks.com/wordpress/how-to-using-wordpress-excerpts/" rel="bookmark" class="crp_title">How To Use WordPress Excerpts On Your Blog Homepage</a></li><li><a href="http://tweeaks.com/wordpress/27th-birthday-post-with-7-of-my-favorite-wordpress-design-and-development-blogs/" rel="bookmark" class="crp_title">Forever 27: My Birthday Post With 7 Favorite WordPress Design And Development Blogs</a></li><li><a href="http://tweeaks.com/wordpress/a-fresh-new-wordpress-theme-design-by-tweeaks/" rel="bookmark" class="crp_title">A Fresh New WordPress Theme Design By Tweeaks</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/wordpress/my-first-wordpress-plugin-almost-complete/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Understanding jQuery: What Is $(this) Exactly</title>
		<link>http://tweeaks.com/coding/what-is-this-exactly/</link>
		<comments>http://tweeaks.com/coding/what-is-this-exactly/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 17:15:04 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tips-Tricks]]></category>

		<guid isPermaLink="false">http://tweeaks.com/coding/what-is-this-exactly/</guid>
		<description><![CDATA[<img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery1-200x200.png" alt="jquery" title="jquery" width="200" height="200" class="alignright size-thumbnail wp-image-2977" />I've not posted in a while because I have been working a lot on <a href="http://new2wp.com">New2WP.com</a> and all that great stuff we've been doing over there. I have also been learning more about jQuery, and reading up on that a lot. 

Here you can learn how to better understand the commonly used jQuery method $(this) if you still have an unclear understanding of it like I did for a long time. I want to help others understand it better since I had a difficult time "getting" it]]></description>
			<content:encoded><![CDATA[<p><img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery1-200x200.png" alt="jquery" title="jquery" width="200" height="200" class="alignright size-thumbnail wp-image-2977" />I&#8217;ve not posted in a while because I have been working a lot on <a href="http://new2wp.com">New2WP.com</a> and all that great stuff we&#8217;ve been doing over there. I have also been learning more about jQuery, and reading up on that a lot. </p>
<h2>So what is this</h2>
<p>I just wanted to quickly explain what $(this) is since it was so confusing to me while learning jQuery.</p>
<p>$(this) is easier to understand separately in 2 parts. $() is a function call plain and simple. $ is a reference to the jQuery function, so therefore, $() is a shorter more simple way to write jQuery().</p>
<p>If you use another JavaScript library that redefines $ then you would want to use either jQuery() instead of $(), or you could use jQuery.noCoflict().</p>
<p>What &#8216;this&#8217; is can be more confusing since it&#8217;s used for many things. It is used in an object&#8217;s methods to refer to that object, itself. Sort of like talking in 3rd person or something.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function Foo( value ) {<br />
&nbsp; this.value = value;<br />
}</div></td></tr></tbody></table></div>
<p>$(this) may make you even more confused, so let me know if you have any questions.</p>
<p>And be sure to come check out more jQuery and WordPress tutorials at <a href="http://new2wp.com">New2WP.com</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/coding/14-ways-to-start-learning-jquery/" rel="bookmark" class="crp_title">14 Ways To Start Learning jQuery</a></li><li><a href="http://tweeaks.com/coding/create-a-random-banner-ad-rotator-in-php/" rel="bookmark" class="crp_title">Create A Random Banner Ad Rotator in PHP</a></li><li><a href="http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/" rel="bookmark" class="crp_title">40 jQuery Plugins, Tutorials, Resources And Tools Of 2009</a></li><li><a href="http://tweeaks.com/wordpress/27th-birthday-post-with-7-of-my-favorite-wordpress-design-and-development-blogs/" rel="bookmark" class="crp_title">Forever 27: My Birthday Post With 7 Favorite WordPress Design And Development Blogs</a></li><li><a href="http://tweeaks.com/coding/jquery/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/" rel="bookmark" class="crp_title">How To Make A Dynamic jQuery Feature Post Slider For WordPress</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/what-is-this-exactly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>14 Ways To Start Learning jQuery</title>
		<link>http://tweeaks.com/coding/14-ways-to-start-learning-jquery/</link>
		<comments>http://tweeaks.com/coding/14-ways-to-start-learning-jquery/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 23:29:04 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=3104</guid>
		<description><![CDATA[<a href="/coding/14-ways-to-start-learning-jquery"><img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery-200x200.png" alt="jquery" title="jquery" class="alignright size-thumbnail wp-image-2904" height="200" width="200" /></a>Everyone learns things differently. As a designer, and more visually oriented learner, I have a hard time learning how to do things like programming. It took me a long time, a loooong time to wrap my head around Php, and even still I find that to be a challenge. I would love to learn it better so I could be one of those Php gurus out there, but it's just not gonna happen people]]></description>
			<content:encoded><![CDATA[<p><a href="http://tweeaks.com/coding/14-ways-to-start-learning-jquery"><img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery-200x200.png" alt="jquery" title="jquery" class="alignright size-thumbnail wp-image-2904" height="200" width="200" /></a>Everyone learns things differently. As a designer, and more visually oriented learner, I have a hard time learning how to do things like programming. It took me a long time, a loooong time to wrap my head around Php, and even still I find that to be a challenge. I would love to learn it better so I could be one of those Php gurus out there, but it&#8217;s just not gonna happen people.</p>
<p>That doesn&#8217;t have to be the case with <a href="http://jquery.com/" target="_blank">jQuery </a>though I&#8217;ve found, because it is a lot more simple, and even more simple than I think it is too. It&#8217;s still programming yes, but it&#8217;s more &#8220;normal&#8221; than what I consider Php to be. Though, despite all that, I have still found myself not sitting down and actually learning it. I&#8217;ve tried, but when I do, I tend to get distracted with all the millions of things on the internet that are there to distract me. Have you had this problem ever? It can be annoying at times.</p>
<p>Many times when I try to focus on stuff like this, I start by looking up sites and finding resources which I can use to help me learn. Well, that&#8217;s when the distraction starts. I then start finding more and more and more, until I find myself basically creating a resource roundup that I can make a new blog post with, for others trying to learn the same stuff, instead of using the resources to help myself learn.</p>
<p>I apologize if this is the cycle which you have found yourself in right now too. I did not intend to distract you, but providing you with a ton of resources which you want to learn about, but have yet to do so. On that note, here is the list.</p>
<h2>How Do You Learn jQuery?</h2>
<p>Here are 14 ways you can start learning it.</p>
<p>With the release of jQuery 1.4 today, I&#8217;ll start with:<br />
<a href="http://jquery14.com/" target="_blank">14 Days of jQuery</a>.</p>
<div class="res">
<ul>
<li><a href="http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery" target="_blank">Getting Started with jQuery</a></li>
<li><a href="http://www.learningjquery.com/2006/09/introducing-document-ready" title="Permanent Link: Introducing $(document).ready()" target="_blank">Introducing $(document).ready()</a></li>
<p>This is the first thing to learn about jQuery</p>
<li><a href="http://www.learningjquery.com/2006/09/multiple-document-ready" title="Permanent Link: Multiple $(document).ready()" target="_blank">Multiple $(document).ready()</a></li>
<p>This shows you how you can use $(document).ready() as many times as you want.</p>
<li><a href="http://blog.themeforest.net/screencasts/jquery-for-absolute-beginners-video-series/" target="_blank">jQuery for Absolute Beginners 15 Day Video Series</a></li>
<p>If you are like me this is the thing for you. This 15 video visual tutorial is the best way to learn, if you have no clue what you&#8217;re doing, or have difficulty with programming.</p>
<li><a href="http://net.tutsplus.com/tutorials/javascript-ajax/jquery-animations-a-7-step-program/" target="_blank">jQuery Animations: A 7-Step Program</a></li>
<li><a href="http://net.tutsplus.com/tutorials/javascript-ajax/the-definitive-guide-to-creating-a-practical-jquery-plugin/" target="_blank">The Definitive Guide to Creating a Practical jQuery Plugin</a></li>
<li><a href="http://tutzone.net/2009/12/7-jquery-cheatsheets.html" target="_blank">7 jQuery Cheatsheets For Every Designer &amp; Developer to Have</a></li>
<li><a href="http://www.learningjquery.com/" target="_blank">Learning jQuery &#8211; Tips, Techniques, Tutorials</a></li>
<p>This is a great site for learning jQuery.</p>
<li><a href="http://jqueryfordesigners.com/" target="_blank">jQuery for Designers</a></li>
<p>Another one of my favorites that has helped me through the use of video screencasts.</p>
<li><a href="http://15daysofjquery.com/" target="_blank">15 Days Of jQuery</a></li>
<li><a href="http://15daysofjquery.com/jquery-tabs/18/">Create jQuery Tabs</a></li>
<p>This teaches how to create nice unobtrusive jQuery tabs.</p>
<ul>
<li><a href="http://15daysofjquery.com/examples/jqueryTabs/" target="_blank">jQuery Tab Markup Generator</a></li>
<p>This is a jQuery Tabs code generator. If you don&#8217;t have time to code it yourself, this will do it for you.</p>
</ul>
<li><a href="http://encosia.com/2009/09/21/updated-see-how-i-used-firebug-to-learn-jquery/" target="_blank">Use Firebug to learn jQuery</a></li>
<p>If you don&#8217;t have Firebug installed already, you have to get it. It is an essential tool for developing jQuery, and websites in general. Plus you can learn jQuery by using it.</p>
</ul>
</div>
<p>I have found the best and most useful of these to be the sites that have video tutorials showing you visually since that&#8217;s how I learn. That&#8217;s why jqueryfordesigners.com and jQuery for Absolute Beginners 15 Day Video Series were the most helpful for me in my quest to START learning jQuery, instead of gathering information about it, in hopes that someday I might actually learn something about it.</p>
<p>I think I was hoping that the more resources about it I found, I would somehow magically know how to do it without putting in the work and learning how to do it.</p>
<h2>So how did you learn jQuery?</h2>
<p>Leave a comment with any tips you might have.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/" rel="bookmark" class="crp_title">40 jQuery Plugins, Tutorials, Resources And Tools Of 2009</a></li><li><a href="http://tweeaks.com/coding/what-is-this-exactly/" rel="bookmark" class="crp_title">Understanding jQuery: What Is $(this) Exactly</a></li><li><a href="http://tweeaks.com/resources/26-ancient-resources-of-2008-rediscovered/" rel="bookmark" class="crp_title">26 Ancient Resources Of 2008 Rediscovered</a></li><li><a href="http://tweeaks.com/resources/list-of-useful-google-wave-resources/" rel="bookmark" class="crp_title">17 Useful Google Wave Resources</a></li><li><a href="http://tweeaks.com/tutorials/800-photoshop-effects-and-photo-manipulation-tutorials/" rel="bookmark" class="crp_title">800+ Photoshop Text Effects and Photo Manipulation Tutorials</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/14-ways-to-start-learning-jquery/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>40 jQuery Plugins, Tutorials, Resources And Tools Of 2009</title>
		<link>http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/</link>
		<comments>http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 03:14:19 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=2935</guid>
		<description><![CDATA[<img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery-200x200.png" alt="jquery" title="jquery" width="200" height="200" class="alignright size-thumbnail wp-image-2904" />Since I finished making the Featured post slider at the top of the site, I feel like the links I've bookmarked have proved to be helpful since I actually accomplished something on my own involoving jQuery. Plus I have been meaning to make a list of the jQuery links and resources I've collected for a while now, so I am finally doing it! Plus these things are so good and cool that I can't go on not sharing them]]></description>
			<content:encoded><![CDATA[<p><img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery-200x200.png" alt="jquery" title="jquery" width="200" height="200" class="alignright size-thumbnail wp-image-2904" />Since I finished making the Featured post slider at the top of the site, I feel like the links I&#8217;ve bookmarked have proved to be helpful since I actually accomplished something on my own involving jQuery. Plus I have been meaning to make a list of the jQuery links and resources I&#8217;ve collected for a while now, so I am finally doing it! Plus these things are so good and cool that I can&#8217;t go on not sharing them.</p>
<p>This list has links to plugins, examples, tutorials, and more. Whether your trying to learn jQuery or if you are looking for a certain plugin, maybe even one you might not have known about, you can probably find it all here. But incase you can&#8217;t, then you can definitely find something <a href="http://net.tutsplus.com/articles/web-roundups/120-tips-tricks-and-tuts-from-2009-worth-your-time/" target="_blank">here</a> that you might like instead.</p>
<p>I am one that is all of the above. I&#8217;ve been trying to learn it and look for certain plugins that I can use. Why remake the wheel right. So, here&#8217;s a mix of new posts, and old from the year 2009, at least since I became interested in jQuery.</p>
<h3>Sliders and Slideshows </h3>
<div class="res">
<ul>
<li><a target="blank" href="http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider/">Easy Slider 17 Numeric Navigation jQuery Slider</a></li>
<li><a target="blank" href="http://www.webdesignbooth.com/15-jquery-plugins-for-a-better-photo-gallery-and-slideshow/">15 jQuery Plugins For A Better Photo Gallery And Slideshow</a></li>
<li><a target="blank" href="http://www.agilecarousel.com/examples/multi_example">Agile Carousel Multi Slide Example | Agile Carousel</a></li>
<li><a target="blank" href="http://buildinternet.artician.com/blog/2009/03/sliding-boxes-and-captions-with-jquery/">Sliding Boxes and Captions with jQuery | buildinternet&#8217;s Blog on Artician</a></li>
<li><a target="blank" href="http://www.twospy.com/galleriffic/#1">Thumbnail jQuery Slideshow</a></li>
<li><a target="blank" href="http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm">Dynamic Drive DHTML Scripts | Featured Content Glider</a></li>
<li><a target="blank" href="http://www.upsidedowncity.net/wordpress-featured-post-slideshow/">WordPress Featured Post Slideshow | Upside Down City</a></li>
<li><a href="http://brenelz.com/2009/03/31/build-a-content-slider-with-jquery/" target="_blank">Build a Content Slider with jQuery</a></li>
</ul>
<h3>Tooltips</h3>
<ul>
<li><a target="blank" href="http://craigsworks.com/projects/simpletip/">Simpletip &#8211; A simple jQuery tooltip plugin</a></li>
<li><a target="blank" href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery/">Easiest Tooltip and Image Preview Using jQuery</a></li>
<li><a target="_blank" href="http://webdesignledger.com/resources/11-excellent-solutions-for-creating-tooltips">11 Excellent Solutions for Creating Tooltips | Web Design Ledger</a></li>
<li><a target="_blank" href="http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/">25 Useful jQuery Tooltip Plugins and Tutorials</a></li>
</ul>
<h3>Tabs</h3>
<ul>
<li><a target="blank" href="http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/">Simple Tabs with CSS &amp; jQuery &#8211; Easy Tab Tutorial with CSS and jQuery</a></li>
<li><a target="_blank" href="http://jqueryfordesigners.com/jquery-tabs/">jQuery Tabs | jQuery for Designers &#8211; Tutorials and screencasts</a></li>
<li><a target="_blank" href="http://www.dynamicdrive.com/style/csslibrary/item/jquery_drop_line_tabs/">jQuery Drop Line Tabs | Dynamic Drive</a></li>
<li><a href="http://blog.ginader.de/archives/2009/02/07/jQuery-Accessible-Tabs-How-to-make-tabs-REALLY-accessible.php" target="_blank">jQuery Accessible Tabs</a></li>
</ul>
<h3>Menus</h3>
<ul>
<li><a target="blank" href="http://www.sohtanaka.com/web-design/horizontal-sub-nav-with-css-jquery/">Horizontal Sub-nav with CSS &amp; jQuery</a></li>
<li><a target="blank" href="http://www.1stwebdesigner.com/resources/38-jquery-and-css-drop-down-multi-level-menu-solutions/">38 jQuery And CSS Drop Down Multi Level Menu Solutions</a></li>
<li><a target="blank" href="http://css-tricks.com/simple-jquery-dropdowns/">Simple jQuery Dropdowns | CSS-Tricks</a></li>
<li><a target="blank" href="http://designreviver.com/tutorials/jquery-css-example-dropdown-menu/">jQuery &amp; CSS Example &ndash; Dropdown Menu | Design Reviver</a></li>
<li><a target="blank" href="http://www.kriesi.at/archives/create-a-multilevel-dropdown-menu-with-css-and-improve-it-via-jquery">Create a multilevel Dropdown menu with CSS and improve it via jQuery</a></li>
</ul>
<h3>Tutorials</h3>
<ul>
<li><a href="http://tweeaks.com/development/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/">How To Create A Featured Post Slider For WordPress</a></li>
<li><a target="blank" href="http://www.learningjquery.com/">Learning jQuery &#8211; Tips, Techniques, Tutorials</a></li>
<li><a target="blank" href="http://blog.jeremymartin.name/2008/02/blogger-trick-style-author-comments.html">Style Author Comments Differently with jQuery</a></li>
<li><a target="blank" href="http://speckyboy.com/2009/08/06/30-tutorials-combining-both-wordpress-and-jquery/">30 Tutorials Combining Both WordPress and jQuery | Speckyboy Design</a></li>
<li><a target="blank" href="http://www.smashingmagazine.com/2009/08/23/50-useful-new-jquery-techniques/">50 Useful New jQuery Techniques and Tutorials</a></li>
<li><a target="blank" href="http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/">jQuery Tutorials for Designers</a></li>
<li><a href="http://net.tutsplus.com/tutorials/javascript-ajax/the-definitive-guide-to-creating-a-practical-jquery-plugin/" target="_blank">The Definitive Guide to Creating a Practical jQuery Plugin</a></li>
</ul>
<h3>Resource Lists</h3>
<ul>
<li><a target="blank" href="http://jquerylist.com/">The Ultimate jQuery List</a></li>
<li><a target="blank" href="http://speckyboy.com/2008/07/21/20-amazing-jquery-plugins-and-65-excellent-jquery-resources/">20 Amazing jQuery Plugins and 65 Excellent jQuery Resources</a></li>
<li><a target="blank" href="http://www.noupe.com/ajax/37-more-shocking-jquery-plugins.html">37 More Shocking jQuery Plugins | Noupe</a></li>
<li><a target="blank" href="http://www.noupe.com/jquery/the-power-of-wordpress-and-jquery-30-useful-plugins-tutorials.html">The Power of WordPress and jQuery: 25+ Useful Plugins &amp; Tutorials</a></li>
<li><a target="blank" href="http://www.webdesignbooth.com/9-useful-jquery-calendar-and-date-picker-plugins-for-web-designers/">9 Useful jQuery Calendar And Date Picker Plugins For Web Designers</a></li>
<li><a target="_blank" href="http://www.onextrapixel.com/2009/12/28/18-latest-jquery-plugins-for-your-next-project/">18 Latest jQuery Plugins for Your Next Project | Onextrapixel</a></li>
<li><a target="_blank" href="http://www.smashingmagazine.com/2009/08/23/50-useful-new-jquery-techniques/">50 Useful New jQuery Techniques and Tutorials &#8211; Smashing Magazine</a></li>
<li><a target="_blank" href="http://www.tripwiremagazine.com/2009/12/45-incredible-jquery-plugins-making-images-more-dynamic-and-elegant.html">45+ Incredible jQuery Plugins Making Images more Dynamic and Elegant&nbsp;|&nbsp;tripwire magazine</a></li>
</ul>
<h3>Useful Tools </h3>
<ul>
<li><a target="blank" href="http://woorkup.com/2009/09/26/jquery-1-3-visual-cheat-sheet/">jQuery visual cheat sheet</a></li>
<li><a target="_blank" href="http://flowplayer.org/tools/index.html">jQuery TOOLS &#8211; The missing UI library for the Web</a></li>
<li><a target="blank" href="http://code.google.com/apis/ajax/playground/#jquery">jQuery Playground on Google</a></li>
<li><a target="_blank" href="http://tutzone.net/2009/12/7-jquery-cheatsheets.html">7 jQuery Cheatsheets For Every Designer &amp; Developer to Have | TutZone</a></li>
</ul>
</div>
<p>If you liked this post why not bookmark it? Or at least subscribe to the RSS feed below. Feel free to add any links not listed in the comments below. </p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/coding/14-ways-to-start-learning-jquery/" rel="bookmark" class="crp_title">14 Ways To Start Learning jQuery</a></li><li><a href="http://tweeaks.com/resources/26-ancient-resources-of-2008-rediscovered/" rel="bookmark" class="crp_title">26 Ancient Resources Of 2008 Rediscovered</a></li><li><a href="http://tweeaks.com/resources/list-of-useful-google-wave-resources/" rel="bookmark" class="crp_title">17 Useful Google Wave Resources</a></li><li><a href="http://tweeaks.com/tutorials/800-photoshop-effects-and-photo-manipulation-tutorials/" rel="bookmark" class="crp_title">800+ Photoshop Text Effects and Photo Manipulation Tutorials</a></li><li><a href="http://tweeaks.com/coding/css-design/mastering-css-coding-beginner-to-advanced-techniques/" rel="bookmark" class="crp_title">Mastering CSS Coding: Beginner To Advanced Techniques</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Make A Dynamic jQuery Feature Post Slider For WordPress</title>
		<link>http://tweeaks.com/coding/jquery/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/</link>
		<comments>http://tweeaks.com/coding/jquery/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 14:29:14 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Slider]]></category>
		<category><![CDATA[Tips-Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=2898</guid>
		<description><![CDATA[<a href="http://tweeaks.com/development/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/"><img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery-200x200.png" alt="jquery" title="jquery" width="200" height="200" class="alignright size-thumbnail wp-image-2904" /></a>I finally finished getting my new custom <a href="http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery" target="_blank">jQuery</a> featured post slider working as you can see in the header of the site. It took some trial and error but I eventually managed to figure out how to get it working. I ran into issues because I was first trying to use <?php query_post(); ?> to get the posts, but then learned about <a href="http://bavotasan.com/tutorials/using-wp_query-to-fetch-posts-in-wordpress/" target="_blank">WP_Query()</a> and that solved all my problems. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://tweeaks.com/development/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/"><img src="http://tweeaks.com/wp-content/uploads/2009/12/jquery-200x200.png" alt="jquery" title="jquery" width="200" height="200" class="alignright size-thumbnail wp-image-2904" /></a>I finally finished getting my new custom <a href="http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery" target="_blank">jQuery</a> featured post slider working as you can see in the header of the site. It took some trial and error but I eventually managed to figure out how to get it working. I ran into issues because I was first trying to use <strong>query_post()</strong> to get the posts, but then learned about <a href="http://bavotasan.com/tutorials/using-wp_query-to-fetch-posts-in-wordpress/" target="_blank">WP_Query()</a> and that solved all my problems. This is a better type of banner rotator than my previous <a href="http://tweeaks.com/development/create-a-random-banner-ad-rotator-in-php/">Php</a> and <a href="http://tweeaks.com/development/create-a-javascript-banner-ad-rotator/">JavaScript</a> banner rotator posts too. I would recommend using this one instead.</p>
<p>Now that I finally got it working, I am going to start working on making it a plugin for WordPress that I can release if I ever finish it, or can even manage to learn how to develop a WP plugin for that matter. I&#8217;m still rusty with Php and the development side of things, but I will do my best to create a plugin to release.</p>
<p>Since I had a hard time in finding information on how to do this, I wanted to share my code. What it does is dynamically display posts from the &#8216;Featured&#8217; category, using the easySlider jQuery plugin. It&#8217;s easy to do, and adds a nice animated and dynamic feature to your site.</p>
<p><strong>What you will learn:</strong></p>
<ul style="list-style: circle;">
<li>using the WordPress WP_Query() funtion</li>
<li>retrieve posts from a specific category</li>
<li>display post titles and excertps in jQuery slider</li>
</ul>
<p><strong>Getting started</strong></p>
<p>For this you will need to download the <a href="http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider" target="_blank">jQuery easySlider plugin</a>. You will also have to be able to edit the <strong>header.php</strong> template for your theme. Go here for some information about using <a href="http://codex.wordpress.org/Function_Reference/WP_Query" target="_blank">WP_Query() function here</a>.</p>
<p>For the latest example usage of easySlider with just static content you can <a href="http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider" target="_blank">download the files</a>. I used the example from that, and just altered the CSS and made the list of content dynamic instead of static, so you may want to start from there since my CSS is different.</p>
<p>These are the arrow images I used for my slider. Feel Free to save them. </p>
<p align="center"><img src="http://tweeaks.com/lab/images/btn_prev.png" alt="arrow left" /> <img src="http://tweeaks.com/lab/images/btn_next.png" alt="arrow right" /></p>
</p>
<p>Here is the CSS styles I have.</p>
<div class="codecolorer-container css dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#slider</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">180px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#slider</span> ul<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#slider</span> li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</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;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#slider</span> li <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/* define width and height of list item (slide) entire slider area will adjust according to the parameters provided here */</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">180px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#slider</span> li h2<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#slider</span> li p<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<br />
p<span style="color: #cc00cc;">#controls</span> <span style="color: #00AA00;">&#123;</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: #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: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#prevBtn</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#nextBtn</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: #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: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-8000px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">-100px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#nextBtn</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">525px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#prevBtn</span> a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#nextBtn</span> a <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: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">19px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/btn_prev.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#nextBtn</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/btn_next.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>Next you need to add this before the closing head tag <strong></ head></strong> in your header.php template, which inlcudes the external JavaScript files. Change the path to the files according to where you save them.</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/easySlider1.5.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span><br />
&nbsp; &nbsp; $(document).ready(function(){ &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#slider&quot;).easySlider({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlsBefore: '<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;controls&quot;</span>&gt;</span>',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlsAfter:&nbsp; '<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; auto: true, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continuous: true<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; }); <br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p><strong>Now for the fun part.</strong></p>
<p>This works in a similar way as the query_post() function does but that was conflicting with the WordPress loop and making all the posts on my site to ONLY display the posts in featured category. This creates a new instance of query_post(), and allows you to do various things while within The Loop.</p>
<p>First you need to open the div and unordered list.</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;slider&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Then you need to set up the query and get the number of posts from the category you want to get. Then create the loop.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$featuredPosts</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$featuredPosts</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'showposts=5&amp;cat=7'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$featuredPosts</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$featuredPosts</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>In this example, showposts=5 will get 5 posts, and cat=7 is getting the posts from the category with the ID 7. If you can&#8217;s find the category ID, go to Categories in your WP admin, and hover over the category links. You will be able to see what the link is in your browser window, and the end of the URL will say &#038;cat_ID=X.</p>
<p>Next, display the list of posts. This will show the post title with using the_permalink() and the_title() functions, and the_excerpt() to display a short summary of the post. You would have to make sure that all posts in the Featured category have a summary in the Excerpt field when you create new posts.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;postsnip&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;</div></td></tr></tbody></table></div>
<p>Close the loop. Add the closing list and div tags and that&#8217;s it!</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;!--/close loop--&gt;<br />
&nbsp; &nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;&lt;!--/slider--&gt;</div></td></tr></tbody></table></div>
<p>If it were a perfect world, this would work for you on your own site just by copying and pasting, but if you have ever developed anything before, you know it&#8217;s never that simple. If you have any questions or issues with this let me know.</p>
<p>Here is the entire code.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:485px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;style type=&quot;text/css&quot;&gt;<br />
&nbsp; &nbsp; #slider{ margin: 0px 25px; height: 180px; overflow: hidden; }<br />
&nbsp; &nbsp; #slider ul, #slider li, #slider2 ul, #slider2 li{ margin:0px; padding:0; list-style:none; }<br />
&nbsp; &nbsp; #slider li, #slider2 li{ <br />
&nbsp; &nbsp; /* define width and height of list item (slide) entire slider area will adjust according to the parameters provided here */ <br />
&nbsp; &nbsp; &nbsp; &nbsp; width:500px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:180px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; overflow:hidden; <br />
&nbsp; &nbsp; } &nbsp; <br />
&nbsp; &nbsp; #slider2 li{ background:#f1f1f1; }&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; #slider li h2{ margin:0px 20px; padding-top:10px; }<br />
&nbsp; &nbsp; #slider li p{ margin: 5px 20px; }<br />
&nbsp; &nbsp; p#controls, p#controls2{ margin:0; position:relative; } <br />
&nbsp; &nbsp; #prevBtn, #nextBtn, #prevBtn2, #nextBtn2{ display:block; margin:0; overflow:hidden; text-indent:-8000px; width:18px; height:30px; position:absolute; left:5px; top:-100px; }&nbsp; &nbsp; <br />
&nbsp; &nbsp; #nextBtn, #nextBtn2{ left:525px; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; #prevBtn a, #nextBtn a, #prevBtn2 a, #nextBtn2 a{ display:block; width:19px; height:30px; background:url(images/btn_prev.png) no-repeat 0 0; }&nbsp; <br />
&nbsp; &nbsp; #nextBtn a, #nextBtn2 a{ background:url(images/btn_next.png) no-repeat 0 0; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/style&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/easySlider1.5.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; $(document).ready(function(){ &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#slider&quot;).easySlider({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlsBefore: '&lt;p id=&quot;controls&quot;&gt;',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlsAfter:&nbsp; '&lt;/p&gt;',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; auto: true, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continuous: true<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; }); <br />
&lt;/script&gt;<br />
<br />
&lt;div id=&quot;slider&quot;&gt;<br />
&nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &lt;?php &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $featuredPosts = new WP_Query();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $featuredPosts-&gt;query('showposts=5&amp;cat=7');<br />
&nbsp; &nbsp; &nbsp; &nbsp; while ($featuredPosts-&gt;have_posts()) : $featuredPosts-&gt;the_post(); <br />
&nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;postsnip&quot;&gt;&lt;?php the_excerpt(); ?&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php endwhile; ?&gt;&lt;!--/close loop--&gt;<br />
&nbsp; &nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;&lt;!--/slider--&gt;</div></td></tr></tbody></table></div>
<p>If you want to see a demo of this, just look at the top of this site, I am using almost this exact code to display the featured post slider in my header. So it shouldn&#8217;t be too difficult to implement yourself. There&#8217;s always a bump in the road though.</p>
<p>Questions or comments? Post them below.	</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/coding/create-a-random-banner-ad-rotator-in-php/" rel="bookmark" class="crp_title">Create A Random Banner Ad Rotator in PHP</a></li><li><a href="http://tweeaks.com/wordpress/wordpress-custom-fields-add-excerpts-and-post-thumbnails-to-theme/" rel="bookmark" class="crp_title">WordPress Custom Fields: Add Excerpts And Post Thumbnails To Theme</a></li><li><a href="http://tweeaks.com/resources/44-sites-to-submit-your-links-to/" rel="bookmark" class="crp_title">44 Sites To Submit Links To Increase Site Traffic</a></li><li><a href="http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/" rel="bookmark" class="crp_title">40 jQuery Plugins, Tutorials, Resources And Tools Of 2009</a></li><li><a href="http://tweeaks.com/wordpress/how-to-using-wordpress-excerpts/" rel="bookmark" class="crp_title">How To Use WordPress Excerpts On Your Blog Homepage</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/jquery/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>89</slash:comments>
		</item>
		<item>
		<title>Create A Javascript Banner Ad Rotator</title>
		<link>http://tweeaks.com/coding/create-a-javascript-banner-ad-rotator/</link>
		<comments>http://tweeaks.com/coding/create-a-javascript-banner-ad-rotator/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 09:33:36 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://tweeaks.com/2009/10/create-a-javascript-banner-ad-rotator/</guid>
		<description><![CDATA[<img src="http://tweeaks.com/wp-content/uploads/2009/10/javascript-icon.png" alt="javascript-icon" title="javascript-icon" width="75" height="69" class="alignright size-full wp-image-2368" />I decided to just go ahead follow up my previous post on how to make a banner ad rotator PHP script. This one is just as simple, but is a client-side script, instead of server-side like PHP. So if your web server doesn't have PHP installed, you can use this Javascript to rotate banners ads]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-2368" title="javascript-icon" src="http://tweeaks.com/wp-content/uploads/2009/10/javascript-icon.png" alt="javascript-icon" width="75" height="69" />I decided to just go ahead follow up my previous post on how to make a banner ad rotator PHP script. This one is just as simple, but is a client-side script, instead of server-side like PHP. So if your web server doesn&#8217;t have PHP installed, you can use this Javascript to rotate banners ads.</p>
<p>Open the Javascript tags, &lt;script language=&#8221;JavaScript&#8221;&gt;&lt;/script&gt;, and setting the variables/size of the images you are going to display:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> img_width <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;125&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> img_height <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;125&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> img_title <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Click Here&quot;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>I am just using a normal banner size but you can use whatever you want. The width and height dimensions will be recognize as pixels, so you don&#8217;t need to include px.  The title variable is what will show up when you hover your mouse over the banner images.</p>
<p>Next we need to create separate arrays for each banner ad, which will store the site link and image source of the banner,</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> links<span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> pic<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
<p>Now create a variable for the new array. In programming, 0 is the starting point for arrays and counters, etc. When you create a counter, it counts 0,1,2,3 etc. So here 0 is the first positions of the array.</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #006600; font-style: italic;">// insert images here</span><br />
pic<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'gr.gif'</span><span style="color: #339933;">;</span><br />
pic<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'tf.gif'</span><span style="color: #339933;">;</span><br />
pic<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'aj.gif'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// insert links here</span><br />
links<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'http://graphicriver.net/?ref=jaredwilli'</span><span style="color: #339933;">;</span><br />
links<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'http://themeforest.com/?ref=jaredwilli'</span><span style="color: #339933;">;</span><br />
links<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'http://audiojungle.com/?ref=jaredwilli'</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Increment the array position by 1 for each additional link and image you decide to have, and YOU MUST make sure that the position in the array each of your images are matches up with the links position. By position I mean the numbers you set pic[1] goes with link[1], pic[0] with link[0], and so on. They be incorrectly linked if they don&#8217;t match up here.</p>
<p>Finally, we need to write the code which displays all the information for each banner.</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> xy<span style="color: #339933;">=</span>Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>ad.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> <br />
<span style="color: #006600; font-style: italic;">// generates a random digit, then makes it a whole number</span></div></td></tr></tbody></table></div>
<p>This is gathering all the information from the array, and then goes down the array and echos the information out into the HTML code we embedded the javascript code in. Every time the page refreshes it will show a different banner image if you have more than one in the array.</p>
<p>Here is the entire code combined:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:485px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> img_width <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;125&quot;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// define width</span><br />
<span style="color: #003366; font-weight: bold;">var</span> img_height <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;125&quot;</span><span style="color: #339933;">;</span> &nbsp;<span style="color: #006600; font-style: italic;">// define height</span><br />
<span style="color: #003366; font-weight: bold;">var</span> img_title <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Click Here&quot;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// define image title</span><br />
<br />
<span style="color: #006600; font-style: italic;">// create the image and link arrays</span><br />
<span style="color: #003366; font-weight: bold;">var</span> links<span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> pic<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// insert images here</span><br />
pic<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'gr.gif'</span><span style="color: #339933;">;</span><br />
pic<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'tf.gif'</span><span style="color: #339933;">;</span><br />
pic<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'aj.gif'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// insert links here</span><br />
links<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'http://graphicriver.net/?ref=jaredwilli'</span><span style="color: #339933;">;</span><br />
links<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'http://themeforest.com/?ref=jaredwilli'</span><span style="color: #339933;">;</span><br />
links<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'http://audiojungle.com/?ref=jaredwilli'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #003366; font-weight: bold;">var</span> xy<span style="color: #339933;">=</span>Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>ad.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> &nbsp;<br />
<span style="color: #006600; font-style: italic;">// generates a random digit</span><br />
<span style="color: #006600; font-style: italic;">// then makes it a whole number</span><br />
<br />
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;a href=&quot;links[xy]+'</span><span style="color: #3366CC;">&quot; target=&quot;</span>_blank<span style="color: #3366CC;">&quot;&gt;<br />
&lt;img src=&quot;</span><span style="color: #339933;">/</span>affiliates<span style="color: #339933;">/</span><span style="color: #3366CC;">'+pic[xy]+'</span><span style="color: #3366CC;">&quot; alt=&quot;</span><span style="color: #3366CC;">'+img_title+'</span><span style="color: #3366CC;">&quot; width=&quot;</span><span style="color: #3366CC;">'+img_width+'</span><span style="color: #3366CC;">&quot; height=&quot;</span><span style="color: #3366CC;">'+img_height+'</span><span style="color: #3366CC;">&quot; /&gt;&lt;/a&gt;');</span></div></td></tr></tbody></table></div>
<p>After I posted this, I quickly learned that it was going to be a pain to get the code snippets in the blockquotes to display since it is JavaScript. The browser was reading it as a script, and not as text on the page.</p>
<p>So if the code isn&#8217;t showing up, let me know. WordPress doesn&#8217;t help much either since it automatically re-writes certain pieces of code in the post editor.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/coding/create-a-random-banner-ad-rotator-in-php/" rel="bookmark" class="crp_title">Create A Random Banner Ad Rotator in PHP</a></li><li><a href="http://tweeaks.com/coding/jquery/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/" rel="bookmark" class="crp_title">How To Make A Dynamic jQuery Feature Post Slider For WordPress</a></li><li><a href="http://tweeaks.com/resources/8-great-bookmarklets-for-designers-and-developers/" rel="bookmark" class="crp_title">8 Great Bookmarklets For Designers And Developers</a></li><li><a href="http://tweeaks.com/wordpress/how-to-using-wordpress-excerpts/" rel="bookmark" class="crp_title">How To Use WordPress Excerpts On Your Blog Homepage</a></li><li><a href="http://tweeaks.com/wordpress/wordpress-custom-fields-add-excerpts-and-post-thumbnails-to-theme/" rel="bookmark" class="crp_title">WordPress Custom Fields: Add Excerpts And Post Thumbnails To Theme</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/create-a-javascript-banner-ad-rotator/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Create A Random Banner Ad Rotator in PHP</title>
		<link>http://tweeaks.com/coding/create-a-random-banner-ad-rotator-in-php/</link>
		<comments>http://tweeaks.com/coding/create-a-random-banner-ad-rotator-in-php/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 08:36:32 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=2363</guid>
		<description><![CDATA[<img class="alignright size-full wp-image-2362" title="php1" src="http://tweeaks.com/wp-content/uploads/2009/10/php1.jpg" alt="php1" width="200" height="200" />There are countless ways to create a banner ad rotator script in several different coding languages. For making an ad rotator I'd prefer to do it with PHP like I have done below, but depending on where I wanted to display it, I might consider using jQuery because that is becoming one of my new faovorite things and is growing more popular everyday. This is just a basic PHP ad rotating script with nothing fancy like what you could do with jQuery, but it is still useful and rather simple to write.
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-2362" title="php1" src="http://tweeaks.com/wp-content/uploads/2009/10/php1.jpg" alt="php1" width="200" height="200" /><strong>I have posted a new and much better script for rotating banners. <a href="http://tweeaks.com/development/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/">jQuery Featured Post Slider</a></strong></p>
<p>There are countless ways to create a banner ad rotator script in several different coding languages. For making an ad rotator I&#8217;d prefer to do it with PHP like I have done below, but depending on where I wanted to display it, I might consider using jQuery because that is becoming one of my new favorite things and is growing more popular everyday. This is just a basic PHP ad rotating script with nothing fancy like what you could do with jQuery, but it is still useful and rather simple to write.</p>
<p>Open up a new text document in notepad or Dreamweaver, whatever it is you would use, and create a new file named adrotator.php. On the top 2 lines type this:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Then, you need to create a variable for your banner ad&#8217;s HTML code, and increase the banner counter variable depending on the number of banners you want to display or in otherwords number of $bannercode variables you create. You will see what I mean in a minute. Increase the counter via the bannercode variable like this:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;put the ad HTML code here&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannerounter</span><span style="color: #339933;">++;</span></div></td></tr></tbody></table></div>
<p>So say you wanted to rotate 3 banner ads, you would rewrite this 3 times with each banners HTML code for the $bannercode variable. Be sure to make sure you get the quotation marks correct too.<br />
I like to use singles &#8216; &#8216; for variables like $variable = &#8216;this&#8217;. That way any HTML you may have between them you can just use double guotes and not have to backslash escape all of them like <a href="\"></a>.</p>
<p>This is how you would write the code for each banner.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// Banner One</span><br />
<span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://tweeaks.com/category/development/&quot;&gt;&lt;img src=&quot;http://tweeaks.com/wp-content/uploads/2009/10/fbconnect.png&quot; alt=&quot;Banner One&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">++;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Banner Two</span><br />
<span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://tweeaks.com/category/development/&quot;&gt;&lt;img src=&quot;http://tweeaks.com/wp-content/uploads/2009/10/get-rss.png&quot; alt=&quot;Banner Two&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">++;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Banner Three</span><br />
<span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://tweeaks.com/portfolio&quot;&gt;&lt;img src=&quot;http://tweeaks.com/wp-content/uploads/2009/10/get-email.png&quot; alt=&quot;Banner Three&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">++;</span></div></td></tr></tbody></table></div>
<p>Now we need to get the total number of ads, and randomly display them if there are more than one, otherwise just show one which can be good to specify just in case you remove other ads and only one is left.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$toatalads</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$bannercounter</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$totalads</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//if total number of ads is greater than 1 then randomly show them</span><br />
<br />
<a href="http://www.php.net/mt_srand"><span style="color: #990000;">mt_srand</span></a> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span> <a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1234567</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$pickedbanner</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mt_rand"><span style="color: #990000;">mt_rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$totalads</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// otherwise show just one ad</span><br />
<br />
<span style="color: #000088;">$pickedbanner</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000088;">$bannerad</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pickedbanner</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>That&#8217;s it for the rotator script. Save your adrotator.php file and upload it. Then where ever you want to have the banners show up just do an include of that file like this:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'adrotator.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<br />
&lt;div&gt;<span style="color: #006699; font-weight: bold;">$bannerad</span>&lt;/div&gt;<br />
&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>That&#8217;s all there is to it. If you have any problems getting this to work let me know and I can help you out. It&#8217;s not the most advanced script, but it does the trick quick and easily. I plan to do a follow up post to this with a Javascript or maybe jQuery tutorial if I&#8217;m in the mood.</p>
<p>So once again here is the entire script:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:485px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Banner One</span><br />
<span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://tweeaks.com/category/development/&quot;&gt;&lt;img src=&quot;http://tweeaks.com/wp-content/uploads/2009/10/fbconnect.png&quot; alt=&quot;Banner One&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">++;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Banner Two</span><br />
<span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://tweeaks.com/category/development/&quot;&gt;&lt;img src=&quot;http://tweeaks.com/wp-content/uploads/2009/10/get-rss.png&quot; alt=&quot;Banner Two&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">++;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Banner Three</span><br />
<span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bannercounter</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://tweeaks.com/portfolio&quot;&gt;&lt;img src=&quot;http://tweeaks.com/wp-content/uploads/2009/10/get-email.png&quot; alt=&quot;Banner Three&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$bannercounter</span><span style="color: #339933;">++;</span><br />
<br />
<span style="color: #000088;">$toatalads</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$bannercounter</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$totalads</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//if total number of ads is greater than 1 then randomly show them</span><br />
<br />
<a href="http://www.php.net/mt_srand"><span style="color: #990000;">mt_srand</span></a> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span> <a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1234567</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$pickedbanner</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mt_rand"><span style="color: #990000;">mt_rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$totalads</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// otherwise show just one ad</span><br />
<br />
<span style="color: #000088;">$pickedbanner</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// end if</span><br />
<span style="color: #000088;">$bannerad</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$bannercode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pickedbanner</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>Then this is placed where you want it to show up, making sure to point to the adrotator.php file on your server.<br />
[cc lang="php"]<br />
<?php<br />
include ('adrotator.php'); // adrotator.php script on your server<br />
echo "</p>
<div>$bannerad</div>
<p>&#8220;;<br />
?></p>
<p>I will create a demo page shortly for this and the <a href="http://tweeaks.com/2009/10/create-a-javascript-banner-ad-rotator/">JavaScript banner rotator script</a>.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/coding/create-a-javascript-banner-ad-rotator/" rel="bookmark" class="crp_title">Create A Javascript Banner Ad Rotator</a></li><li><a href="http://tweeaks.com/coding/jquery/how-to-make-a-dynamic-jquery-feature-post-slider-for-wordpress/" rel="bookmark" class="crp_title">How To Make A Dynamic jQuery Feature Post Slider For WordPress</a></li><li><a href="http://tweeaks.com/wordpress/wordpress-custom-fields-add-excerpts-and-post-thumbnails-to-theme/" rel="bookmark" class="crp_title">WordPress Custom Fields: Add Excerpts And Post Thumbnails To Theme</a></li><li><a href="http://tweeaks.com/wordpress/how-to-using-wordpress-excerpts/" rel="bookmark" class="crp_title">How To Use WordPress Excerpts On Your Blog Homepage</a></li><li><a href="http://tweeaks.com/freebies/" rel="bookmark" class="crp_title">Freebies</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/create-a-random-banner-ad-rotator-in-php/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Mastering CSS Coding: Beginner To Advanced Techniques</title>
		<link>http://tweeaks.com/coding/css-design/mastering-css-coding-beginner-to-advanced-techniques/</link>
		<comments>http://tweeaks.com/coding/css-design/mastering-css-coding-beginner-to-advanced-techniques/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 20:58:02 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=2075</guid>
		<description><![CDATA[<a href="http://tweeaks.com/2009/10/mastering-css-coding-beginner-to-advanced-techniques/"><img class="alignright size-full wp-image-2081" title="css2" src="http://tweeaks.com/wp-content/uploads/2009/10/css2.jpg" alt="Mastering CSS" width="200" height="200" /></a>I recently realized how easy it is to forget the something I once knew how to do very well. CSS was the first thing I learned how to do in web design, since I started getting into coding because of Myspace. It's funny I know, but Myspace is the reason for what I now do for a living, but I haven't been doing much CSS coding for a the past few months. It isn't something I need to do much of at my current job. </p]]></description>
			<content:encoded><![CDATA[<p><a href="http://tweeaks.com/2009/10/mastering-css-coding-beginner-to-advanced-techniques/"><img class="alignright size-full wp-image-2081" title="css2" src="http://tweeaks.com/wp-content/uploads/2009/10/css2.jpg" alt="Mastering CSS" width="200" height="200" /></a>I recently realized how easy it is to forget the something I once knew how to do very well. CSS was the first thing I learned how to do in web design, since I started getting into coding because of Myspace. It&#8217;s funny I know, but Myspace is the reason for what I now do for a living, but I haven&#8217;t been doing much CSS coding for a the past few months. It isn&#8217;t something I need to do much of at my current job.</p>
<p>Lately I&#8217;ve been modifying the design of Tweeaks.com, which involves doing CSS, and I quickly noticed how much I forgot. To freshen my memory up, and to make my life easier so I don&#8217;t go insane trying to do things I think are right but apparently aren&#8217;t because they don&#8217;t work as they should, I searched for some CSS articles. I found some really great things, some of which I listed here. These are invaluable resources, which have helped me solve the CSS issues I&#8217;ve had the past few weeks now. So I had to share them with other people who might need to refreshen their CSS skills, and anyone else who might be interested to learn CSS.</p>
<h3><a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/" target="_blank"><img class="double_border" title="Mastering CSS" src="http://tweeaks.com/wp-content/uploads/2009/10/css-1.jpg" border="0" alt="Mastering CSS" width="84" height="84" align="middle" /></a><a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/" title="Mastering CSS Coding: Getting Started" target="_blank" rel="bookmark">Mastering CSS Coding: Getting Started</a></h3>
<h3><a href="http://www.smashingmagazine.com/2009/08/03/mastering-css-styling-design-elements/" target="_blank"><img class="double_border" title="Mastering CSS" src="http://tweeaks.com/wp-content/uploads/2009/10/css-3.png" border="0" alt="Mastering CSS" width="84" height="84" align="middle" /></a><a href="http://www.smashingmagazine.com/2009/08/03/mastering-css-styling-design-elements/" title="Mastering CSS, Part 1: Styling Design Elements" target="_blank" rel="bookmark">Mastering CSS: Styling Design Elements</a></h3>
<h3><a href="http://www.smashingmagazine.com/2009/08/10/mastering-css-advanced-techniques-and-tools/" target="_blank"><img class="double_border" title="Mastering CSS" src="http://tweeaks.com/wp-content/uploads/2009/10/css-2.png" border="0" alt="Mastering CSS" width="84" height="84" align="middle" /></a><a href="http://www.smashingmagazine.com/2009/08/10/mastering-css-advanced-techniques-and-tools/" title="Mastering CSS, Part 2: Advanced Techniques and Tools" target="_blank" rel="bookmark">Mastering CSS: Advanced Techniques</a></h3>
<p>With these three articles on <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, you should be able to learn enough to get by when making a website. There is so much more you can do with CSS. Lately, I have been using CSS in a lot of different ways because of some <a href="http://jquery.com">jQuery</a> things I have been making. It is becoming <em>the way</em> to design websites today, and if you still use <a href="http://www.w3schools.com/html/html_tables.asp">tables</a>, <a href="http://tweeaks.com/wp-content/uploads/2009/10/lol-tables.jpg">like these</a>, you are either a Coldfusion developer, or you are <a href="http://www.ironspider.ca/webdesign102/tablesvscss.htm" target="_blank">this guy</a>. I personally prefer <a href="http://en.wikipedia.org/wiki/Tableless_web_design" target="_blank">tableless design</a>, over the use of tables just for the fact that the code is cleaner, more organized, and much more is possible when using div layers. I don&#8217;t care if it&#8217;s considered &quot;<em>cutting-edge web standards</em>&quot; that some people out there might call it. Plus I just really hate tables, which is why I am not a fan of Coldfusion, even though it is part of my job lol.</p>
<p>Hope you enjoyed this post. It has proven to be helpful to me, and I&#8217;m sure you will too.</p>
<p></p>
<h1>Bonus!</h1>
<h3>Additional CSS Resources</h3>
<ul>
<li><a href="http://www.w3.org/TR/CSS2/box.html" target="_blank">W3C Box Model</a></li>
<li><a href="http://htmldog.com/guides/cssbeginner/" target="_blank">HTML Dog: Beginner Tutorial</a></li>
<li><a href="http://htmldog.com/guides/cssintermediate/" target="_blank">HTML Dog: Intermediate Tutorial</a></li>
<li><a href="http://htmldog.com/guides/cssadvanced/" target="_blank">HTML Dog: Advanced Tutorial </a></li>
<li><a href="http://woorkup.com/2009/10/02/css2-visual-cheat-sheet/" target="_blank">Cascading Style Sheet Level 2 Visual Cheat Sheet</a></li>
<li><a href="http://css-tricks.com/all-about-floats/" target="_blank">CSS-Tricks: All About Floats</a></li>
<li><a href="http://htmldog.com/reference/cssproperties/" target="_blank">CSS Properties</a></li>
</ul>
<p><em>Have you ever had a CSS issue, and went insane trying to fix it but was never able to?</em></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/resources/26-ancient-resources-of-2008-rediscovered/" rel="bookmark" class="crp_title">26 Ancient Resources Of 2008 Rediscovered</a></li><li><a href="http://tweeaks.com/coding/jquery/40-jquery-plugins-tutorials-resources-and-tools-of-2009/" rel="bookmark" class="crp_title">40 jQuery Plugins, Tutorials, Resources And Tools Of 2009</a></li><li><a href="http://tweeaks.com/resources/50-css-galleries-for-design-inspiration/" rel="bookmark" class="crp_title">50 CSS Galleries For Design Inspiration</a></li><li><a href="http://tweeaks.com/resources/my-15-favorite-tweets-of-the-week/" rel="bookmark" class="crp_title">Top 15 Best Tweet’s of the Past Week</a></li><li><a href="http://tweeaks.com/resources/10-essential-tools-and-resources-every-designer-needs/" rel="bookmark" class="crp_title">10 Essential Tools And Resources Every Designer Needs</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/coding/css-design/mastering-css-coding-beginner-to-advanced-techniques/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>50 CSS Galleries For Design Inspiration</title>
		<link>http://tweeaks.com/resources/50-css-galleries-for-design-inspiration/</link>
		<comments>http://tweeaks.com/resources/50-css-galleries-for-design-inspiration/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 09:52:47 +0000</pubDate>
		<dc:creator>jaredwilli</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tweeaks.com/?p=1189</guid>
		<description><![CDATA[CSS web galleries are a really useful and important resource for graphic and web designers. They can be great for getting new ideas and inspiration for graphics, web designs, layouts, logos, and basically all things design.

They are also another way to improve search engine optimization and page ranking, by having several incoming links to your site from other notable websites. This is obviously very important for when people search for a keyword, the most relevant <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=70897#3" target="_blank">results that are returned</a> are partly based on the <a href="http://www.google.com/corporate/tech.html" target="_blank">PageRank</a> of certain page. So the more links to your site from sites that aren't considered spam, the better off you are all around.

However, I did not make this list for people interested in submitting their site to CSS Galleries, at least not entirely, because there are a very large number of these types of sites, and manually submitting yours to some or all them would take time, and you might want to consider your options here first before doing so. Outlaw Design Blog <a href="http://www.outlawdesignblog.com/2009/the-css-gallery-list-review/" target="_blank">gives some insight</a> to alternate ways to for getting your site listed on CSS Galeries]]></description>
			<content:encoded><![CDATA[<p>CSS web galleries are a really useful and important resource for graphic and web designers. They can be great for getting new ideas and inspiration for graphics, web designs, layouts, logos, and basically all things design.</p>
<p>They are also another way to improve search engine optimization and page ranking, by having several incoming links to your site from other notable websites. This is obviously very important for when people search for a keyword, the most relevant <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=70897#3" target="_blank">results that are returned</a> are partly based on the <a href="http://www.google.com/corporate/tech.html" target="_blank">PageRank</a> of certain page. So the more links to your site from sites that aren&#8217;t considered spam, the better off you are all around.</p>
<p>However, I did not make this list for people interested in submitting their site to CSS Galleries, at least not entirely, because there are a very large number of these types of sites, and manually submitting yours to some or all them would take time, and you might want to consider your options here first before doing so. Outlaw Design Blog <a href="http://www.outlawdesignblog.com/2009/the-css-gallery-list-review/" target="_blank">gives some insight</a> to alternate ways to for getting your site listed on CSS Galeries.</p>
<p>Although the majority of these sites are listed as a &#8220;CSS Gallery&#8221; or  &#8220;CSS Showcase&#8221; etc., many of them do display flash and html websites as  well, as long as they are inspirational, well designed, and nice clean  looking sites. So really the correct classification for sites like  these should be &#8220;Web 2.0 Gallery&#8221; rather than &#8220;CSS Gallery&#8221;, but they  are still referred to as the CSS Galleries.</p>
<p>So I have made a list of 50 CSS Galleries for your design inspiration, and by no means is this list every website gallery. There are many other sites like these, so if you run a CSS Gallery or know of one that should be listed here, please leave a comment with the link and I will add it up. I just chose these sites at random, and though I could have listed way more than 50, I would be writing this all night if I added more than this, and I am about to go out to a club to dance and be social. So enjoy! <img src='http://tweeaks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>1. <a href="http://www.fantasticss.com/" target="_blank">FantastiCSS</a></h4>
<p align="center"><a href="http://www.fantasticss.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_962.png" border="0" alt="FantastiCSS" /></a></p>
<h4>2. <a href="http://www.thewebbased.com/" target="_blank">TheWebBased</a></h4>
<p align="center"><a href="http://www.thewebbased.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_952.png" border="0" alt="TheWebBased" /></a></p>
<h4>3. <a href="http://cssbrigit.com/" target="_blank">CSS Brigit</a></h4>
<p align="center"><a href="http://cssbrigit.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_972.png" border="0" alt="CSS Brigit" /></a></p>
<h4>4. <a href="http://www.css-showcase.com/" target="_blank">CSS Showcase</a></h4>
<p align="center"><a href="http://www.css-showcase.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_98.png" border="0" alt="CSS Showcase" /></a></p>
<h4>5. <a href="http://www.designbombs.com/" target="_blank">Design Bombs</a></h4>
<p align="center"><a href="http://www.designbombs.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_99.png" border="0" alt="Design Bombs" /></a></p>
<h4>6. <a href="http://rgbland.com/" target="_blank">RGB Land</a></h4>
<p align="center"><a href="http://rgbland.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_100.png" border="0" alt="RGB Land" /></a></p>
<h4>7. <a href="http://cssdeluxe.com/" target="_blank">CSS Deluxe</a></h4>
<p align="center"><a href="http://cssdeluxe.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_149.png" border="0" alt="CSS Deluxe" /></a></p>
<h4>8. <a href="http://css-design-yorkshire.com/" target="_blank">CSS Design Yorkshire</a></h4>
<p align="center"><a href="http://css-design-yorkshire.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_101.png" border="0" alt="CSS Design Yorkshire" /></a></p>
<h4>9. <a href="http://mentalrefugee.com/" target="_blank">Mental Refugee</a></h4>
<p align="center"><a href="http://mentalrefugee.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_102.png" border="0" alt="Mental Refugee" /></a></p>
<h4>10. <a href="http://cssgarden.co.uk/" target="_blank">CSS Garden</a></h4>
<p align="center"><a href="http://cssgarden.co.uk/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_103.png" border="0" alt="CSS Garden" /></a></p>
<h4>11. <a href="http://www.beautiful2.com/" target="_blank">Beautiful 2.0</a></h4>
<p align="center"><a href="http://www.beautiful2.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_104.png" border="0" alt="Beautiful 2.0" /></a></p>
<h4>12. <a href="http://cssillustrated.com/" target="_blank">CSS Illustrated</a></h4>
<p align="center"><a href="http://cssillustrated.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_105.png" border="0" alt="CSS Illustrated" /></a></p>
<h4>13. <a href="http://www.bestcssvault.com/" target="_blank">Best CSS Vault</a></h4>
<p align="center"><a href="http://www.bestcssvault.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_106.png" border="0" alt="Best CSS Vault" /></a></p>
<h4>14. <a href="http://www.divinecss.com/" target="_blank">Divine CSS</a></h4>
<p align="center"><a href="http://www.divinecss.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_107.png" border="0" alt="Divine CSS" /></a></p>
<h4>15. <a href="http://www.cssluxury.com/" target="_blank">CSS Luxury</a></h4>
<p align="center"><a href="http://www.cssluxury.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_108.png" border="0" alt="CSS Luxury" /></a></p>
<h4>16. <a href="http://bestwebgallery.com/" target="_blank">BestWebGallery</a></h4>
<p align="center"><a href="http://bestwebgallery.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_109.png" border="0" alt="BestWebGallery" /></a></p>
<h4>17. <a href="http://www.cssleak.com/" target="_blank">CSS Leak</a></h4>
<p align="center"><a href="http://www.cssleak.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_110.png" border="0" alt="CSS Leak" /></a></p>
<h4>18. <a href="http://www.cssfreshblend.com/" target="_blank">CSS Fresh Blend</a></h4>
<p align="center"><a href="http://www.cssfreshblend.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_111.png" border="0" alt="CSS Fresh Blend" /></a></p>
<h4>19. <a href="http://www.website-gallery.com/" target="_blank">Website Gallery</a></h4>
<p align="center"><a href="http://www.website-gallery.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_112.png" border="0" alt="Website Gallery" /></a></p>
<h4>20. <a href="http://www.thebestdesigns.com/" target="_blank">The Best Designs</a></h4>
<p align="center"><a href="http://www.thebestdesigns.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_113.png" border="0" alt="The Best Designs" /></a></p>
<h4>21. <a href="http://www.unmatchedstyle.com/" target="_blank">Unmatched Style</a></h4>
<p align="center"><a href="http://www.unmatchedstyle.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_114.png" border="0" alt="Unmatched Style" /></a></p>
<h4>22. <a href="http://www.css20.com/" target="_blank">CSS 2.0</a></h4>
<p align="center"><a href="http://www.css20.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_115.png" border="0" alt="CSS 2.0" /></a></p>
<h4>23. <a href="http://procss.com/" target="_blank">Pro CSS</a></h4>
<p align="center"><a href="http://procss.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_116.png" border="0" alt="Pro CSS" /></a></p>
<h4>24. <a href="http://www.cssstyle.me/" target="_blank">CSS Style</a></h4>
<p align="center"><a href="http://www.cssstyle.me/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_117.png" border="0" alt="CSS Style" /></a></p>
<h4>25. <a href="http://www.welovewp.com/" target="_blank">We Love WordPress</a></h4>
<p align="center"><a href="http://www.welovewp.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_118.png" border="0" alt="We Love WordPress" /></a></p>
<h4>26. <a href="http://www.cssorgy.com/" target="_blank">CSS Orgy</a></h4>
<p align="center"><a href="http://www.cssorgy.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_119.png" border="0" alt="CSS Orgy" /></a></p>
<h4>27. <a href="http://blogdesignheroes.com/" target="_blank">Blog Design Heroes</a></h4>
<p align="center"><a href="http://blogdesignheroes.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_120.png" border="0" alt="Blog Design Heroes" /></a></p>
<h4>28. <a href="http://www.cssburst.com/" target="_blank">CSS Burst</a></h4>
<p align="center"><a href="http://www.cssburst.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_121.png" border="0" alt="CSS Burst" /></a></p>
<h4>29. <a href="http://www.thedesigninspiration.com/" target="_blank">The Design Inspiration</a></h4>
<p align="center"><a href="http://www.thedesigninspiration.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_122.png" border="0" alt="The Design Inspiration" /></a></p>
<h4>30. <a href="http://www.101bestwebsites.com/" target="_blank">101 Best Websites</a></h4>
<p align="center"><a href="http://www.101bestwebsites.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_123.png" border="0" alt="101 Best Websites" /></a></p>
<h4>31. <a href="http://www.favedesign.com/" target="_blank">Fave Design</a></h4>
<p align="center"><a href="http://www.favedesign.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_124.png" border="0" alt="Fave Design" /></a></p>
<h4>32. <a href="http://www.blogdesignlab.com/" target="_blank">Blog Design Lap</a></h4>
<p align="center"><a href="http://www.blogdesignlab.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_125.png" border="0" alt="Blog Design Lap" /></a></p>
<h4>33. <a href="http://foralltosee.co.uk/" target="_blank">For All To See</a></h4>
<p align="center"><a href="http://foralltosee.co.uk/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_126.png" border="0" alt="For All To See" /></a></p>
<h4>34. <a href="http://www.cssvote.com/" target="_blank">CSS Vote</a></h4>
<p align="center"><a href="http://www.cssvote.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_127.png" border="0" alt="CSS Vote" /></a></p>
<h4>35. <a href="http://cssline.com/" target="_blank">CSS Line</a></h4>
<p align="center"><a href="http://cssline.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_128.png" border="0" alt="CSS Line" /></a></p>
<h4>36. <a href="http://www.cssdsgn.com/" target="_blank">CSSDsgn</a></h4>
<p align="center"><a href="http://www.cssdsgn.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_129.png" border="0" alt="CSSDsgn" /></a></p>
<h4>37. <a href="http://www.dzinemart.com/" target="_blank">Dzinemart</a></h4>
<p align="center"><a href="http://www.dzinemart.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_130.png" border="0" alt="Dzinemart" /></a></p>
<h4>38. <a href="http://www.styleboost.com/" target="_blank">Styleboost</a></h4>
<p align="center"><a href="http://www.styleboost.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_131.png" border="0" alt="Styleboost" /></a></p>
<h4>39. <a href="http://typeinspire.com/" target="_blank">Type Inspire</a></h4>
<p align="center"><a href="http://typeinspire.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_132.png" border="0" alt="Type Inspire" /></a></p>
<h4>40. <a href="http://www.csscreme.com/" target="_blank">CSS Creme</a></h4>
<p align="center"><a href="http://www.csscreme.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_133.png" border="0" alt="CSS Creme" /></a></p>
<h4>41. <a href="http://www.cssimport.com/" target="_blank">CSS Import</a></h4>
<p align="center"><a href="http://www.cssimport.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_134.png" border="0" alt="CSS Import" /></a></p>
<h4>42. <a href="http://www.css-design.fr/" target="_blank">CSS Design</a></h4>
<p align="center"><a href="http://www.css-design.fr/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_135.png" border="0" alt="CSS Design" /></a></p>
<h4>43. <a href="http://www.dezinspiration.com/" target="_blank">Dezinspiration</a></h4>
<p align="center"><a href="http://www.dezinspiration.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_136.png" border="0" alt="Dezinspiration" /></a></p>
<h4>44. <a href="http://www.colorgorize.com/" target="_blank">Colorgorize</a></h4>
<p align="center"><a href="http://www.colorgorize.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_137.png" border="0" alt="Colorgorize" /></a></p>
<h4>45. <a href="http://www.submitcss.com/" target="_blank">Submit CSS</a></h4>
<p align="center"><a href="http://www.submitcss.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_138.png" border="0" alt="Submit CSS" /></a></p>
<h4>46. <a href="http://www.creativeandlink.com/" target="_blank">Creative and Link</a></h4>
<p align="center"><a href="http://www.creativeandlink.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_141.png" border="0" alt="Creative and Link" /></a></p>
<h4>47. <a href="http://www.csscutie.com/" target="_blank">CSS Cutie</a></h4>
<p align="center"><a href="http://www.csscutie.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_142.png" border="0" alt="CSS Cutie" /></a></p>
<h4>48. <a href="http://www.fluffery.creativefluff.com/category/css-websites">The Fluffery</a></h4>
<p align="center"><a href="http://www.fluffery.creativefluff.com/category/css-websites" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_143.png" border="0" alt="The Fluffery" /></a></p>
<h4>49. <a href="http://www.designfridge.co.uk/" target="_blank">Design Fridge</a></h4>
<p align="center"><a href="http://www.designfridge.co.uk/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_144.png" border="0" alt="Design Fridge" /></a></p>
<h4>50. <a href="http://cssfights.com/" target="_blank">CSS Fights</a></h4>
<p align="center"><a href="http://cssfights.com/" target="_blank"><img src="http://tweeaks.com/wp-content/uploads/2009/08/snap_145.png" border="0" alt="CSS Fights" /></a></p>
<p>Other CSS gallery resources and collections:</p>
<ul>
<li><a href="http://css-tricks.com/examples/WebsiteGalleryRoundup/" target="_blank">The Great Web Design Gallery Roundup</a> &#8211; by CSS Tricks</li>
<li><a title="Permanent Link to 50 Best Sites To Get Design Inspiration" rel="bookmark" href="http://dzineblog.com/2009/05/50-best-sites-to-get-design-inspiration.html" target="_blank">50 Best Sites To Get Design Inspiration</a> &#8211; Dzine Blog</li>
<li><a href="http://vandelaydesign.com/blog/galleries/css/" target="_blank">Ranking 80 of the Top CSS Galleries</a> &#8211; Vandelay Design</li>
<li><a href="http://www.caroline-middlebrook.com/blog/css-galleries-backlinks-traffic/" target="_blank">101 CSS Galleries for Backlinks and Traffic</a> &#8211; Caroline Middlebrook</li>
<li><a href="http://mogdesign.eu/blog/most-useful-css-galleries-sorted-by-google-pr/" target="_blank">Most Useful CSS Galleries Sorted by Google PR &#8211; Webdesign Gallery Week</a></li>
</ul>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://tweeaks.com/design/web-design/wonderful-website-designs-that-inspire-creativity/" rel="bookmark" class="crp_title">40 Wonderful Website Designs That Inspire Creativity</a></li><li><a href="http://tweeaks.com/resources/11-best-free-graffiti-fonts/" rel="bookmark" class="crp_title">11 Of The Best Graffiti Fonts Free To Download</a></li><li><a href="http://tweeaks.com/resources/amazing-c4d-render-packs-for-photoshop/" rel="bookmark" class="crp_title">5 Amazing C4D Render Packs For Photoshop</a></li><li><a href="http://tweeaks.com/coding/css-design/mastering-css-coding-beginner-to-advanced-techniques/" rel="bookmark" class="crp_title">Mastering CSS Coding: Beginner To Advanced Techniques</a></li><li><a href="http://tweeaks.com/resources/5-stunning-fonts-by-dieter-steffmann/" rel="bookmark" class="crp_title">5 Stunning Fonts By Dieter Steffmann</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tweeaks.com/resources/50-css-galleries-for-design-inspiration/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
