<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dino Latoga</title>
	
	<link>http://dinolatoga.com</link>
	<description>Web Designer and Blogger</description>
	<lastBuildDate>Tue, 12 Apr 2011 04:41:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DinoLatoga" /><feedburner:info uri="dinolatoga" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>DinoLatoga</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to Show the Most Commented Posts on your WordPress Sidebar</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/wrPPWE3bhls/</link>
		<comments>http://dinolatoga.com/2010/09/13/how-to-show-the-most-commented-posts-on-your-wordpress-sidebar/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 05:00:05 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Most Commented Posts]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[WordPress Hack]]></category>
		<category><![CDATA[WordPress Snippet]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=293</guid>
		<description><![CDATA[Are you still using a plugin to show the most commented posts on your WordPress blog? Discard that plugin and get more control. Read on to find out how to display the most commented posts in your WordPress sidebar or wherever you want to put it.]]></description>
				<content:encoded><![CDATA[<p><img src="http://dinolatoga.com/wp-content/uploads/2010/09/mostcommentedposts.jpg" alt="" title="mostcommentedposts" width="490" height="300" class="alignnone size-full wp-image-302" /></p>
<p>Starting now, I will limit my rants and I&#8217;ll just share you directly the code instead. You guys are big boys and girls and I know that you already know what to do but if you have a question, you can always contact me or let me know in the comments. Ask nicely and you shall be answered when I am not busy.</p>
<p>There are many ways on how to do this but I am only going to give you some examples. I hope you find it useful on your WordPress projects.</p>
<h4>Method 1: Using the loop</h4>
<p>Yep, you can do this on your regular wordpress loop. Grab the code below and test it now.</p>
<pre>&lt;ol&gt;
&lt;?php
$args = array(
	'posts_per_page' =&gt; 10, // specify the number of posts you want to list
	'orderby' =&gt; 'comment_count', // this only works for Version 2.9 and above but the question is are you not going to upgrade to the latest and greatest?
	'order' =&gt; 'DESC'
);
?&gt;
&lt;?php query_posts($args); ?&gt;
	&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;?php endwhile;?&gt;
&lt;/ol&gt;</pre>
<h4>Method 2: Using <code>get_posts</code></h4>
<p>I usually prefer this method since you can use this on multiple loops without having so much trouble. Read more about <code><a href="http://codex.wordpress.org/Function_Reference/get_posts">get_posts</a></code>.</p>
<pre>
&lt;ol&gt;
&lt;?php
$args = array(
	&#39;posts_per_page&#39; =&gt; 10, 
	&#39;orderby&#39; =&gt; &#39;comment_count&#39;, 
	&#39;order&#39; =&gt; &#39;DESC&#39;
);
	$recentposts = get_posts($args);
		foreach ($recentposts as $post) :
		setup_postdata($post);
	?&gt;
	&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;?php endforeach; ?&gt;
&lt;/ol&gt;
</pre>
<h4>Method 3: Showing Most Commented Posts by Category</h4>
<p>Sometimes, we just want to show the most commented posts on certain categories. So how do we do that? Simple, just add the <code>category_name</code> parameter and you are all set. See the example below.</p>
<pre>
$args = array(
	&#39;posts_per_page&#39; =&gt; 10, 
	&#39;orderby&#39; =&gt; &#39;comment_count&#39;,
	&#39;order&#39; =&gt; &#39;DESC&#39;,
	&#39;category_name&#39; =&gt; &#39;Category Name&#39; //rename 'Category Name' with your Category. Include the Spaces
);
</pre>
<h4>Important</h4>
<p>This stuff only works on versions of WordPress 2.9 and greater. But the thing is, why use the old outdated version of WordPress when you can make it easy on the latest and greatest version?</p>
<p>You can learn more about <code><a href="http://codex.wordpress.org/Function_Reference/query_posts">query_posts</a></code> on the <a href="http://wordpress.org">WordPress</a> <a href="http://codex.wordpress.org">Codex</a>.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/wrPPWE3bhls" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2010/09/13/how-to-show-the-most-commented-posts-on-your-wordpress-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2010/09/13/how-to-show-the-most-commented-posts-on-your-wordpress-sidebar/</feedburner:origLink></item>
		<item>
		<title>A jQuery Visual Image Preloader Redux</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/RuYyjupAlEE/</link>
		<comments>http://dinolatoga.com/2010/09/12/a-jqueryvisual-image-preloader-redux/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 04:58:00 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Image Preloader]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[preloader]]></category>
		<category><![CDATA[redux]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=274</guid>
		<description><![CDATA[Get the latest and updated jquery script for preloading your images visually with a spinner. Discard the old and in with the new script!]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-287" title="visualpreloaderredux" src="http://dinolatoga.com/wp-content/uploads/2010/09/visualpreloaderredux.jpg" alt="" width="490" height="300" /></p>
<p>This is an update to my old post about a graphical or <a href="http://dinolatoga.com/2009/04/26/how-to-create-a-visual-image-preloader-using-jquery/">visual image preloader</a>. I&#8217;m really surprised that there are a lot of people who needed this. My script was not perfect. In fact it had flaws. But I was not suggesting it for the whole world to use. I wrote it for myself and it was for my own use. I&#8217;m surprised that people would talk negative about it on <a href="http://themeforest.net/forums/thread/wanted-jquery-image-loader/26301?page=1">forums</a>. I&#8217;m looking at you <a href="http://themeforest.net/user/SplitV">SplitV</a>. If you think my script was using bad javascript practices then why didn&#8217;t you tell me. If you really cared about good code then you should have at least told me. I did mention on my post that I was no hardcore coder. I was a noob back then. End of rant.</p>
<p>Here you go. This is the updated script. Of course you would also need to include the jQuery library. Many thanks to <a href="http://www.sexytrends.pl/">Sexytrends</a>. You can use the code below instead of the old one.</p>
<pre>$(function() {
     $('img').wrap('&lt;span class="image-box"&gt;&lt;/span&gt;').hide();
});

$(window).bind('load', function() {
     var i = 1;
     var imgs = $('img').length;
     var int = setInterval(function() {
     //console.log(i); check to make sure interval properly stops

     if(i &gt;= imgs) clearInterval(int);
     $('img:hidden').eq(0).fadeIn(500);
     i++;
     }, 500);
});</pre>
<h3>Other Solutions</h3>
<p>I also found another very good solution on the <a href="http://themeforest.net/forums/thread/wanted-jquery-image-loader/26301?page=2">Themeforest forums</a>, and it&#8217;s written by <a href="http://twitter.com/pogoking">pogoking</a>, so thank him and not me for the script.</p>
<p>I&#8217;ve copied the code from his post and here it is.</p>
<p>Script:</p>
<pre>(function($){
    $.fn.preloadImages = function(options){

        var defaults = {
            showSpeed: 500,
            easing: 'easeOutQuad'
        };

        var options = $.extend(defaults, options);

        return this.each(function(){
            var container = $(this);
            var image = container.find('img');

            $(image).css({ "visibility": "hidden", "opacity": "0" });
            $(image).bind('load error', function(){
                $(this).css({ "visibility": "visible" }).animate({ opacity:"1" }, {duration:options.showSpeed, easing:options.easing}).parent(container).removeClass('preload');
            }).each(function(){
                if(this.complete || ($.browser.msie &amp;&amp; parseInt($.browser.version) == 6)) { $(this).trigger('load'); }
            });
        });
    }
})(jQuery);</pre>
<p>HTML</p>
<pre>&lt;a href="#"&gt;
    &lt;img src="your/image.png" height="xx" alt="some text" width="xx" /&gt;
&lt;/a&gt;</pre>
<p>The CSS</p>
<pre>.preload { display:block; background:transparent url(your/loading/icon.gif) no-repeat center center; }</pre>
<p>To run the script</p>
<pre>jQuery(document).ready(function(){
    jQuery('.preload').preloadImages({
        showSpeed: 500,   // length of fade-in animation, 500 is default
        easing: 'easeOutQuad'   // optional easing, if you don't have any easing scripts - delete this option
    });
});</pre>
<p>The script works in every browser including IE6, and that is according to the author and I take his word for it.</p>
<p>Let me know what you guys think in the comments.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/RuYyjupAlEE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2010/09/12/a-jqueryvisual-image-preloader-redux/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2010/09/12/a-jqueryvisual-image-preloader-redux/</feedburner:origLink></item>
		<item>
		<title>How to display your latest tweets in your WordPress blog without a plugin</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/SnD-304m1t4/</link>
		<comments>http://dinolatoga.com/2010/07/31/how-to-display-your-latest-tweets-in-your-wordpress-blog-without-a-plugin/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 05:32:40 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter hack]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=256</guid>
		<description><![CDATA[Yes, I know. This article has been written a thousand times before. But this solution is different. It doesn't require a plugin, and it's very easy to implement. And if you have spare time to read this one, go ahead. I promise you it will be worth it.]]></description>
				<content:encoded><![CDATA[<p><a href="http://dinolatoga.com/wp-content/uploads/2010/07/twitter.jpg"><img src="http://dinolatoga.com/wp-content/uploads/2010/07/twitter.jpg" alt="" title="twitter" width="490" height="300" class="alignnone size-full wp-image-271" /></a></p>
<p>Twitter is a social networking giant and it has become a part of everyone who loves to interact on the web. I have seen Twitter feeds on every WordPress blog that I&#8217;ve visited and I think it&#8217;s a very good way to keep your visitors and followers updated. I&#8217;ve also seen Twitter being implemented in different ways.</p>
<h3>The Problem</h3>
<p>So how do they do put up their twitter stream on their blogs, you might wonder. There are <a href="http://www.smashingmagazine.com/2009/03/04/15-useful-twitter-plugins-and-hacks-for-wordpress/">ton</a>s of <a href="http://www.1stwebdesigner.com/resources/31-useful-twitter-plugins-for-wordpress-to-choose-from/">tutorials</a> out <a href="http://www.wprecipes.com/how-to-display-your-latest-twitter-entry-on-your-wp-blog">there</a> describing and showing us exactly how to do it.</p>
<p>I&#8217;ve used some of the tutorials on my past projects and sometimes I get problems when the twitter search query feed returns nothing. One example is<a title="Latest Twitter Update With PHP" href="http://scriptplayground.com/tutorials/php/Latest-Twitter-Update-With-PHP/"> Ryan Barr&#8217;s Twitter Script</a>. Don&#8217;t get me wrong, I love his script, it works very well but it uses the twitter search query as the feed his parser uses which sometimes gives empty results.</p>
<p>Below is an example of a Twitter search result query feed. If you try to view it, it&#8217;s empty. But if you check his profile, he has 3 entries. (thebrowneez is one of my unupdated Twitter profiles by the way)</p>
<pre><a href="http://search.twitter.com/search.atom?q=from:thebrowneez&amp;rpp=1">http://search.twitter.com/search.atom?q=from:thebrowneez&amp;rpp=1</a></pre>
<h3>The Solution</h3>
<p>The solution is very obvious. We should use the user&#8217;s direct RSS feed. Click the RSS link below. It gives you results, right? And it never comes empty as long as the Twitter account is active.</p>
<pre><a href="http://twitter.com/statuses/user_timeline/25106430.rss">http://twitter.com/statuses/user_timeline/25106430.rss</a></pre>
<p>If you are having trouble finding your twitter feed RSS, you can check out this <a href="http://support.twitter.com/entries/15361-how-to-find-your-rss-feed">article</a>.</p>
<p>The only problem now is how do we parse and display the Twitter feed on our blog? I&#8217;ve got it covered so all you have to do is just copy and paste the code on your templates.</p>
<h3>The Code</h3>
<p>I added comments in between the lines of the codes so you have a better understanding on it. I used the <a href="http://codex.wordpress.org/Function_Reference/fetch_feed">fetch_feed()</a> function which is a newer version of the deprecated <a href="http://codex.wordpress.org/Function_Reference/wp_rss">wp_rss()</a> function.</p>
<p>I&#8217;m no hardcore PHP programmer so if you ever find something that needs tweaking or optimization, please let me know. I hope this little bit of code will help you out on your next projects.</p>
<pre>&lt;?php
include_once(ABSPATH . WPINC . '/feed.php');

//configuration
$username = "wordpress";
$feed = "http://twitter.com/statuses/user_timeline/685513.rss";
$num = 5;

//this is a function which will convert text links to clickable links
function makeClickableLinks($text) {
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)','&lt;a href="\\1"&gt;\\1&lt;/a&gt;', $text);
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)','\\1&lt;a href="http://\\2"&gt;\\2&lt;/a&gt;', $text);
return $text;
}

$rss = fetch_feed($feed);
if (!is_wp_error( $rss ) ) :
     $maxitems = $rss-&gt;get_item_quantity($num);
     $rss_items = $rss-&gt;get_items(0, $maxitems);
endif;
?&gt;

&lt;ul&gt;
     &lt;?php if ($maxitems == 0) echo '&lt;li&gt;No items.&lt;/li&gt;';
     else
     foreach ( $rss_items as $item ) : ?&gt;
     &lt;li&gt;
     &lt;?php
          $tweet = str_replace($username.':','',$item-&gt;get_title()); //replaces the username which is displayed on the feed
          $tweet = makeClickableLinks($tweet); //converts text links to clickable links
          $tweet = preg_replace('#@([\\d\\w]+)#', '&lt;a href="http://twitter.com/$1"&gt;$0&lt;/a&gt;', $tweet);//converts hashtags to clickable links
          $tweet = preg_replace('/#([\\d\\w]+)/', '&lt;a href="http://twitter.com/search?q=%23$1"&gt;$0&lt;/a&gt;', $tweet);//converts @username to links
          echo $tweet . " &lt;small&gt;&lt;a href='".$item-&gt;get_permalink()."'&gt;" . human_time_diff($item-&gt;get_date('U'), current_time('timestamp')) . " ago&lt;/a&gt;&lt;/small&gt;";
     ?&gt;
     &lt;/li&gt;
     &lt;?php endforeach; ?&gt;
&lt;/ul&gt;</pre>
<p>Well that&#8217;s it! I hope it helped you one way or another. All you have to do now is to create your own CSS styling. </p>
<p>I have other tutorials and tricks for WordPress that I&#8217;d like to share so keep coming back for new stuff. I&#8217;ll try to update this blog as often as I could. I&#8217;m thinking of adding new content at least thrice a month.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/SnD-304m1t4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2010/07/31/how-to-display-your-latest-tweets-in-your-wordpress-blog-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2010/07/31/how-to-display-your-latest-tweets-in-your-wordpress-blog-without-a-plugin/</feedburner:origLink></item>
		<item>
		<title>Amazing Image Hover Effects with Webkit and CSS 3</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/2mZBbbidd0Q/</link>
		<comments>http://dinolatoga.com/2009/09/18/amazing-imag-hover-effects-with-webkit-and-css/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 15:15:26 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Hover Effects]]></category>
		<category><![CDATA[Image Effects]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=229</guid>
		<description><![CDATA[I've been playing with Webkit transitions for quite sometime and so far I'm really impressed with what it can do. Animations and effects that I thought was only possible with  jQuery is now possible with CSS and webkit. ]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-245" title="amazing-image-hover-effects-lead-image" src="http://dinolatoga.com/wp-content/uploads/2009/09/amazing-image-hover-effects-lead-image.jpg" alt="amazing-image-hover-effects-lead-image" width="490" height="300" /></p>
<p>Webkit is impressive. I&#8217;ve been tinkering with Google Chrome and Safari 4, the main browsers that use the <a href="http://webkit.org" target="_blank">Webkit</a> rendering engine,  and all I can say is they&#8217;re both fast and real good browsers. What I thought was only possible with a few Javascript snippets is now possible with webkit. In this post, I will show you demonstration and examples of what Webkit and CSS can do.</p>
<div class="downloadlink"><a href="http://dinolatoga.com/demo/webkit-image-hover-effects/"><strong>View the Demo</strong></a><br />
<small>The animation effects will only be viewable on Google Chrome and Safari 4+</small></div>
<h3>Image Shrink Effect</h3>
<p>The image will shrink if you put your mouse pointer on top of it. It is achieved by using the -webkit-transform:scale(value) property.</p>
<p>The HTML</p>
<pre> &lt;div id="demo-1" class="demobox"&gt;
	&lt;img src="optimusprime.jpg"/&gt;
&lt;/div&gt;</pre>
<p>The CSS</p>
<pre>#demo-1 img {
	-webkit-transform: scale(1);
	-webkit-transition-timing-function: ease-out;
	-webkit-transition-duration: 500ms;
}
#demo-1 img:hover{
	-webkit-transform: scale(.5);
	-webkit-transition-timing-function: ease-out;
	-webkit-transition-duration: 500ms;
}</pre>
<p>Notice how the HTML looks very simple. It&#8217;s just a simple <code>&lt;img/&gt;</code> tag but with webkit, you can achieve a very cool effect.</p>
<h3>Fade Out Image Effect</h3>
<p>On mouse hover, the image will fade out to 50% opacity smoothly.</p>
<p>The HTML</p>
<pre>&lt;div id="demo-2"&gt;
&lt;img src="optimusprime.jpg"/&gt;
&lt;/div&gt;</pre>
<p>The CSS</p>
<pre>#demo-2 img {
opacity: 1;
-webkit-transition: opacity;
-webkit-transition-timing-function: ease-out;
-webkit-transition-duration: 500ms;
}
#demo-2 img:hover{
opacity: .5;
-webkit-transition: opacity;
-webkit-transition-timing-function: ease-out;
-webkit-transition-duration: 500ms;
}</pre>
<h3>Fade in Description Box Effect</h3>
<p>When you hover your mouse over the image, a box will fade in smoothly with its title and description.</p>
<p>The HTML</p>
<pre>&lt;div id="demo-3"&gt;
	&lt;img src="optimusprime.jpg"/&gt;
	&lt;div&gt;
		&lt;h3&gt;Transformers&lt;/h3&gt;
		&lt;p&gt;More than meets the eye&lt;/p&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre>
<p>The CSS</p>
<pre>#demo-3{position:relative;}
#demo-3 img{
opacity:1
-webkit-transition: opacity;
-webkit-transition-timing-function: ease-out;
-webkit-transition-duration: 500ms;
}
#demo-3 .details{
position:absolute;
top:0;
left:0;
opacity: 0;
-webkit-transition: opacity;
-webkit-transition-timing-function: ease-out;
-webkit-transition-duration: 500ms;
}

#demo-3 .details:hover{
opacity: .9;
-webkit-transition: opacity;
-webkit-transition-timing-function: ease-out;
-webkit-transition-duration: 500ms;
}</pre>
<h3>Image Slide Out Effect</h3>
<p>The image is above the description box and when the mouse is hovered over the image, it will slide out revealing the description box.</p>
<p>The HTML</p>
<pre>&lt;div id="demo-4"&gt;
	&lt;img src="optimusprime.jpg"/&gt;
	&lt;div&gt;
		&lt;h3&gt;Transformers&lt;/h3&gt;
		&lt;p&gt;More than meets the eye&lt;/p&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre>
<p>The CSS</p>
<pre>#demo-4{position:relative;}
#demo-4 img{
position:absolute;
top:0;
left:0;
-webkit-transition: margin-left;
-webkit-transition-timing-function: ease-in;
-webkit-transition-duration: 250ms;
}
#demo-4:hover img{
margin-left:200px;
}
#demo-4 .details{
position:absolute;
top:0;
left:0;
z-index:-1;
}</pre>
<h3>Slide In Box Effect</h3>
<p>The description box will slide in on top of the image on mouse hover.</p>
<p>The HTML</p>
<pre>&lt;div id="demo-5"&gt;
	&lt;img src="optimusprime.jpg"/&gt;
	&lt;div&gt;
		&lt;h3&gt;Transformers&lt;/h3&gt;
		&lt;p&gt;More than meets the eye&lt;/p&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre>
<p>The CSS</p>
<pre>#demo-5{position:relative;}
#demo-5 .details{
opacity: .9;
position:absolute;
top:0;
left:0;
margin-left:-200px;
-webkit-transition: margin-left;
-webkit-transition-timing-function: ease-in;
-webkit-transition-duration: 250ms;
}
#demo-5:hover .details{
margin-left:0;
}</pre>
<h3>Zoom in Box Effect</h3>
<p>The description box will zoom out from the middle of the image when the image is triggered by mouse hover.</p>
<p>The HTML</p>
<pre>&lt;div id="demo-5"&gt;
	&lt;img src="optimusprime.jpg"/&gt;
	&lt;div&gt;
		&lt;h3&gt;Transformers&lt;/h3&gt;
		&lt;p&gt;More than meets the eye&lt;/p&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre>
<p>The CSS</p>
<pre>#demo-6{
 position:relative;
 }
 #demo-6 img{
 position:absolute;
 top:0;
 left:0;
 z-index:0;
 }
 #demo-6 .details{
 opacity: .9;
 position:absolute;
 top:100;
 left:150;
 z-index:999;
 -webkit-transform: scale(0);
 -webkit-transition-timing-function: ease-out;
 -webkit-transition-duration: 250ms;
 }
 #demo-6:hover .details{
 -webkit-transform: scale(1);
 -webkit-transition-timing-function: ease-out;
 -webkit-transition-duration: 250ms;
 }</pre>
<p>These examples are just a few things the Webkit engine can do. The question now is, can we use these on real world projects? Why, of course. We might just need a little work for browsers that doesn&#8217;t support these awesome transition effects.</p>
<p>Having good designs would help you better establish your own site. It also important that you choose a <a href="http://www.webhostgear.com">good host</a> to run your website.</p>
<div class="downloadlink"><a href="http://dinolatoga.com/demo/webkit-image-hover-effects/"><strong>View the Demo</strong></a><br />
<small>The animation effects will only be viewable on Google Chrome and Safari 4+</small></div>
<p>Here are some good resources and articles that you might want to check out:</p>
<ul>
<li><a href="http://developer.apple.com/safari/articles/cssrecipes.html">CSS Recipes for WebKit</a></li>
<li><a href="http://webkit.org/blog/138/css-animation/">CSS Animation</a></li>
<li><a href="http://developer.apple.com/safari/library/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Transitions/Transitions.html">Transitions</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/2mZBbbidd0Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2009/09/18/amazing-imag-hover-effects-with-webkit-and-css/feed/</wfw:commentRss>
		<slash:comments>65</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2009/09/18/amazing-imag-hover-effects-with-webkit-and-css/</feedburner:origLink></item>
		<item>
		<title>How to Create Editable Letterpress Styled Text in Fireworks</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/WosRCoY-AL0/</link>
		<comments>http://dinolatoga.com/2009/09/12/how-to-create-editable-letterpress-styled-text-in-fireworks/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 21:47:33 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[Fireworks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[inset text]]></category>
		<category><![CDATA[letterpress]]></category>
		<category><![CDATA[text effect]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=205</guid>
		<description><![CDATA[Letterpress styled text or inset text effect is one of the popular trends in modern web design. I've seen some tutorials on how to create this effect on Photoshop and Illustrator but I haven't seen one in Fireworks. Today I will teach you how to achieve this awesome effect in just 5 very easy steps using Fireworks.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-208" title="letterpress-cover" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-cover.jpg" alt="letterpress-cover" width="490" height="300" /></p>
<h3>Final Image</h3>
<p><img class="alignnone size-full wp-image-209" title="letterpress-final" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-final.jpg" alt="letterpress-final" width="490" height="200" /></p>
<p>This is how the final image looks like. I&#8217;ve used gray color for the example but you can always choose your own settings once you mastered this very easy effect.</p>
<h3>Step 1</h3>
<p>Open up Adobe Fireworks and create a new document. Let&#8217;s start with a small canvas, 490px by 200px and a gray background (#AAAAAA).</p>
<p><img class="alignnone size-full wp-image-210" title="letterpress-step-01" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-01.jpg" alt="letterpress-step-01" width="490" height="382" /></p>
<h3>Step 2</h3>
<p>Use the Text tool (T) to type out some text in the center of the canvas. Choose a nice font and fill it with a darker gray color (#888888). I used Bello Pro for this tutorial.</p>
<p><img class="alignnone size-full wp-image-211" title="letterpress-step-02" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-02.jpg" alt="letterpress-step-02" width="490" height="200" /></p>
<h3>Step 3</h3>
<p>With the text still selected, apply an Inner Shadow filter from the live filters menu inside the Properties panel and adjust the settings<sup>*</sup>:</p>
<ol>
<li> Distance: 2</li>
<li> Softness: 4</li>
<li> Opacity: 45%</li>
<li> Angle: 315 degrees</li>
<li> Color: Black</li>
</ol>
<p><img class="alignnone size-full wp-image-212" title="letterpress-step-03-a" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-03-a.jpg" alt="letterpress-step-03-a" width="490" height="313" /></p>
<p><img class="alignnone size-full wp-image-220" title="letterpress-step-03-b" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-03-b.jpg" alt="letterpress-step-03-b" width="490" height="216" /></p>
<h3>Step 4</h3>
<p>Select the text again and apply add another live filter. This time we&#8217;ll use Drop Shadow with these settings<sup>*</sup>:</p>
<ol>
<li> Distance: 2</li>
<li> Softness: 1</li>
<li> Opacity: 85%</li>
<li> Angle: 315 degrees</li>
<li> Color: White</li>
</ol>
<p><img class="alignnone size-full wp-image-213" title="letterpress-step-04" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-04.jpg" alt="letterpress-step-04" width="490" height="326" /></p>
<p>It is important that the angles from both live filters are the same to provide consistency on the source of lighting applied.</p>
<h3>Step 5</h3>
<p>Actually that&#8217;s it. It seems real easy, huh? One more important thing, the text is still editable so if you want to change the text, you can do so without repeating the entire process again. To make it easier, you can save this as style and use it on your future designs.</p>
<p><img class="alignnone size-full wp-image-214" title="letterpress-step-05-a" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-05-a.jpg" alt="letterpress-step-05-a" width="490" height="233" /></p>
<p><img class="alignnone size-full wp-image-215" title="letterpress-step-05-b" src="http://dinolatoga.com/wp-content/uploads/2009/09/letterpress-step-05-b.jpg" alt="letterpress-step-05-b" width="490" height="352" /></p>
<h3>Fireworks FTW!</h3>
<p>While Photoshop is the tool for most web designers out there, I prefer Fireworks for my web design projects. It not only does the job but it does the job  easy, simple and fast. Fact is, this website was designed using only Fireworks. Did you see how the inset text effect was achieved using only 5 super simple steps? I bet even your grandma can do it.</p>
<p><small>* &#8211; You may adjust your settings to your liking. Those settings I have should serve as a guide for you.</small></p>
<p>If you find this tutorial helpful, please show some love by clicking some of your favorite social bookmarking icons below.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/WosRCoY-AL0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2009/09/12/how-to-create-editable-letterpress-styled-text-in-fireworks/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2009/09/12/how-to-create-editable-letterpress-styled-text-in-fireworks/</feedburner:origLink></item>
		<item>
		<title>The Longest Solar Eclipse of the 21st Century</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/MqXd3PXwR4M/</link>
		<comments>http://dinolatoga.com/2009/07/23/the-longest-solar-eclipse-of-the-21st-century/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 04:09:55 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Canon EOS 450D]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[total solar eclipse]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=173</guid>
		<description><![CDATA[On July 22, 2009, the moon blocked out the sun and darkness covered a part of the world at daytime - a rare phenomenon called a solar eclipse. With my Canon EOS 450D camera and kit lens, I've managed to take some quite good photos of it.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-183" title="solar-eclipse-lead-image" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-lead-image.jpg" alt="solar-eclipse-lead-image" width="490" height="182" /></p>
<p>Yesterday, I was one of the millions of people who witnessed the longest solar eclipse of the 21st century, a very rare phenomenon. The eclipse lasted for about 6 minutes and 39 seconds but the whole transition lasted for more than 2 hours, from 8:30 AM to 11AM (at my timezone) and I&#8217;m sure most of the people with special abilities lost their powers for that time period. Below are a few shots I&#8217;ve taken during the rare event. I&#8217;ve used a Canon EOS 450D with kit lens. I know I could&#8217;ve taken better pictures with a zoom lens but I don&#8217;t have one so I&#8217;ll stick to what I&#8217;ve got. I know it&#8217;s dangerous to focus your DSLR directly at the sun, especially this is only a partial eclipse, so I&#8217;ve used a welding glass as a filter. I hope you enjoy a few of my handpicked shots below. It was taken in front of the house.</p>
<p><img class="size-full wp-image-182  " title="July 22, 2009 Solar Eclipse" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-08.jpg" alt="July 22, 2009 Solar Eclipse" width="490" height="327" /></p>
<p><img class="size-full wp-image-181" title="solar-eclipse-072202-07" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-07.jpg" alt="solar-eclipse-072202-07" width="490" height="327" /></p>
<p><img class="size-full wp-image-180" title="solar-eclipse-072202-06" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-06.jpg" alt="solar-eclipse-072202-06" width="490" height="327" /></p>
<p><img class="size-full wp-image-179" title="solar-eclipse-072202-05" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-05.jpg" alt="solar-eclipse-072202-05" width="490" height="327" /></p>
<p><img class="size-full wp-image-178" title="solar-eclipse-072202-04" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-04.jpg" alt="solar-eclipse-072202-04" width="490" height="327" /></p>
<p><img class="size-full wp-image-177" title="solar-eclipse-072202-03" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-03.jpg" alt="solar-eclipse-072202-03" width="490" height="327" /></p>
<p><img class="size-full wp-image-176" title="solar-eclipse-072202-02" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-02.jpg" alt="solar-eclipse-072202-02" width="490" height="327" /></p>
<p><img class="size-full wp-image-175" title="solar-eclipse-072202-01" src="http://dinolatoga.com/wp-content/uploads/2009/07/solar-eclipse-072202-01.jpg" alt="solar-eclipse-072202-01" width="490" height="327" /></p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/MqXd3PXwR4M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2009/07/23/the-longest-solar-eclipse-of-the-21st-century/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2009/07/23/the-longest-solar-eclipse-of-the-21st-century/</feedburner:origLink></item>
		<item>
		<title>Most Commonly Used WordPress Code Snippets</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/S1gkyfxYktw/</link>
		<comments>http://dinolatoga.com/2009/05/24/most-commonly-used-wordpress-code-snippets/#comments</comments>
		<pubDate>Sun, 24 May 2009 07:26:05 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Codex]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=134</guid>
		<description><![CDATA[I've been developing WordPress themes for more than 2 years and based from my own experience and personal preferences, here are the most common WordPress code snippets that I use. Please do check it out and if you learn a thing or two, let me know in the comments.]]></description>
				<content:encoded><![CDATA[<h3><img class="alignnone size-full wp-image-160" title="most-commonly-used-wordpress-code-snippets" src="http://dinolatoga.com/wp-content/uploads/2009/05/most-commonly-used-wordpress-code-snippets.jpg" alt="most-commonly-used-wordpress-code-snippets" width="490" height="182" /></h3>
<h3>Display Recent Posts</h3>
<p>There are different methods I use for this kind of function and it depends on the need and how the template is laid out. You can check out the 3 methods that I use below. I hope you find it useful in your projects.</p>
<p><strong>Method 1</strong>: This code displays the 10 latest posts. You can place this code anywhere on your template. For more info on <code>wp_get_archives()</code> you may want to check out the <a title="wp_get_archives reference post" href="http://codex.wordpress.org/Template_Tags/wp_get_archives">codex</a></p>
<pre>&lt;ul&gt;
&lt;?php wp_get_archives('type=postbypost&amp;limit=10'); ?&gt;
&lt;/ul&gt;</pre>
<p><strong>Method 2: </strong>This is just basically the loop except that we defined a number of posts to be shown using the <code>query_posts()</code> function. You may want to read more on <code><a href="http://codex.wordpress.org/Template_Tags/query_posts">query_posts()</a></code></p>
<pre>&lt;?php query_posts('showposts=5'); ?&gt;
&lt;ul&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endwhile;?&gt;
&lt;/ul&gt;</pre>
<p><strong>Method 3:</strong> This is I think the best way to display the recent posts since it&#8217;s very simple and you can customize the way the posts are displayed. You can use this code anywhere on your template. Read more about the <code><a href="http://codex.wordpress.org/Template_Tags/get_posts">get_posts()</a></code> function.</p>
<pre>&lt;?php
$recentposts = get_posts('numberposts=12&amp;category=4');
	foreach ($recentposts as $post) :
	setup_postdata($post);
?&gt;
&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endforeach; ?&gt;</pre>
<h3>Display Recent Comments</h3>
<p>I found this piece of code somewhere around the web but I don&#8217;t know who the original source is. So the credit goes to him or her. This piece of code will display the 7 most recent comments.</p>
<pre>&lt;?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb-&gt;comments
LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =
$wpdb-&gt;posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 7";
$comments = $wpdb-&gt;get_results($sql);
$output = $pre_HTML;
$output .= "\n&lt;ul&gt;";
foreach ($comments as $comment) {
$output .= "\n&lt;li&gt;".strip_tags($comment-&gt;comment_author)
.": " . "&lt;a href=\"" . get_permalink($comment-&gt;ID) .
"#comment-" . $comment-&gt;comment_ID . "\" title=\"on " .
$comment-&gt;post_title . "\"&gt;" . strip_tags($comment-&gt;com_excerpt)
."&amp;hellip;&lt;/a&gt;&lt;/li&gt;";
}
$output .= "\n&lt;/ul&gt;";
$output .= $post_HTML;
echo $output;?&gt;</pre>
<h3>Display Categories</h3>
<p>There are different ways in displaying categories and most of the time I like the categories to be displayed in a simple list.</p>
<p><span style="font-family: 'Courier New'; line-height: 18px; font-size: 12px; white-space: pre;">&lt;h4&gt;Categories&lt;/h4&gt;</span></p>
<pre>&lt;ul&gt;
&lt;?php wp_list_categories('use_desc_for_title=0&amp;title_li=&amp;show_count=0'); ?&gt;
&lt;/ul&gt;</pre>
<h3>Display Archives as Simple List</h3>
<p><strong>Method 1: </strong>This will display the archives in a month list. I usually place this on the sidebar. Learn more about <a href="http://codex.wordpress.org/Template_Tags/wp_get_archives">wp_get_archives</a>.</p>
<pre>&lt;h4&gt;Archives&lt;/h4&gt;
&lt;ul&gt;
	&lt;?php wp_get_archives('type=monthly'); ?&gt;
&lt;/ul&gt;</pre>
<p><strong>Method 2: </strong>This will display all the posts in a simple list. I usually use this on an archives page template.</p>
<pre>&lt;ul class="archives"&gt;
&lt;?php
$myposts = get_posts('numberposts=-1&amp;offset=0');
foreach($myposts as $post) :
?&gt;
&lt;li&gt;&lt;small&gt;&lt;?php the_time('d.m.y') ?&gt;&lt;/small&gt; &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;

&lt;?php endforeach; ?&gt;
&lt;/ul&gt;</pre>
<h3>Display Tagclouds</h3>
<p>This will display the tags in a tagcloud. This is the simplest on how to use it. For more details you may check out <code><a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud">wp_tag_cloud()</a></code> from the WordPress codex.</p>
<pre>&lt;?php wp_tag_cloud('smallest=8&amp;largest=22'); ?&gt;</pre>
<h3>Display Blogroll</h3>
<p>This will display the links in a simple plain list. More on <a href="http://codex.wordpress.org/Template_Tags/wp_list_bookmarks">wp_list_bookmarks</a>.</p>
<pre>&lt;ul&gt;
&lt;?php wp_list_bookmarks('title_li=&amp;categorize=0'); ?&gt;
&lt;/ul&gt;</pre>
<p>While I know that these are not all of the most commonly used WordPress snippets, I hope this post will still help out people who want to learn WordPress. I have written this post so it can serve as a reference for me and by all means you can make it your reference too. But if you want to learn more on WordPress functions you can always go to the <a href="http://codex.wordpress.org">Codex </a>or you can get a copy of <a href="http://justagirlintheworld.com/wordpressfordummies/">WordPress for Dummies</a>.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/S1gkyfxYktw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2009/05/24/most-commonly-used-wordpress-code-snippets/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2009/05/24/most-commonly-used-wordpress-code-snippets/</feedburner:origLink></item>
		<item>
		<title>How to Create a Visual Image Preloader using jQuery</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/FHT4Kj-HHIQ/</link>
		<comments>http://dinolatoga.com/2009/04/26/how-to-create-a-visual-image-preloader-using-jquery/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 07:28:37 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Image Preloader]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Preloaders]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=103</guid>
		<description><![CDATA[<strong>UPDATE:</strong> This script has been updated. Please go to the new post about the <a href="http://dinolatoga.com/2010/09/12/a-jqueryvisual-image-preloader-redux/">updated visual preloader script</a>.

I have been searching the web for methods on how to visually preload the images on your site. I have found a few good ones but they require a defined source or path and that doesn't work for me. I needed something to preload any image from any source or URL. So I gave up the search and created a simple solution for myself. Read on to find out how I did it.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-116" title="imagepreloader" src="http://dinolatoga.com/wp-content/uploads/2009/04/imagepreloader.jpg" alt="imagepreloader" width="490" height="182" /></p>
<h3>Update</h3>
<p>This script has been updated. Please go to the new post about the <a href="http://dinolatoga.com/2010/09/12/a-jqueryvisual-image-preloader-redux/">updated visual preloader script</a>.</p>
<p>If you have been here in my site before, you may have noticed the images on this site have a visual preloading effect. It&#8217;s really a cool effect but it&#8217;s actually a fake preloader. It doesn&#8217;t preload the images individually but it considers all the images on the page before it starts showing each one. This method I&#8217;m about to share and explain works best on a page with not too many images. The script is purely based on jQuery with a little bit of CSS.</p>
<h3>How it works</h3>
<p>When the page is initialized, a script will hide all of the images. While all of the images on the page are loading, an animated preloader will take it&#8217;s place creating the &#8220;image loading&#8221; effect. After all the images on the page is loaded, a script will kick in and start fading in the images from the first instance to the last one. This method works with any image from any source or path. To achieve the whole preloader effect the image must be wrapped inside a div with a class. We need the extra markup for a placeholder for our animated preloader image.</p>
<ul>
<li><a title="Demo - How to create a Visual Image Preloader using jQuery" href="http://demo.dinolatoga.com/imagepreloader/">View the Demo</a></li>
<li><a title="How to create a Visual Image Preloader using jQuery Source Files" href="http://demo.dinolatoga.com/imagepreloader/sourcefiles.zip">Download the Source Files</a></li>
</ul>
<h3>Getting started</h3>
<p>You need the <a title="jQuery - Write less, do more" href="http://jquery.com">jQuery</a> library by <a title="John Resig" href="http://ejohn.org/">John Resig</a>. The older versions work but I suggest you always use the current release.</p>
<p>First, let&#8217;s create the HTML page. We need to include the jQuery library in the header of the page. And let&#8217;s wrap each image with a div.</p>
<pre>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
	&lt;title&gt;Visual Image Preloader using jQuery&lt;/title&gt;
	&lt;script src="js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div class="image-holder"&gt;
		&lt;img src="http://farm4.static.flickr.com/3563/3381408848_9c746f35f6.jpg?v=0" alt="Image 1"/&gt;
	&lt;/div&gt;
	&lt;div class="image-holder"&gt;
		&lt;img src="http://farm4.static.flickr.com/3657/3381403740_19457662b3.jpg?v=0" alt="Image 2"/&gt;
	&lt;/div&gt;
	&lt;div class="image-holder"&gt;
		&lt;img src="http://farm4.static.flickr.com/3454/3381399248_82bf005381.jpg?v=0" alt="Image 3"/&gt;
	&lt;/div&gt;
	&lt;div class="image-holder"&gt;
		&lt;img src="http://farm4.static.flickr.com/3586/3381393310_8f4b015827.jpg?v=0" alt="Image 4"/&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Adding the script</h3>
<p>Let&#8217;s create the fake preloader script and insert it on the header.</p>
<pre>&lt;script type="text/javascript"&gt;
	$(function () {
		$('img').hide();//hide all the images on the page
	});

	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
		var int = setInterval("doThis(i)",500);//500 is the fade in speed in milliseconds
	});

	function doThis() {
		var images = $('img').length;//count the number of images on the page
		if (i &gt;= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
		}
		$('img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
		i++;//add 1 to the count
	}
&lt;/script&gt;</pre>
<p>Let&#8217;s <a title="How to create a Visual Image Preloader using jQuery" href="http://demo.dinolatoga.com/imagepreloader/index-raw.html">test </a>what we have so far. The images will only start to fade in once the entire document is loaded. That is how the event handler window.bind() works.</p>
<h3>Adding the animated preloader</h3>
<p>Now let&#8217;s add the animated preloader. You may generate your own loader image <a title="Image Loader Generator" href="http://www.ajaxload.info">here</a>. Let&#8217;s create a new CSS file in our favorite code editor.</p>
<pre>.image-holder{
	float:left;
	width:500px;
	height:313px;
	padding:10px;
	margin:10px;
	border:1px solid #ddd;
	background:#eee url(loading.gif) 50% 50% no-repeat;
	display:inline;
}</pre>
<p>Don&#8217;t forget to include the CSS file on your header.</p>
<pre>&lt;link rel="stylesheet" href="preloader.css" type="text/css" /&gt;</pre>
<h3>Summary and Conclusion</h3>
<p>While I know that this is not a real solution for preloading images, it would still add a very cool effect to your website. This method will preload any image from any source or path. The only setback is you will not see the animated preloader on images not wrapped in a special div. But the good thing is it would still have that fade-in effect.</p>
<p>That&#8217;s it! I hope you enjoy the simple <a title="How to create a Visual Image Preloader using jQuery" href="http://demo.dinolatoga.com/imagepreloader/">demo</a> and tutorial. If you have any questions or suggestions, you may leave your comments below.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/FHT4Kj-HHIQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2009/04/26/how-to-create-a-visual-image-preloader-using-jquery/feed/</wfw:commentRss>
		<slash:comments>71</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2009/04/26/how-to-create-a-visual-image-preloader-using-jquery/</feedburner:origLink></item>
		<item>
		<title>The 7 Stages of This Website’s Redesign</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/PsKrM84rU5E/</link>
		<comments>http://dinolatoga.com/2009/04/24/7-stages-of-this-redesign/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 18:16:22 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[guidelines]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=70</guid>
		<description><![CDATA[Finally, the rocketship to Mars that I've been building for months has taken off. By rocketship I mean this website redesign. It wasn't easy but it was fun. I started working on this design since February this year and I 'm really glad that it's over. Well at least for now. If you want to find out how I came up with the design, read on.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-81" title="evolution" src="http://dinolatoga.com/wp-content/uploads/2009/04/evolution.jpg" alt="evolution" width="490" height="182" /></p>
<p>At long last, I have finally updated my website with the new design. I&#8217;m calling this new design &#8220;<strong>Stage 7</strong>&#8221; because there were 7 stages and it was the 7th stage that I finally stopped and finalized the design. If you are a new visitor to this site, you probably won&#8217;t even notice it at all. But to give you a brief history, this site used to wear the <a href="http://dinolatoga.com/2008/07/04/una-wordpress-theme/">Una WordPress theme</a>, my first free WordPress theme and it has served me well.</p>
<p>So what took me so long to build and launch this new design? It&#8217;s not really because of the lack of time or inspiration. In fact I do have a lot of free time for this project. But everytime I finish the design, I take a good look at it today and decide that it&#8217;s cool but the next day when I take a look at it again, I have changed my mind about it . I&#8217;ve learned the hard way that as a web designer, the hardest client to please is yourself. To prove it to you, I&#8217;ve gone through many design revisions before I finally came up with this and to be honest, I&#8217;m still not fully pleased with what I came up with. But I decided to stop tweaking the design and finally convert it to code, because if I continue on revising the design, I will not be able to finish anything at all.</p>
<p>Below you will see the evolution of the design in 7 stages:</p>
<div id="attachment_74" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-74" title="Stage 1" src="http://dinolatoga.com/wp-content/uploads/2009/04/study1.jpg" alt="Stage 1" width="450" height="450" /><p class="wp-caption-text">Stage 1</p></div>
<p><strong>Stage 1</strong>: It started out as a light colored theme. I kinda like this layout. In fact, I&#8217;m converting this to a WP theme sometime soon.</p>
<div id="attachment_75" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-75" title="Stage 2" src="http://dinolatoga.com/wp-content/uploads/2009/04/study2.jpg" alt="Stage 2" width="450" height="518" /><p class="wp-caption-text">Stage 2</p></div>
<p><strong>Stage 2</strong>: This one looks similar to the first one, except images are added on the blog section of the page. Another great WordPress theme idea, I guess.</p>
<div id="attachment_76" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-76" title="Stage 3" src="http://dinolatoga.com/wp-content/uploads/2009/04/study3.jpg" alt="Stage 3" width="450" height="394" /><p class="wp-caption-text">Stage 3</p></div>
<p><strong>Stage 3</strong>: I woke up one day and I told myself, I wanted that kind of look. Looks good to me but I got tired of looking at it.</p>
<div id="attachment_77" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-77" title="Stage 4" src="http://dinolatoga.com/wp-content/uploads/2009/04/study4.jpg" alt="Stage 4" width="450" height="563" /><p class="wp-caption-text">Stage 4</p></div>
<p><strong>Stage 4</strong>: This one looks grungy, the kind of look that I&#8217;m going for but I hated the colors.</p>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-78" title="Stage 5" src="http://dinolatoga.com/wp-content/uploads/2009/04/study6.jpg" alt="Stage 5" width="450" height="487" /><p class="wp-caption-text">Stage 5</p></div>
<p><strong>Stage 5</strong>: I love this design. But before I can convert it to code, I kinda changed my mind again. I&#8217;m gonna inherit this look on some of my future projects so it won&#8217;t be wasted.</p>
<div id="attachment_79" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-79" title="Stage 6" src="http://dinolatoga.com/wp-content/uploads/2009/04/study7.jpg" alt="Stage 6" width="450" height="469" /><p class="wp-caption-text">Stage 6</p></div>
<p><strong>Stage 6</strong>: I&#8217;m almost there. I thought I was aiming for grunge but at this stage, I knew what I wanted. I wanted something that looks neat and textured so I got rid of the grunge parts and came up with this.</p>
<div id="attachment_80" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-80" title="Stage 7" src="http://dinolatoga.com/wp-content/uploads/2009/04/studyfinal.jpg" alt="Stage 7" width="450" height="591" /><p class="wp-caption-text">Stage 7</p></div>
<p><strong>Stage 7</strong>: This is the final design and I think I&#8217;m really happy about it. I love how it eveolved from Stage 1 to this. I didn&#8217;t see that coming. At least this was a great learning experience for me.</p>
<p>Because I don&#8217;t want to go through piles of stages on my future projects again, I created guidelines for myself. If you find these guidelines useful, you may use it at your own risk. :)</p>
<h4>Always ask other people&#8217;s opinion about the stuff you are working on</h4>
<p>I guess this one is a very important thing to remember. If you can&#8217;t please yourself, the best way to move on with your design is ask other people&#8217;s opinion. Remember that you are not only pleasing yourself but other people too who will be viewing your design.</p>
<h4>Do not overdo it</h4>
<p>Sometimes when you are working on something interesting, like a personal blog or website, you tend to get addicted to it that you don&#8217;t want to stop working on it. You want to put everything into it but most of the times, that&#8217;s not really cool. Like for example, you are working a website and you have finished laying it out. You see an empty space on one of the columns and you decide to fill that up with some design or something to fill up the space. Sometimes, spaces are good. It gives the eye some area to rest. Sometimes, you need to pause for a while and take a walk to clear your mind.</p>
<h4>Stay Organized</h4>
<p>This one is very important for me because most of the times I get really disorganized. I start the project with a list of to-dos and I end up losing and not following what I wrote.</p>
<h4>Keep it Simple</h4>
<p>Simplicity is beauty. So don&#8217;t make it too complicated.</p>
<p>Well that&#8217;s it. This post has to end somewhere. Everytime I&#8217;ll be working on a new project I&#8217;ll be going back to these guidelines. This design has been tested to work great on all modern browsers except IE6. For all those folks who are still using Internet Explorer 6, please update your browser or just use a <a href="http://getfirefox.com">better browser</a>.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/PsKrM84rU5E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2009/04/24/7-stages-of-this-redesign/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2009/04/24/7-stages-of-this-redesign/</feedburner:origLink></item>
		<item>
		<title>Google Chrome Beta PNG Opacity bug</title>
		<link>http://feedproxy.google.com/~r/DinoLatoga/~3/5rf88xE_d9o/</link>
		<comments>http://dinolatoga.com/2008/09/04/google-chrome-beta-png-opacity-bug/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 04:19:23 +0000</pubDate>
		<dc:creator>Dino</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[browser bugs]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[opacity]]></category>
		<category><![CDATA[PNG bug]]></category>

		<guid isPermaLink="false">http://dinolatoga.com/?p=39</guid>
		<description><![CDATA[I have just discovered a bug in Google Chrome. I don't know if I'm the first one to discover it or write about it but who cares. I think the Google Chrome developers should know about this, if they still haven't heard of it. Since Google Chrome is still in beta, this bug is just the first of many -- or few.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-42" title="google-chrome-beta-opacity-png-bug" src="http://dinolatoga.com/wp-content/uploads/2008/09/google-chrome-beta-opacity-png-bug.jpg" alt="google-chrome-beta-opacity-png-bug" width="490"/></p>
<p>So what&#8217;s the Chrome bug? It&#8217;s actually a <abbr title="Portable Network Graphics">PNG</abbr> opacity issue. I discovered this bug when I came across <a title="Taptaptap" href="http://www.taptaptap.com" target="_blank">taptaptap</a>, a website for iPhone apps, using the Google Chrome browser. Below are screenshots of the taptaptap website on Google Chrome and Firefox, respectively.</p>
<div id="attachment_40" class="wp-caption aligncenter" style="width: 370px"><img class="size-full wp-image-40" title="Google Chrome PNG bug demonstration" src="http://dinolatoga.com/wp-content/uploads/2008/09/chrome-png-bug.jpg" alt="Google Chrome PNG bug demonstration" width="360" height="439" /><p class="wp-caption-text">Google Chrome PNG bug demonstration. Notice the white borders on the soft-rounded square icons.</p></div>
<div id="attachment_41" class="wp-caption aligncenter" style="width: 368px"><img class="size-full wp-image-41" title="Firefox Taptaptap Screenshot" src="http://dinolatoga.com/wp-content/uploads/2008/09/ff-screenshot.jpg" alt="Firefox Taptaptap Screenshot" width="358" height="440" /><p class="wp-caption-text">Same website as seen on Firefox 2 browser. See the difference?</p></div>
<p>To see the actual bug, simply open taptaptap.com in Google Chrome and click one of those soft rounded square icons. You should be able to see white borders appear on inactive square icons.</p>
<p>Like I said, Google Chrome is still in beta, so it&#8217;s just normal to encounter a few bugs. Another demonstration of a CSS bug on Google Chrome is seen when you visit <a title="Google Chrome Bug" href="http://avalonstar.com/blog/2008/sep/2/gotta-catch-em-all/" target="_blank">Avalonstar</a>.</p>
<blockquote><p>It appears that they’ve exchanged text-shadow for text-shitify.</p></blockquote>
<p>But I must admit, I fell in love with Chrome the first time I saw it. It never fails to give me fast, reliable and organized browsing experience. Google Chrome is fast, just check out the <a title="Google Chrome Benchmarks" href="http://ejohn.org/blog/javascript-performance-rundown/" target="_blank">benchmarks</a> <a title="Google Chrome Benchmarks" href="http://scriptnode.com/article/google-chrome-benchmarks/" target="_blank">here</a>, <a title="Google Chrome Benchmarks" href="http://kourge.net/node/122" target="_blank">there</a> and <a title="Google Chrome Benchmark test" href="http://news.cnet.com/8301-1001_3-10030888-92.html" target="_blank">everywhere</a>.</p>
<p><strong>Update:</strong> Google Chrome 2 has been released and it fixes the PNG Opacity bug. Thanks to the Google Chrome developers for looking into this one major problem.</p>
<img src="http://feeds.feedburner.com/~r/DinoLatoga/~4/5rf88xE_d9o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dinolatoga.com/2008/09/04/google-chrome-beta-png-opacity-bug/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		<feedburner:origLink>http://dinolatoga.com/2008/09/04/google-chrome-beta-png-opacity-bug/</feedburner:origLink></item>
	</channel>
</rss><!-- This Quick Cache file was built for (  dinolatoga.com/feed/ ) in 0.26224 seconds, on Jun 18th, 2013 at 11:02 pm UTC. --><!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Jun 19th, 2013 at 9:02 am UTC --><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  dinolatoga.com/feed/ ) in 0.00191 seconds, on Jun 19th, 2013 at 8:44 am UTC. -->
