<?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>Pixel Art &#187; Tutorials</title>
	<atom:link href="http://www.thepixelart.com/category/web/tutorials-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thepixelart.com</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 12:23:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Displaying Random Images in Wordpress</title>
		<link>http://www.thepixelart.com/displaying-random-images-wordpress/</link>
		<comments>http://www.thepixelart.com/displaying-random-images-wordpress/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:07:09 +0000</pubDate>
		<dc:creator>Vailancio Rodrigues</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cms hacks]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image rotator]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[post hacks]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[random image]]></category>
		<category><![CDATA[random image php]]></category>
		<category><![CDATA[random image script]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thepixelart.com/?p=215</guid>
		<description><![CDATA[Small code snippet that will allow you to display random images, every time the page loads.]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.thepixelart.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/215.jpg&amp;w=132&amp;h=132&amp;zc=1&amp;ft=jpg' alt="Displaying Random Images in Wordpress"  title="Displaying Random Images in Wordpress screenshot" /></p>
<p>Small code snippet that will allow you to display random images, every time the page loads. Major advantage of using it is that you no longer have to make use of scripts (JavaScript) which can be bulky, especially on the older browsers. Though  we have used this code with images only, it can be easily used for any other object to be displayed in random order. It’s more of PHP than Wordpress.</p>
<p><span id="more-215"></span></p>
<h2>Code</h2>
<p>Place this code anywhere in your Wordpress template – header, footer, etc, with appropriate changes to CSS.</p>
<pre class="brush: xml;">
&lt;div id=&quot;image&lt;?php echo rand(1,4); ?&gt;&quot;&gt;&lt;/div&gt;
 </pre>
<p>Change (1,4) depending upon the number of images.</p>
<h2>CSS</h2>
<p>Add this CSS code to the Wordpress template CSS file.</p>
<pre class="brush: css;">
#image1 {
background:url(img/image1.jpg);
width:500px;
height:100px;
}
#image2 {
background:url(img/image2.jpg);
width:500px;
height:100px;
}
#image3 {
background:url(img/image3.jpg);
width:500px;
height:100px;
}
#image4 {
background:url(img/image4.jpg);
width:500px;
height:100px;
}
 </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thepixelart.com/displaying-random-images-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Typing Text Effect using jQuery</title>
		<link>http://www.thepixelart.com/create-a-typing-text-effect-using-jquery/</link>
		<comments>http://www.thepixelart.com/create-a-typing-text-effect-using-jquery/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 12:20:04 +0000</pubDate>
		<dc:creator>Vailancio Rodrigues</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jTicker]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sourcecode]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[ticker]]></category>

		<guid isPermaLink="false">http://www.thepixelart.com/?p=3</guid>
		<description><![CDATA[You must have seen typing text Effect on many flash websites. jTicker jQuery plugin  can used for such effect with the use of flash. This effect comes in handy when you want to force the visitor to reader the text. ]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.thepixelart.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/3.png&amp;w=132&amp;h=132&amp;zc=1&amp;ft=jpg' alt="Create a Typing Text Effect using jQuery"  title="Create a Typing Text Effect using jQuery screenshot" /></p>
<p>For long now flash has been dominating the interactive web animation, using JavaScript was a daunting task. But introduction of frameworks like jQuery, MooTools, Scriptaculous, etc have made animating web component much easier. Another advantage of using these frameworks over flash is that they are search engine friendly. Though search engine do not index JavaScript, actual content is present in html or other SEO friendly code.<br />
<span id="more-3"></span><br />
You must have seen this text effect on many flash websites. jTicker is a jQuery plugin that can be used for creating such effect without the use of flash. This effect comes in handy when you want to force the visitor to read the text. But should be used wherever necessary, as the usability suffers. jTicker can be declared on any element and can be stylized using CSS. You can also use event buttons to play, stop and control the speed of the effect.</p>
<h2>HTML</h2>
<p>Let us start with html markup. Make sure that you have linked the .js files correctly.</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;jticker | Demo&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; SRC=&quot;js/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; SRC=&quot;js/jquery.jticker.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;content&quot;&gt;
  &lt;h2&gt;jTicker Demo  &lt;/h2&gt;
  &lt;div id=&quot;ticker&quot;&gt;
    &lt;div&gt;
      &lt;h3&gt;What does jTicker do?&lt;/h3&gt;
        &lt;p&gt;jTicker takes an elements' children and displays them one by one, in sequence, writing their text 'ticker tape' style. It is smart enough to ticker text from an element heirarchy, inserting elements back into the DOM tree as it needs them. That means almost any content can be 'tickered'.&lt;/p&gt;
        &lt;p&gt;It can be controlled with jQuery events.&lt;/p&gt;
        &lt;a class=&quot;next&quot; href=&quot;#&quot;&gt;next&lt;/a&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;h3&gt;Not my cup of tea, really, ...&lt;/h3&gt;
        &lt;p&gt;annoying little blinky things trying to distract attention when you want to get on with the serious business of reading a website, but if it's your thing, here it is.&lt;/p&gt;

        &lt;a class=&quot;next&quot; href=&quot;#&quot;&gt;next&lt;/a&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;h3&gt;jTicker has some neat features:&lt;/h3&gt;
        &lt;ul&gt;
        	&lt;li&gt;jTicker can be declared on any element, and it respects that element's DOM tree, printing it back out with the same hierarchy.&lt;/li&gt;
            &lt;li&gt;jTicker handles any number of alternating cursors (or just one).&lt;/li&gt;

            &lt;li&gt;jTicker's cursor container is styleable using the class .cursor, or can be defined as your own jQuery object&lt;/li&gt;
            &lt;li&gt;jTicker reacts to jQuery events &quot;play&quot;, &quot;stop&quot; and &quot;control&quot;. You can try them out below.&lt;/li&gt;
        &lt;/ul&gt;
        &lt;a class=&quot;next&quot; href=&quot;#&quot;&gt;next&lt;/a&gt;
    &lt;/div&gt;

    &lt;div&gt;
        &lt;h3&gt;There is one caveat:&lt;/h3&gt;

        &lt;ul&gt;
            &lt;li&gt;&lt;span&gt;jTicker can't understand text and children at the same level (I don't know how to do that yet), so if you want some text and then a link, you have to wrap the text in, say, a span, like this:&lt;/span&gt;
                &lt;code&gt;|span| some text |/span| |a|and then a link|/a|&lt;/code&gt;
            &lt;/li&gt;
            &lt;li&gt;But obviously not with those brackets. That's another thing, jTicker is not good at handling html character entities. So make that two caveats.&lt;/li&gt;
        &lt;/ul&gt;
        &lt;a class=&quot;next&quot; href=&quot;#&quot;&gt;next&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
 </pre>
<h2>CSS</h2>
<p>Add this code to your CSS file or to the &lt;style&gt;</p>
<pre class="brush: css;">
  #ticker
    {height: 12em; padding: 0.6em 0; margin: 0 0 1.8em 0; border-top:3px solid #efefef; border-bottom:3px solid #efefef; position: relative;}
  #ticker .cursor
    {display: inline-block; background: #565c61; width: 0.6em; height: 1em; text-align: center;}
  #ticker p
    {margin-bottom: 0.8em;}
  #ticker code
    {margin: 0.4em 0.4em; display: block;}
  #ticker .next
    {position: absolute; bottom: 1em;}
</pre>
<h2>JavaScript</h2>
<p>Now initialize jTicker by adding this JavaScript to &lt;head&gt; between &lt;script type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p>
<pre class="brush: jscript;">
&lt;!--
  jQuery(document).ready(function(){
    // Instantiate jTicker
	jQuery(&quot;#ticker&quot;).ticker({
 		cursorList:  &quot; &quot;,
 		rate:        10,
 		delay:       4000
	}).trigger(&quot;play&quot;).trigger(&quot;stop&quot;);

    // Trigger events
    jQuery(&quot;.stop&quot;).click(function(){
        jQuery(&quot;#ticker&quot;).trigger(&quot;stop&quot;);
        return false;
    });

    jQuery(&quot;.play&quot;).click(function(){
        jQuery(&quot;#ticker&quot;).trigger(&quot;play&quot;);
        return false;
    });

    jQuery(&quot;.speedup&quot;).click(function(){
        jQuery(&quot;#ticker&quot;)
        .trigger({
            type: &quot;control&quot;,
            item: 0,
            rate: 10,
            delay: 4000
        })
        return false;
    });

    jQuery(&quot;.slowdown&quot;).click(function(){
        jQuery(&quot;#ticker&quot;)
        .trigger({
            type: &quot;control&quot;,
            item: 0,
            rate: 90,
            delay: 8000
        })
        return false;
    });

    jQuery(&quot;.next&quot;).live(&quot;click&quot;, function(){
        jQuery(&quot;#ticker&quot;)
        .trigger({type: &quot;play&quot;})
        .trigger({type: &quot;stop&quot;});
        return false;
    });

    jQuery(&quot;.style&quot;).click(function(){
        jQuery(&quot;#ticker&quot;)
        .trigger({
            type: &quot;control&quot;,
            cursor: jQuery(&quot;#ticker&quot;).data(&quot;ticker&quot;).cursor.css({width: &quot;4em&quot;, background: &quot;#efefef&quot;, position: &quot;relative&quot;, top: &quot;1em&quot;, left: &quot;-1em&quot;})
        })
        return false;
    });

  });

//--&gt;
</pre>
<p><a title="jTicker Demo" href="http://www.thepixelart.com/demo/jticker/" target="_blank">View Demo</a></p>
<p><a title="Source files" href="http://www.thepixelart.com/demo/jticker/files/jticker.zip" target="_blank">Download Files</a></p>
<p><a title="Visit Author Website For Latest Release" href="http://webdev.stephband.info/jticker/" target="_blank">Visit Authors Website</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"><img src="file:///C:/Users/admin/AppData/Local/Temp/moz-screenshot.jpg" alt="Create a Typing Text Effect using jQuery"  title="Create a Typing Text Effect using jQuery screenshot" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thepixelart.com/create-a-typing-text-effect-using-jquery/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

