<?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>computeraxe</title>
	<atom:link href="http://computeraxe.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://computeraxe.com</link>
	<description>wordpress tips and tricks</description>
	<lastBuildDate>Tue, 31 Jan 2012 07:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Centering Slideshows with jQuery Cycle Plugin</title>
		<link>http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/</link>
		<comments>http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 07:05:30 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=851</guid>
		<description><![CDATA[The jQuery Cycle plugin is a JavaScript plugin that will help you make beautiful slideshows. There are a ton of options for the Cycle plugin to help you make really nice-looking and functional slideshows. This example will show the steps &#8230; <a href="http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The jQuery Cycle plugin is a JavaScript plugin that will help you make beautiful slideshows. There are a ton of <a href="http://www.malsup.com/jquery/cycle/options.html" title="Options for Cycle plugin">options for the Cycle plugin</a> to help you make really nice-looking and functional slideshows. </p>
<p>This example will show the steps to take for centering slides in a slideshow using the Cycle plugin. HTML markup in this case is a group of images inside a &lt;div> container. CSS is used to give some style to our slideshow and for centering everything. JavaScript is used to control the transitions of the slides and the animation of the slideshow.</p>
<p>HTML Markup:</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;showy&quot;&gt;
&lt;img src=&quot;/images/runaway-artist.jpg&quot; alt=&quot;runaway artist&quot; class=&quot;first&quot; /&gt;
&lt;img src=&quot;/images/darling-kittens.jpg&quot; alt=&quot;darling kittens&quot; /&gt;
&lt;img src=&quot;/images/dog-in-sun.jpg&quot; alt=&quot;dog in sun&quot; /&gt;
&lt;img src=&quot;/images/cat-in-tree.jpg&quot; alt=&quot;cat in tree&quot; /&gt;
&lt;/div&gt;</code></pre>
<p>A basic slideshow might have a few images that are cycled through in sequential fashion with random special effects that bring each photo into view. The JavaScript code that could be used with the jQuery Cycle plugin for such a slideshow could be as follows:</p>
<p>JavaScript:</p>
<pre class="crayon-plain-tag"><code>jQuery(document).ready(function($) {
 $('#showy').cycle({
  fx: 'all',
  speed: 800,
  pause: 2000,
  slideExpr: 'img'
 });
});</code></pre>
<p>So far, we&#8217;d get a mess if no CSS rules targeted the slideshow. </p>
<div id="showy">
<img src="/images/runaway-artist.jpg" alt="runaway artist" class="first" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/dog-in-sun.jpg" alt="dog in sun" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" />
</div>
<div class="clear"> </div>
<p>Without <em>at least</em> giving dimensions to the slideshow, via width and height properties, the Cycle plugin will be helpless to show the images correctly. Make sure to add width and height values to the slideshow container in the CSS rules.</p>
<p>Also, you&#8217;ll need to specify the position property. In this case we&#8217;re giving a value of &#8216;relative&#8217;  instead of &#8216;absolute&#8217; for the position property as we want to center the slideshow instead of placing it at some exact location. Without specifying the position of the slideshow container, some of the transition effects won&#8217;t be seen as intended.</p>
<p>The trick to centering the slideshow is to set the margins. Give the right and left margins a string value of &#8216;auto&#8217; to center things horizontally. The top and bottom margins are given a numerical value, 10 px in this case.</p>
<p>CSS:</p>
<pre class="crayon-plain-tag"><code>#showy {
position:relative;
height:300px;
width: 300px;
margin: 10px auto;
}</code></pre>
<p>Using these simple CSS styling rules, we get a more pleasing slideshow experience.</p>
<div id="showy2">
<img src="/images/1.jpg" alt="one" class="first" /><br />
<img src="/images/2.jpg" alt="two" /><br />
<img src="/images/3.jpg" alt="three" /><br />
<img src="/images/4.jpg" alt="four" />
</div>
<div class="clear"> </div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Plugin: jQuery Cycle for Slideshows</title>
		<link>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/</link>
		<comments>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 07:05:27 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=848</guid>
		<description><![CDATA[JavaScript plugins can definitely speed up development of a website, but unless you take the time to explore the plugins you&#8217;re using, you may not be using them to full advantage. Read on to learn more about using the jQuery &#8230; <a href="http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>JavaScript plugins can definitely speed up development of a website, but unless you take the time to explore the plugins you&#8217;re using, you may not be using them to full advantage. Read on to learn more about using the <a href="http://www.malsup.com/jquery/cycle/" title="jQuery Cycle plugin for slideshows">jQuery Cycle plugin</a> for slideshows. It works with jQuery v1.3.2 and later.</p>
<div id="show3">
<img src="/images/cat-in-snow.jpg" alt="cat in snow" class="first" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/baby-sixtoes.jpg" alt="baby sixtoes" />
</div>
<div class="clear">&nbsp;</div>
<p>The jQuery Cycle Plugin offers an amazing number of transitions for your next slideshow. If any of the two dozen transitions don&#8217;t give the effect you&#8217;re looking for, the plugin can always be modified to suit. If you&#8217;re looking to make some unique transitions, check out the advanced demos on the plugin site.</p>
<p>Over 50 options can be implemented to show your slides in the best light. Options are available for controlling the speed of the transitions, the length of time between slides, as well as running the slideshow backwards or stopping after a certain number of slides have been shown. </p>
<p>Slides can be forced to fit a container and made to be manually paused and resumed. Easing transitions can be specified as can random showing of slides. <a href="http://www.malsup.com/jquery/cycle/options.html" title="Options for Cycle plugin">Options in Cycle</a> are plentiful and definitely worth investigating.</p>
<p>Command strings can be used to pause or resume the slideshow or advance to the next or previous slides. Tie these commands to a click event to let your visitors see the show as they wish.</p>
<p>The Cycle plugin works with two assumptions in creating slideshows. First, it assumes that a container object has been identified, usually via a class or id identifier, that will contain the slides for the slideshow. All children of the containing parent will become a slide.</p>
<p>Second, the slides must all be children of the container. Any object can be a child here, so textual content, images, anchors and divs can all be manipulated and viewed as slides in your slideshow. Don&#8217;t put anything else in the slideshow container unless you want it to become part of the slideshow.</p>
<p>Here&#8217;s the HTML markup that could be used for a simple slideshow of images:</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;show&quot;&gt;
&lt;img src=&quot;../images/pic1.jpg&quot; alt=&quot;one&quot; /&gt;
&lt;img src=&quot;../images/pic2.jpg&quot; alt=&quot;two&quot; /&gt;
&lt;img src=&quot;../images/pic3.jpg&quot; alt=&quot;three&quot; /&gt;
&lt;img src=&quot;../images/pic4.jpg&quot; alt=&quot;four&quot; /&gt;
&lt;img src=&quot;../images/pic5.jpg&quot; alt=&quot;five&quot; /&gt;
&lt;/div&gt;</code></pre>
<p>The images are contained in a specific container, div#show, which can be styled with CSS. Giving the container and the slides fixed dimensions works best, so make sure to specify the widths and heights.</p>
<p>The default behavior is to fade slides in and out of the container in a continuous and sequential manner, in a cyclical way. So, we&#8217;re going to &#8216;cycle&#8217; through the slides in this slideshow. The javascript for a slideshow using default behavior is simple:</p>
<pre class="crayon-plain-tag"><code>$('#show').cycle();</code></pre>
<p>With Cycle plugin default settings the slideshow starts with the first image or slide and each slide takes one second, or 1000 milliseconds, to be faded in. Each slide is then paused for 4 seconds and then faded out in one second. The slideshow wraps around so that the first slide will be shown after the last one. The fading in and out action occurs continuously and indefinitely with the default settings, as below:</p>
<div id="show">
<img src="/images/cat-in-snow.jpg" alt="cat in snow" class="first" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/baby-sixtoes.jpg" alt="baby sixtoes" />
</div>
<div class="clear">&nbsp;</div>
<p>To alter the slideshow behavior pass an effect, other than fade, as a string to the cycle method, like so:</p>
<pre class="crayon-plain-tag"><code>$('#show2').cycle('shuffle');</code></pre>
<p>Check out all the effects that can be used to transition slides: blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, shuffle, slideX, slideY, toss, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, and zoom.</p>
<p>Several transitions can be combined in a comma-separated list if you can&#8217;t choose just one. Or, use the string &#8216;all&#8217; to see all the slide transition effects in a random manner.</p>
<p>Alternatively, you can use an options object to set the <em>fx</em> option among others. The code below specifies fade, zoom and curtainY effects to bring the slides in and out of the container. Each slide will be brought in slowly (800 ms) and taken out quickly (400 ms) taking a total of 3 seconds for each complete transition. This is the code for the slideshow (#show3) at the top of this post.</p>
<pre class="crayon-plain-tag"><code>$('#show3').cycle({
  fx: 'fade,zoom,curtainY',
    speedIn: 800,
    speedOut: 400,
    slideExpr: 'img'
    timeout: 3000,
    nowrap: true
});</code></pre>
<p>The parameter <em>slideExpr</em> is given a string value of &#8216;img&#8217; in order to produce a slideshow without <a href="http://jquery.malsup.com/cycle/slideExpr.html" title="Blank pauses between slides in WordPress">long blank pauses in between slides</a> when using WordPress. WordPress and other content management systems may introduce extraneous markup when preparing webpages. The markup may be incorrectly interpreted by different browsers used to view slideshows created with Cycle, so it&#8217;s become important to specify the elements that are supposed to be cycled in the slideshow. Thus, the addition of <em>slideExpr: &#8216;img&#8217;</em> as an optional parameter is necessary for image slideshows in WordPress.</p>
<p>The slideshow just above will be shown only one time and end with the last slide because the nowrap option is set to true. This might be a good thing to remember for leaving a textual message on the screen with your last slide instead of having the slideshow run indefinitely.</p>
<p>If you get stuck or need a little help with figuring out how to work the Cycle plugin, visit the <a href="http://forum.jquery.com/" title="jQuery forum">jQuery Forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Stop Action Improves InnerFade Plugin</title>
		<link>http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/</link>
		<comments>http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 07:05:11 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=844</guid>
		<description><![CDATA[When animations go wrong it&#8217;s usually in the timing. Perhaps the browser can&#8217;t keep up with all that it&#8217;s asked to do or the operating system is bogged down by other tasks. In any case the lack of enough working &#8230; <a href="http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When animations go wrong it&#8217;s usually in the timing. Perhaps the browser can&#8217;t keep up with all that it&#8217;s asked to do or the operating system is bogged down by other tasks. In any case the lack of enough working memory or CPU cycles will have animations stacking up until there are enough resources to do all those fancy moves.</p>
<p>Some animations run continuously and others may be controlled by setting timers or stopping the animations at predetermined times. Other animations happen after some event has occurred, like when a user mouses over an element on the page or clicks a button.</p>
<p>Animations created with the jQuery <a href="http://medienfreunde.com/lab/innerfade/" title="InnerFade jQuery Plugin">InnerFade plugin</a> run continuously, which may create a problem if the users&#8217; computer resources aren&#8217;t up to the job.</p>
<p>It was noted that an <a href="http://computeraxe.com/javascript-plugin-innerfade-with-jquery/" title="Using jQuery InnerFade plugin for news tickers.">InnerFade news ticker</a> animation of links worked fine and as expected when the browser tab was left open and running. Working with another tab open and going back to the news ticker site, the news items got stacked onto one another so that the text was unreadable and the timing was double time.</p>
<p>Reloading the page or waiting for a couple of seconds to pass brought the expected behavior back. The animations caught up to where they should have been and the behavior continued as expected.</p>
<p>I&#8217;m not exactly sure why the animations stacked up in my page and not in the demo page by the plugin author, but I found a solution to this stacking problem.</p>
<p>jQuery lets us use a <strong>stop()</strong> action to clear the previously requested animations that haven&#8217;t finished yet. Optional parameters for the stop() action are <em>clearQueue</em> and <em>gotoEnd</em>, which are false by default.</p>
<p>To use the stop() action in this case, set both parameters to true. This will clear all animations in the queue and jump to the place where the action should be at now.</p>
<p>If it were important to catch up to the latest animation, use true for the optional <em>gotoEnd</em> parameter. When set to true, the <em>gotoEnd</em> parameter figures out what the screen should look like at the end of the present set of animations in the queue and goes there.</p>
<p>In the section of the code that responds to the slide or fade settings, I used the stop() action to clear the queue and catch up. The InnerFade plugin was altered on lines 93 and 96 (of the original script) by inserting <strong>.stop(true,true)</strong> just before the fadeOut() or slideUp() methods.</p>
<pre class="crayon-plain-tag"><code>line 93...$(elements[last]).stop(true,true).slideUp(settings.speed);
line 96...$(elements[last]).stop(true,true).fadeOut(settings.speed);</code></pre>
<p>Below is the portion of the original script that has been modified (on lines 3 and 6 here):</p>
<pre class="crayon-plain-tag"><code>$.innerfade.next = function(elements, settings, current, last) {
        if (settings.animationtype == 'slide') {
            $(elements[last]).stop(true,true).slideUp(settings.speed);
            $(elements[current]).slideDown(settings.speed);
        } else if (settings.animationtype == 'fade') {
            $(elements[last]).stop(true,true).fadeOut(settings.speed);
            $(elements[current]).fadeIn(settings.speed, function() {
							removeFilter($(this)[0]);
						});</code></pre>
<p>The script now works even better!</p>
<p>When two separate link lists were animated with the InnerFade plugin on the same page, the first one stacked up and the second list went blank when the stop() action was used with only the first parameter set to true, so it was important to set both the <em>clearQueue</em> and <em>gotoEnd</em> parameters to true.</p>
<p>The stop() action also comes in handy to clear the queue when event-driven animations get backed up from too much user input, like mousing over and out too fast.</p>
<p>An oddity in all this is that I couldn&#8217;t replicate the bad behavior (of the original plugin) inside of WordPress. The stacking up of animations was noticed in a static page outside of WordPress. To see the original and improved InnerFade plugins in action, go to the <a href="http://www.computeraxe.com/good_ideas.php" title="Good Ideas for a Healthy Universe!">Good Ideas</a> static page.</p>
<p>Is there some way that WordPress manages the scripts differently? I dunno, but the take away message here is to make sure and test your scripts to see how they act in various circumstances.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Plugin: InnerFade with jQuery</title>
		<link>http://computeraxe.com/javascript-plugin-innerfade-with-jquery/</link>
		<comments>http://computeraxe.com/javascript-plugin-innerfade-with-jquery/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 07:05:03 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[newsticker]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=828</guid>
		<description><![CDATA[Fade elements in and out with the InnerFade javascript plugin. Its purpose is to fade &#8220;any element inside a container in and out&#8221; and it relies on jQuery to do its magic. InnerFade is a lightweight plugin of only 8 &#8230; <a href="http://computeraxe.com/javascript-plugin-innerfade-with-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Fade elements in and out with the <a href="http://medienfreunde.com/lab/innerfade" title="InnerFade jQuery Plugin">InnerFade javascript plugin</a>. Its purpose is to fade &#8220;any element inside a container in and out&#8221; and it relies on jQuery to do its magic. InnerFade is a lightweight plugin of only 8 kb, so it won&#8217;t bog down your pages.</p>
<p>Any group of elements can be faded in and out with the InnerFade plugin as long as they are inside a container that is targeted by the first line of the script. Example elements that can be faded in and out are links in an unordered or ordered list, textual list items, or paragraphs in a div.</p>
<ul id="good_ideas">
<li>A. Eat Right &#8211; It&#8217;s the easiest medicine to take.</li>
<li>B. Buy Less Stuff &#8211; You don&#8217;t really need it, do you?</li>
<li>C. Recycle Everything &#8211; Save the Earth from humans.</li>
<li>D. Laugh Every Day &#8211; It helps to keep things in perspective.</li>
<li>E. Help One Another &#8211; Some day you&#8217;ll need a little help, so spread good karma.</li>
<li>F. Keep Smiling &#8211; It releases happy endorphins and makes you look great, too!</li>
</ul>
<div class="clear">&nbsp;</div>
<p>Target specific classes or ids for the right effect. Using the InnerFade plugin with jQuery is a simple way to show a countdown clock where one number fades out and the next one in the sequence fades in.</p>
<p>A news ticker, like the one above, can be created by fading in and out headlines for each news item. Each headline could be a link to the complete story. The headlines could be marked up as list items, like this list of good ideas:</p>
<pre class="crayon-plain-tag"><code>&lt;ul id=&quot;good_ideas&quot;&gt;
&lt;li&gt;A. Eat Right - It's the easiest medicine to take.&lt;/li&gt;
&lt;li&gt;B. Buy Less Stuff - You don't really need it, do you?&lt;/li&gt;
&lt;li&gt;C. Recycle Everything - Save the Earth from humans.&lt;/li&gt;
&lt;li&gt;D. Laugh Every Day - It helps to keep things in perspective.&lt;/li&gt;
&lt;li&gt;E. Help One Another - Some day you'll need a little help, so spread good karma.&lt;/li&gt;
&lt;li&gt;F. Keep Smiling - It releases happy endorphins and makes you look great, too!&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<p>The easiest way to use the InnerFade plug is to accept the default settings, as we did above, and call it with a minimum of effort like so:</p>
<pre class="crayon-plain-tag"><code>jQuery(document).ready(function($) {
    $('#good_ideas').innerfade();
  });</code></pre>
<p>There are only a handful of options and changing them is fairly simple. The type of animation can be set to &#8216;fade&#8217; or &#8216;slide&#8217;. The speed of the fading or sliding effects is set in milliseconds or with the strings &#8216;slow&#8217;, &#8216;normal&#8217;, or &#8216;fast&#8217;. Timeout is the time between animations in milliseconds. The type of slideshow is set using the strings &#8216;sequence&#8217;, &#8216;random&#8217;, or &#8216;random_start&#8217;. The height of the container element can be set in px, em, %.</p>
<p>Default Settings:</p>
<pre class="crayon-plain-tag"><code>animationtype: fade
speed: normal
timeout: 2000
type: sequence
containerheight: auto
runningclass: innerfade</code></pre>
<p>Now that you know you can call the javascript plugin and use it with the default settings, try changing the settings for different effects. For example, try sliding the elements slowly in and out of the 45px tall container in random order with a 3 second pause.</p>
<pre class="crayon-plain-tag"><code>$(document).ready(
  function() {
    $('.group2fade').innerfade({
      animationtype: slide,
      speed: 'slow',
      timeout: 3000,
      type: 'random',
      containerheight: '45px'
    });
  }
);</code></pre>
<p>The InnerFade plugin handles all the hiding of elements until viewed, so without javascript enabled, the visitor will see everything on the page. Use a &lt;noscript&gt; method to offer alternative content to browsers with javascript turned off and put it in the html document just before the closing body tag.</p>
<p>InnerFade plugin can be used for simple slideshows too. The only caveat is to make sure images are of the same size or the bottom edges of larger pics will be seen behind the stack of images.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/javascript-plugin-innerfade-with-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Generate Animated Loading&#8230; Images</title>
		<link>http://computeraxe.com/generate-animated-loading-images/</link>
		<comments>http://computeraxe.com/generate-animated-loading-images/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 07:04:15 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=792</guid>
		<description><![CDATA[We&#8217;ve all seen animated images on the screen as a video or slideshow is being downloaded and set up for us to view. Sometimes the word &#8220;loading&#8230;&#8221; is the animation itself. Sometimes there&#8217;s a horizontal bar or spinning world that &#8230; <a href="http://computeraxe.com/generate-animated-loading-images/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all seen animated images on the screen as a video or slideshow is being downloaded and set up for us to view. Sometimes the word &#8220;loading&#8230;&#8221; is the animation itself. Sometimes there&#8217;s a horizontal bar or spinning world that alerts us to wait for the media to be loaded.</p>
<p>A few websites provide a way to generate your own animated loading image. They&#8217;re online and they&#8217;re free. If you&#8217;re tired of the same old circular or horizontal animated images, give the following sites a try.</p>
<h3><a href="http://preloaders.net/" title="Best animated image generator.">Preloaders.net</a></h3>
<p>It&#8217;s easy to generate a multitude of preloader images at preloaders.net, which is by far the most complete animated image generator available. All you do is choose the category of preloaders that you like and then select one preloader image from the spin box. From there you can alter several parameters of the image. </p>
<p>Several categories of preloaders differentiate preloaders.net from its competition, including three-dimensional, astronomy, people, religion signs, rectangular, smileys, social bookmarks, and zodiac signs.</p>
<p>You can choose between a GIF and an APNG image. Specify any color for the foreground and background colors or select a transparent background. Here&#8217;s an example animated clock made at preloaders.net: <a href="http://computeraxe.com/wp-content/uploads/2011/12/32.png"><img src="http://computeraxe.com/wp-content/uploads/2011/12/32.png" alt="animated 3d clock" title="3D Clock Animated" width="24" height="24" class="size-full wp-image-794" /></a></p>
<p>A slider lets you change the animation speed from slow to very fast. The slowest speed wasn&#8217;t quite slow enough and the fastest speed was way too fast, at least for my liking. </p>
<p>The dimensions of the preloader image can be specified as width and height values. A tick can be removed from the &#8220;constrain proportions&#8221; box to introduce some interesting effects to the animation. Advanced options include means to flip the image, reverse the animation, and inverse the colors.</p>
<h3><a href="http://www.loadinfo.net/" title="Create animated images.">LoadInfo.net</a></h3>
<p>Loadinfo.net offers a variety of circular, clock-like and spinning images. The foreground and background colors can be any color you choose and the background could be transparent, too. Select one of the three thumbnail sizes (16&#215;16, 24&#215;24, 48&#215;48) for your image and click on &#8216;generate&#8217; to create it. <a href="http://computeraxe.com/wp-content/uploads/2011/12/loadinfo.net_.gif"><img src="http://computeraxe.com/wp-content/uploads/2011/12/loadinfo.net_.gif" alt="animated ying-yang symbol" title="Ying Yang Animated" width="16" height="16" class="size-full wp-image-799" /></a> If you like the image as presented on the screen, download the free image. GIFs created there did not have transparent backgrounds when I tried it, even though the &#8216;transparent&#8217; feature was selected. The spinning ying-yang symbol seen here was given a white background for a little fake transparency.</p>
<h3><a href="http://www.ajaxload.info/" title="Simple animated spinners.">ajaxload.info</a></h3>
<p>Ajaxload.info provides a standard set of clocks, bars and flowers that can be modified with respect to foreground and background color. <a href="http://computeraxe.com/wp-content/uploads/2011/12/ajax-loader.gif"><img src="http://computeraxe.com/wp-content/uploads/2011/12/ajax-loader.gif" alt="animated blue flower" title="Blue Spinning Flower" width="28" height="28" class="size-full wp-image-800" /></a> You&#8217;re stuck with the speed of the animation and the size of the image, but the background can be transparent. That&#8217;s not too many options, but sometimes a simple loading image is all that&#8217;s needed.</p>
<h3><a href="http://loadingapng.com/" title="Make an animated PNG.">LoadingAPNG.com</a></h3>
<p>LoadingAPNG is a free online animation generator that offers a few dozen circular and horizontal bar type of animated PNG. The foreground and background colors, width, height and transparency can be modified to suit. <a href="http://computeraxe.com/wp-content/uploads/2012/01/134.png"><img src="http://computeraxe.com/wp-content/uploads/2012/01/134.png" alt="hearts horizontal bar animated" title="Animated Hearts Bar" width="160" height="20" class="size-full wp-image-814" /></a></p>
<h3><a href="http://www.chimply.com/Generator" title="Generate animated images.">Chimply.com</a></h3>
<p>Chimply offers several clocks or spinners and animated bars that you can modify with respect to colors, transparency and size. Unique to this free online image generator is that several images can be created and temporarily stored in a workspace on the website before wrapping them in a .zip file for easy download. <a href="http://computeraxe.com/wp-content/uploads/2012/01/image_173004.gif"><img src="http://computeraxe.com/wp-content/uploads/2012/01/image_173004.gif" alt="animated spinning clock" title="Spinning Clock" width="24" height="24" class="size-full wp-image-803" /></a> If you click on &#8220;Last generated images&#8221; near the bottom of the screen, you can see the images that other users have created. GIFs and SWFs can be downloaded.</p>
<h3><a href="http://cssload.net/" title="Animate images with CSS.">CSSload.net</a></h3>
<p>Timur Gafforov figured out how to present an animated image using pure CSS. Once HTML5 and CSS3 are more widely accepted and used by browsers everywhere, cssload.net is a source to remember. At the time of this writing CSS3 usage is in its infancy, so for now we&#8217;ll rely on small animated GIFs or APNG images to indicate that media is <strong>Loading&#8230;</strong>.</p>
<h3><a href="http://heartcode.robertpataki.com/canvasloader/" title="JavaScript CanvasLoader">CanvasLoader.js</a></h3>
<p>Another way to show animated images on your site is to use pure javascript via CanvasLoader. Use the CanvasLoader Creator to build a script that will create your animated image on the fly. It&#8217;s a clock-like oval, spiral, square, rectangle or rounded rectangle that spins around in this animated image. Set the image diameter, density, range, frames per second, speed, and colors. Then, copy the code snippet to create a new CanvasLoader object using javascript.</p>
<p>Make sure to download the CanvasLoader UI library. The minified .js file is less than 6 kb. The custom snippet to produce an animated image is only 8 lines long.</p>
<p>Well, there we have seven sites that can help us make our websites stand out from the crowd. Take caution though, some of these animated images bring back visions of the early Internet, when scrolling marquees were thought to be cool. It&#8217;s best to avoid wacky-looking spinning objects unless they suit the style of your site. If you have a game site, maybe a twirling hat or an animated string of cats is appropriate for a loading image. For a more professional look stick to the more common horizontal bars, clocks or circular moving images and modify the colors to match your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/generate-animated-loading-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Plugin Tips: ColorBox</title>
		<link>http://computeraxe.com/jquery-plugin-tips-colorbox/</link>
		<comments>http://computeraxe.com/jquery-plugin-tips-colorbox/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 07:02:17 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=771</guid>
		<description><![CDATA[ColorBox is described as &#8220;A lightweight customizable lightbox plugin for jQuery 1.3+&#8221;. As of this writing the ColorBox jQuery plugin is being actively supported as Version 1.3.19 was issued on 8 Dec 2011. It&#8217;s an open source work released with &#8230; <a href="http://computeraxe.com/jquery-plugin-tips-colorbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>ColorBox is described as &#8220;A lightweight customizable lightbox plugin for jQuery 1.3+&#8221;. As of this writing the <a href="http://jacklmoore.com/colorbox/" title="jquery plugin colorbox">ColorBox jQuery plugin</a> is being actively supported as Version 1.3.19 was issued on 8 Dec 2011. It&#8217;s an open source work released with the MIT license and it&#8217;s one of the top ten jQuery plugins used around the world.</p>
<p>To use ColorBox first download the plugin, unpack the .zip file, and inspect the example directories. The index page in each example folder presents a series of links to slideshows with different features, such as elastic transitions, fade transitions, or using other content types. The colorbox directory contains a minified .js file and a non-minified JScript file.</p>
<p>ColorBox requires that its stylesheet be included in the &lt;head&gt; before its javascript source, which must be included after the javascript library. In the head of an HTML page call colorbox.css, jQuery library, and then any jQuery plugins — <em>in that order</em>. If you don&#8217;t call jquery.js before the plugin, nothing happens on the page where you&#8217;re wanting to view a lightbox or slideshow. You&#8217;ll see a &#8220;jQuery is not defined&#8221; error if you&#8217;re using  the <a href="http://getfirebug.com/" title="Firebug is a great development tool.">Firebug development tool</a>.</p>
<p>We want the webpage to be fully constructed before running any scripts, so put &lt;script&gt;s near the end of the HTML, just before the closing body tag, &lt;/body&gt;. That way, when elements are called for in the script, they will already be present.</p>
<p>You don&#8217;t want the scripts near the top of the document because of the way a web page is constructed. HTML is parsed by the browser until it comes across a script. When a script is encountered the parsing is paused and the script is then executed. If a script precedes the elements that it calls for, the script won&#8217;t work as intended.</p>
<p>Alternatively, the script could be wrapped in a ready() method like so:</p><pre class="crayon-plain-tag"><code>$(document).ready(function() {
  .
  .
  (script goes here)
  .
  .
});</code></pre>
<p>Using the ready() function assures that the DOM is completely constructed before modifying it with the script.</p>
<p>ColorBox works on any jQuery selectable object. It&#8217;s a simple matter to create a slideshow by grouping images with the &#8220;rel&#8221; attribute or with a common class name, like so:</p><pre class="crayon-plain-tag"><code>&lt;a class=&quot;group1&quot; href=&quot;../image1.jpg&quot; title=&quot;Caption 1 for image 1.&quot;&gt;Photo 1&lt;/a&gt;
&lt;a class=&quot;group1&quot; href=&quot;../image2.jpg&quot; title=&quot;Caption 2 for image 2.&quot;&gt;Photo 2&lt;/a&gt;
&lt;a class=&quot;group1&quot; href=&quot;../image3.jpg&quot; title=&quot;Caption 3 for image 3.&quot;&gt;Photo 3&lt;/a&gt;</code></pre>
<p>A simple, one-line script is all that&#8217;s needed to create a slideshow from the images grouped by their common class name, in this case .group1.</p><pre class="crayon-plain-tag"><code>&lt;script&gt;
    jQuery('a.group1').colorbox();
&lt;/script&gt;</code></pre><p>When the image link is clicked this script will center each image in a lightbox and shadow the rest of the page behind the image. Clicking on the page, or close button, will bring back the page as it was before clicking on the image.</p>
<p>To create a slideshow complete with previous, next and close buttons, add &#8216;rel=group1&#8242; as a css key:value pair inside curly braces in the parentheses for the colorbox function.</p><pre class="crayon-plain-tag"><code>&lt;script&gt;
    $(document).ready(function() {
      $('a.group1').colorbox({rel:'group1'});
    });
&lt;/script&gt;</code></pre><p>Any number of key:value pairs can be added here to make your slideshow really stand out.</p>
<p>Other content types can be used with ColorBox, like HTML, Flash, video, or external webpages. Of course, that means you can let your imagination run wild and use ColorBox to your advantage in creating beautifully modern websites.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/jquery-plugin-tips-colorbox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Most Popular jQuery Plugins</title>
		<link>http://computeraxe.com/most-popular-jquery-plugins/</link>
		<comments>http://computeraxe.com/most-popular-jquery-plugins/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 20:33:12 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=767</guid>
		<description><![CDATA[jQuery is one of the most popular JavaScript libraries in use on the Internet today. Over 50% of the top 10,000 websites rely on it, as do 30% of the top million sites, according to gary at BuiltWith. JavaScript functionality &#8230; <a href="http://computeraxe.com/most-popular-jquery-plugins/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>jQuery is one of the most popular JavaScript libraries in use on the Internet today. Over 50% of the top 10,000 websites rely on it, as do 30% of the top million sites, according to <a href="http://blog.builtwith.com/2011/10/31/jquery-version-and-usage-report/" title="jQuery in use on the Net">gary at BuiltWith</a>.</p>
<p>JavaScript functionality is extended with the jQuery library which is in turn extended via plugins. There are thousands of plugins to choose from depending on the functionality that&#8217;s required. The most popular plugins are well written, ready for the masses, secure, and really useful with a minimum of work.</p>
<p>The top ten most popular jQuery plugins are listed below with the approximate percentage of the top sites using them.</p>
<ul>
<li>UI ~30%</li>
<li>Form ~20%</li>
<li>Cycle ~20%</li>
<li>Tools ~5%</li>
<li>Easing ~5%</li>
<li>Cookie ~5%</li>
<li>PrettyPhoto ~5%</li>
<li>ColorBox ~5%</li>
<li>Bgiframe ~5%</li>
<li>Validate ~5%</li>
</ul>
<p>Enhance your skills as a developer by becoming familiar with these jQuery plugins.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/most-popular-jquery-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SitePoint Books On Sale</title>
		<link>http://computeraxe.com/sitepoint-books-on-sale/</link>
		<comments>http://computeraxe.com/sitepoint-books-on-sale/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 16:29:55 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=761</guid>
		<description><![CDATA[If you&#8217;re interested in expanding your mind over the holidays, check out SitePoint&#8217;s Christmas Countdown 2011. Yesterday I picked up three PDFs for less than half of the regular price of just one hard copy book. Each day there will &#8230; <a href="http://computeraxe.com/sitepoint-books-on-sale/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re interested in expanding your mind over the holidays, check out <a href="http://www.sitepoint.com/sale/" title="Get new books cheap!">SitePoint&#8217;s Christmas Countdown 2011</a>.</p>
<p>Yesterday I picked up three PDFs for less than half of the regular price of just one hard copy book. Each day there will be a different deal, so make sure to check back daily for the titles that may interest you. Subjects include ASP.net, CSS, HTML, JavaScript, Linux, PHP, MySQL, Photoshop, Ruby on Rails and more.</p>
<p>I already own half a dozen SitePoint titles in hard-copy format and thought to give the electronic formats a whirl. I&#8217;m reading the PDF versions of my books, but you may like to use the EPUB or MOBI format that is also in the downloadable epacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/sitepoint-books-on-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Caching in Firefox for Faster Web Sites</title>
		<link>http://computeraxe.com/enable-caching-in-firefox-for-faster-web-sites/</link>
		<comments>http://computeraxe.com/enable-caching-in-firefox-for-faster-web-sites/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 08:27:57 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=704</guid>
		<description><![CDATA[Using an .htaccess file to specify that images should be cached is one way to speed up the time it takes for your web pages to appear. Those of us still using older browsers will thank you for using an &#8230; <a href="http://computeraxe.com/enable-caching-in-firefox-for-faster-web-sites/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using an <code>.htaccess</code> file to specify that images should be cached is one way to speed up the time it takes for your web pages to appear. Those of us still using older browsers will thank you for using an <a href="http://computeraxe.com/how-to-download-a-header-image-just-once/" title="htaccess with expire header">Expires Header in <code>.htaccess</code></a> to manage caching.</p>
<p>Yet another good reason to upgrade your browser is to take advantage of newer features. Caching of images and other often-used files can be controlled by your browser.</p>
<p>IE 9 apparently has caching defaulted to ON. Firefox 5 does not. </p>
<p>Here&#8217;s how to enable caching in Firefox.</p>
<ul>
<li>Type &#8220;about:config&#8221; in the address bar and hit enter.</li>
<li>Accept the warning by clicking on the &#8220;I&#8217;ll be careful, I promise!&#8221; button.</li>
<li>Scroll down to &#8216;browser.cache.disk.enable&#8217; and double click. You will see the value in the fourth column toggle from false to true, if caching was not enabled already.</li>
<li>Scroll down to &#8216;browser.cache.memory.enable&#8217; and double click to enable by setting it to true.</li>
</ul>
<p>That&#8217;s it! The performance of your Firefox browser will speed up, noticeably so. After enabling caching, the time to download pages from a client&#8217;s site went from 6-10 seconds to 2-3 seconds!</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/enable-caching-in-firefox-for-faster-web-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Download A Header Image Just Once</title>
		<link>http://computeraxe.com/how-to-download-a-header-image-just-once/</link>
		<comments>http://computeraxe.com/how-to-download-a-header-image-just-once/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 19:27:30 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=699</guid>
		<description><![CDATA[While checking links on a client&#8217;s re-vamped web site, I noticed that the header image would be re-loaded for each page visited on the site. I&#8217;d forgotten to set the .htaccess file with an Expires Header to ensure that the &#8230; <a href="http://computeraxe.com/how-to-download-a-header-image-just-once/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While checking links on a client&#8217;s re-vamped web site, I noticed that the header image would be re-loaded for each page visited on the site. I&#8217;d forgotten to set the <code>.htaccess</code> file with an Expires Header to ensure that the images would be downloaded just one time by a site visitor.</p>
<p>Making the content appear quickly in front of site visitors should be a goal for all site developers. And besides, reducing the load on your server is always a good idea, don&#8217;t you think? </p>
<p>To cache a header image, or other images for that matter, or to make sure that files aren&#8217;t downloaded too often, use an Expires Header in your <code>.htaccess</code> file.</p>
<blockquote><p><code>#Expire Header<br />
&lt;FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$"&gt;<br />
ExpiresDefault "access plus 2 months"<br />
&lt;/FilesMatch&gt;</code></p></blockquote>
<p>Note that all types of image files, as well as stylesheets, javascript, flash and other file types, can be cached with this Expire Header. </p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/how-to-download-a-header-image-just-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

