<?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>CSSJockey.com &#187; Tips &amp; Tricks</title>
	<atom:link href="http://www.cssjockey.com/topics/tips-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cssjockey.com</link>
	<description>Unique &#38; Practical Web Presence</description>
	<lastBuildDate>Sat, 06 Mar 2010 16:04:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>An easy way to create light-box with jQuery &amp; CSS</title>
		<link>http://www.cssjockey.com/tips-tricks/an-easy-way-to-create-light-box-with-jquery-css</link>
		<comments>http://www.cssjockey.com/tips-tricks/an-easy-way-to-create-light-box-with-jquery-css#comments</comments>
		<pubDate>Fri, 23 Oct 2009 18:30:52 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[jQuery Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[web-design-tips]]></category>
		<category><![CDATA[webdesign-tips]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=768</guid>
		<description><![CDATA[As you already know that I've been working on improving the performance of my website and I needed a simple solution to create light-box effect for Live-Chat on this website. I could have used one of the available jQuery plug-ins out there however, the idea was to optimize the code with minimal use of heavy third-party scripts and CSS.]]></description>
			<content:encoded><![CDATA[<div id="attachment_768" class="wp-caption aligncenter" style="width: 597px"><a href="http://www.cssjockey.com/files/downloads/code/jquery_css_lightbox/index.htm" target="_blank"><img class="aligncenter size-full wp-image-782" title="how-to-create-light-box-with-css-jquery" src="http://www.cssjockey.com/wp-content/uploads/2009/10/how-to-create-light-box-with-css-jquery.jpg" alt="how-to-create-light-box-with-css-jquery" width="587" height="220" /></a><p class="wp-caption-text">Simple light-box effect with jQuery and CSS</p></div>
<p>As you already know that I&#8217;ve been working on <a title="Recent Performance Updates on CSSJockey.com" href="http://www.cssjockey.com/general-news/performance-upgrade">improving the performance</a> of my website and I needed a simple solution to create light-box effect for <a title="Live Chat" href="http://www.cssjockey.com/live-chat">Live-Chat</a> on this website. I had many options to choose from available <a title="Google Search for light-box" href="http://www.google.com/#hl=en&amp;source=hp&amp;q=jquery+lightbox&amp;aq=f&amp;aqi=g10&amp;oq=&amp;fp=a70abe15f561671b" target="_blank">jQuery plug-ins</a> however, the idea was to optimize the code with minimal use of heavy third-party scripts and CSS. Moreover, Only thing I needed was a light-box effect without any other functionality.</p>
<p>So I created the light-box effect with a few lines of code using CSS and jQuery.</p>
<p><a title="View Live Demo" href="http://www.cssjockey.com/files/downloads/code/jquery_css_lightbox/index.htm" target="_blank"><strong>View Live Demo</strong></a></p>
<p>Let&#8217;s start coding <img src='http://www.cssjockey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>xHTML Code</h2>
<p>Place this code within &lt;body&gt;&lt;/body&gt; tags where ever you like.</p>
<pre name="code" class="html">&lt;a id="show-panel" href="#"&gt;Show Panel&lt;/a&gt;

&lt;div id="lightbox-panel"&gt;
&lt;h2&gt;Lightbox Panel&lt;/h2&gt;
&lt;p&gt;You can add any valid content here.&lt;/p&gt;
&lt;p align="center"&gt;
&lt;a id="close-panel" href="#"&gt;Close this window&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;&lt;!-- /lightbox-panel --&gt;

&lt;div id="lightbox"&gt; &lt;/div&gt;&lt;!-- /lightbox --&gt;</pre>
<p>First line of the above code is a link with id &#8220;show-panel&#8221; which will display the &#8220;light-box&#8221; and the &#8220;lightbox-panel&#8221; DIVs, similarly on line 7 we have a link with ID &#8220;close-panel&#8221; to hide these DIVs. This will be handled by jQuery of course.</p>
<p><strong class="red">#lightbox-panel</strong> will hold the content to be dispalyed and <strong class="red">#lightbox</strong> will add a transparent background behind our content panel.  Let&#8217;s write some CSS code to stylize these two DIVs before we add the functionality to our links with jQuery.</p>
<h2>CSS Code</h2>
<p>You can add this code within the document&#8217;s &lt;head&gt;&lt;/head&gt; tag or in any linked style sheet.</p>
<pre name="code" class="css">* /Lightbox background */
#lightbox {
 display:none;
 background:#000000;
 opacity:0.9;
 filter:alpha(opacity=90);
 position:absolute;
 top:0px;
 left:0px;
 min-width:100%;
 min-height:100%;
 z-index:1000;
}
/* Lightbox panel with some content */
#lightbox-panel {
 display:none;
 position:fixed;
 top:100px;
 left:50%;
 margin-left:-200px;
 width:400px;
 background:#FFFFFF;
 padding:10px 15px 10px 15px;
 border:2px solid #CCCCCC;
 z-index:1001;
}</pre>
<p><strong>Note:</strong> The z-index value for #lightbox-panel should be greater than z-index value of #lightbox to display it above the transparent background and both should have the property display as none so they should not show up by default or if the users have Javascript disabled in their browsers.</p>
<p>Let&#8217;s put some life to our code with jQuery.</p>
<h2>jQuery Code</h2>
<p>You can add this code within the document&#8217;s &lt;head&gt;&lt;/head&gt; tag and we are done.</p>
<pre name="code" class="javascript">&lt;script type="text/javascript" src="PATH_TO/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
 $(document).ready(function(){
 $("a#show-panel").click(function(){
 $("#lightbox, #lightbox-panel").fadeIn(300);
 })
 $("a#close-panel").click(function(){
 $("#lightbox, #lightbox-panel").fadeOut(300);
 })
 })
&lt;/script&gt;</pre>
<h4>Pretty simple, huh!!</h4>
<p>Could it get easier than this?</p>
<p>Once you click the link with ID <strong class="red">&#8220;show-panel&#8221;</strong> it will display both the DIVs with some nice fade effect and if you click the link with ID <strong class="red">&#8220;close-panel&#8221;</strong> it will hide these DIVs.</p>
<p>I hope you enjoyed this little trick to create simple light-box effect with CSS and jQuery and You are most welcome to share your inputs and code in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/tips-tricks/an-easy-way-to-create-light-box-with-jquery-css/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How to read minified CSS with ease?</title>
		<link>http://www.cssjockey.com/tips-tricks/uncompress-minified-css</link>
		<comments>http://www.cssjockey.com/tips-tricks/uncompress-minified-css#comments</comments>
		<pubDate>Mon, 12 Oct 2009 14:07:54 +0000</pubDate>
		<dc:creator>Abhinav Sood</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=766</guid>
		<description><![CDATA[Today we have a quick tip for those who feel depressed and cry when they see the holy grail of CSS in one single line in their themes. Recently I started hearing from a lot of people complaining about their theme developers using minified CSS in their themes for maximizing performance without any consideration for their ease of use or customization...]]></description>
			<content:encoded><![CDATA[<p>Today we have a quick tip for those who feel depressed and cry when they see the holy grail of CSS in one single line in their website / theme stylesheets.</p>
<p>Recently I started hearing from a lot of people complaining about their theme developers using minified CSS in their themes for maximizing performance without any consideration for their ease of use / customization. People keep asking me if there are tools that convert minified CSS back to normal human-readable form and recently someone even asked me to do a job – normalize some minified stylesheets (of course I didn’t do it and rob him off!)</p>
<p>Whether or not developers should minify CSS when giving out themes / websites has been a subject of debate for a long time but why developers choose to minify some parts of their stylesheets has often been overlooked. Performance issues for larger projects, minifying the reset styles (you don’t have to change them anyway!) and non-developer license are just some of the reasons!</p>
<p>Anyway, coming back to the subject of this post – How can you read minified CSS with ease?<br />
(No, we are not going to install any 3rd party software!)</p>
<p>Simply validate the CSS (only the minified part if you have other files attached as well) in question using the <a title="W3C.org CSS Validator" href="http://jigsaw.w3.org/css-validator/">W3C’s CSS Validation</a> service!</p>
<p>The output of the validation check is:</p>
<ol>
<li>whether or not, your CSS validates to standards set by W3C.</li>
<li>Normal, Properly Formatted and Easily Readable version of your minified / compressed CSS</li>
</ol>
<p>You need to keep the formatted and decompressed CSS? Just copy it from the validation output and replace your version. Voila!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/tips-tricks/uncompress-minified-css/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google Insights: See What the World is Searching For</title>
		<link>http://www.cssjockey.com/seo/google-insights-see-what-the-world-is-searching-for</link>
		<comments>http://www.cssjockey.com/seo/google-insights-see-what-the-world-is-searching-for#comments</comments>
		<pubDate>Sat, 25 Apr 2009 12:50:55 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tools & Apps]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web-design-tips]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=697</guid>
		<description><![CDATA[It's a competitive world out there. To beat the heat, you need to know much more and most up to date info about the market numbers, than your rivals. And in such situation, if you're not making use of the excellent tools available online, you ought to be left out way behind the world. It's an era of online marketing...]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a competitive world out there. To beat the heat, you need to know much more and most up to date info about the market numbers, than your rivals. And in such situation, if you&#8217;re not making use of the excellent tools available online, you ought to be left out way behind the world. It&#8217;s an era of online marketing. I&#8217;m sure you won&#8217;t quote me wrong if I say, &#8220;To be a great businessman in today&#8217;s time, all you need to know is, how to use which tool where? That&#8217;s it! Isn&#8217;t that so easy!!</p>
<p>I know the competition still remains tough, but this tool makes it a lot easy to handle. I&#8217;m talking about the <strong><a title="Google Insights" href="http://www.google.com/insights/search/" target="_blank">Google Insights</a></strong>. A great tool to give you an insight knowledge about who is looking for what; where; how much and when. Its like having your market researchers spread across the world on the click on a button! Well that&#8217;s Google!! <em>Simplifying things and making your life easy</em>.</p>
<p>With this tool you can know all about a specific keyword, or a set of keywords by graphing the information based on web, images, news or products. You can also get the data within specified time frame and categories. That&#8217;s not all! It gives you the requested information for the related keywords also.</p>
<p>Well that&#8217;s a brief about this exciting tool. I&#8217;m sure you&#8217;ve already started trying your hands on it. But hang on! Allow me to highlight just a few more features of this tool.</p>
<ul>
<li>Get the data with region, time range and category filters.</li>
<li>Analyze search keyword favored across regions, categories, and time frames.</li>
<li>Get related news headlines.</li>
<li>Get results in clear graph and map presentation.</li>
<li>Export and download data in .CSV format.</li>
</ul>
<p>Rest, I&#8217;ll leave them for you to find out!! Just make sure you share the findings with me too.. <img src='http://www.cssjockey.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p><a title="Google Insights Help" href="http://www.google.com/support/insights/" target="_blank">Click here</a> to know more about this tool and Stay tuned for more..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/seo/google-insights-see-what-the-world-is-searching-for/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>CSS Tips &#8211; Get Consistent Results in All Browsers</title>
		<link>http://www.cssjockey.com/tips-tricks/css-get-consistent-results-in-browsers</link>
		<comments>http://www.cssjockey.com/tips-tricks/css-get-consistent-results-in-browsers#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:50:47 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[webdesign-tips]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=696</guid>
		<description><![CDATA[<b>Web standards</b> are prevailing guidelines used on the World Wide Web to ensure web sites and information is accessible to all in the most efficient manner. Most Web browsers have different default settings for the base margins and padding...]]></description>
			<content:encoded><![CDATA[<p>Web standards are prevailing guidelines used on the World Wide Web to ensure web sites and information is accessible to all in the most efficient manner. Most Web browsers have different default settings for the base margin and padding.</p>
<p>This means that if you don&#8217;t set a margin and padding on your body and xHTML tags, you could get inconsistent results on the page depending upon which browser your users are using to view the page. A simple way to solve this is to set all the margin and padding on the xHTML and body tags to 0:</p>
<pre class="css" name="code">
html, body {
margin: 0px;
padding: 0px;
}
</pre>
<p>This will keep your design structure in the same place on all browsers.</p>
<h3>Borders</h3>
<p>You may be thinking &#8220;but no browsers have a border around the body element by default&#8221;. This is not strictly true. Internet Explorer has a transparent or invisible border around elements. Unless you set the border to 0, that border will mess up your web-page layouts. So add the following to your body and xhtml styles:</p>
<pre class="css" name="code">
html, body {
margin: 0px;
padding: 0px;
border: 0px;
}
</pre>
<div class="info">Here&#8217;s a nice and detailed article on CSS Reset: <a href="http://sixrevisions.com/css/css-tips/css-tip-1-resetting-your-styles-with-css-reset/" target="_blank">Resetting Your Styles with CSS Reset</a> Stay tuned for more web-design tips.
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/tips-tricks/css-get-consistent-results-in-browsers/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enable Auto-Complete Search in WordPress Blog!</title>
		<link>http://www.cssjockey.com/web-design-tutorials/enable-auto-complete-search-in-wordpress-blog</link>
		<comments>http://www.cssjockey.com/web-design-tutorials/enable-auto-complete-search-in-wordpress-blog#comments</comments>
		<pubDate>Mon, 09 Mar 2009 21:41:04 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=626</guid>
		<description><![CDATA[<strong>"One sometimes finds what one is not looking for."</strong>
This quote by <strong>Alexander Fleming </strong>explains all what I am going to share with you today. I am pretty sure that you are aware of <strong>Google Search Suggest</strong> and <strong>Yahoo Search Assist</strong> feature. This feature helps you effortlessly find exactly what you’re looking for and no doubt, it lists a few suggestions to keep the user looking for more and more.]]></description>
			<content:encoded><![CDATA[<h3 style="text-align: center;">&#8220;One sometimes finds what one is not looking for&#8221;</h3>
<p>This quote by <strong>Alexander Fleming </strong>explains all what I am going to share with you today. I am pretty sure that you are aware of <strong>Google Search Suggest</strong> and <strong>Yahoo Search Assist</strong> feature. This feature helps you effortlessly find exactly what you’re looking for. No doubt, it lists a few suggestions to keep the user looking for more and more.</p>
<p>As you type something in the search box, it automatically offers search terms and phrases in real time. How nice will it be to have the same feature on your website or blog. In this post, I am going to explain an easy way to add <strong>search suggestion feature</strong> on your WordPress blog or website.</p>
<h3>Things You’ll Need</h3>
<p><strong>jQuery</strong>:  You can download the lates version from <a title="jQuery" href="http://jquery.com/" target="_blank">jQuery.com</a><br />
<strong>Autocomplete Plugin</strong>: Download this plug-in by Jörn Zaefferer from <a title="jQuery Auto Complete Plug-in" href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" target="_blank">http://bassistance.de</a></p>
<h3>Now let&#8217;s play with some code</h3>
<p>Include this code within <strong>&lt;head&gt;..&lt;/head&gt;</strong> tag.</p>
<pre name="code" class="HTML">
&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.autocomplete.pack.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="js/jquery.autocomplete.css" media="screen" /&gt;
</pre>
<p>Here I am assuming you are using &#8220;<strong>js</strong>&#8221; folder to keep all your java scripts and supported files. You may need to update the location of these files based on your folder setup.</p>
<p><strong>Here&#8217;s the actual jQuery code to enable this feature on an input box:</strong></p>
<pre name="code" class="HTML">
&lt;script type="text/javascript"&gt;
var data = "Search Terms Separated With Spaces".split(" ");
$("#myInputBox").autocomplete(data);
&lt;/script&gt;
</pre>
<p>Variable <strong>&#8220;data&#8221;</strong> hold the terms that you would like the user to see in the search suggestion list and <strong>$(&#8220;#myInputBox&#8221;)</strong> is the <strong>id</strong> of the search input box.</p>
<p>Let&#8217;s check out how we can automatically call WordPress tags in our search suggestions, using WordPress <strong>wpdb</strong> class:</p>
<pre name="code" class="PHP">
&lt;?php
global $wpdb;
$search_tags = $wpdb-&gt;get_results('SELECT name FROM $wpdb-&gt;terms');
foreach ($search_tags as $mytag){
echo $mytag-&gt;name. ' ';
}
?&gt;
</pre>
<p>Here I am using WordPress <strong>wpdb</strong> class to fetch all tags assigned to the posts.</p>
<p>Here&#8217;s the complete code to enable this feature on your WordPress blog. Just replace the folder name with actual folder and the jQuery selector <strong>$(&#8220;#myInputBox&#8221;)</strong> with the actual id of search input box.</p>
<pre name="code" class="HTML">
&lt;script type="text/javascript" src="&lt;?PHP bloginfo('template_url'); ?&gt;/REPLACE_THIS_WITH_THE_ACTUAL_FOLDER/jquery.autocomplete.pack.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/REPLACE_THIS_WITH_THE_ACTUAL_FOLDER/jquery.autocomplete.css" media="screen" /&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){
var data = '&lt;?php global $wpdb; $search_tags = $wpdb-&gt;get_results("SELECT name FROM $wpdb-&gt;terms"); foreach ($search_tags as $mytag){ echo $mytag-&gt;name. " "; } ?&gt;'.split(" ");
$("#ID_OF_SEARCH_INPUT_BOX").autocomplete(data);
})
&lt;/script&gt;
</pre>
<p><a title="Download" href="http://www.cssjockey.com/files/downloads/code/auto-complete/auto-complete-code.zip" target="_blank">Download</a> this file which contains the above mentioned code.</p>
<p>If you face any issues or need help implementing this code on your blog, feel free to post your queries in our <a title="CJ Google Group" href="http://groups.google.com/group/cssjockey" target="_blank">forum</a>. Don&#8217;t forget to add your inputs in the comments section below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/web-design-tutorials/enable-auto-complete-search-in-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>An easy way to create Loading Bar!</title>
		<link>http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-loading-bar</link>
		<comments>http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-loading-bar#comments</comments>
		<pubDate>Tue, 03 Mar 2009 21:50:17 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[loading]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=573</guid>
		<description><![CDATA[Recently, while browsing I landed on a page on StackOverflow.com where people were discussing about how I implemented this loading bar on CSSJockey.com. I could sense a lot of confusion in the discussion so thought I would take the mystery out as I love to share best practices. Here's how you can create a loading bar in few steps..]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>&#8220;People count up the faults of those who keep them waiting&#8221;</strong><br />
Seems like I kept them busy decoding this loading bar <img src='http://www.cssjockey.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="attachment_574" class="wp-caption aligncenter" style="width: 597px"><img class="size-full wp-image-574" title="An easy way to create loading bar!" src="http://www.cssjockey.com/wp-content/uploads/2009/03/how-to-create-a-loading-bar.jpg" alt="How to create a loading bar" width="587" height="100" /><p class="wp-caption-text">How to create a loading bar</p></div>
<p>Recently, while browsing I landed on a page on <a title="How is the loading script on this website implemented?" href="http://stackoverflow.com/questions/598071/how-is-the-loading-script-on-this-website-implemented" target="_blank">StackOverflow.com</a> where people were discussing about how I implemented this loading bar on CSSJockey.com. I could sense a lot of confusion in the discussion so thought I would take the mystery out as I love to <strong>share best practices</strong>. Here&#8217;s how you can create a loading bar in few steps..</p>
<h3>Things You&#8217;ll Need</h3>
<ol>
<li>A nice loading image: If you are good in creating animated GIF images that&#8217;s nice, otherwise you can create a loading image with this cool <a title="Ajax Load - Create Animated Gif Loading Images" href="http://www.ajaxload.info/" target="_blank">Ajax Loading Gif Generator</a>.</li>
<li>jQuery: We are creating this loading bar using jQuery so download <a title="jQuery" href="http://www.jquery.com" target="_blank">jQuery latest version here</a>.</li>
</ol>
<h3>jQuery Code within &lt;head&gt;..&lt;/head&gt; tags</h3>
<pre name="code" class="HTML">
&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(window).load(function(){
      $("#loading").hide();
})
&lt;/script&gt;
</pre>
<h3>HTML Code within &lt;body&gt;..&lt;/body&gt;tags</h3>
<pre name="code" class="HTML">
&lt;div id="loading"&gt;
Loading content, please wait..
&lt;img src="loading.gif" alt="loading.." /&gt;
&lt;/div&gt;
</pre>
<p>Make sure you add this code just below the starting &lt;body&gt; tag so it should be downloaded first.</p>
<h3>CSS Code for loading DIV</h3>
<pre class="css" name="code">
#loading {
    position:absolute;
    width:300px;
    top:0px;
    left:50%;
    margin-left:-150px;
    text-align:center;
    padding:7px 0 0 0;
    font:bold 11px Arial, Helvetica, sans-serif;
}
</pre>
<p>Use your imagination and create something nice &amp; unique.</p>
<p><strong><a title="Live Demo" href="http://www.cssjockey.com/files/downloads/code/loading/index.php" target="_blank">View Demo</a></strong> | <strong><a title="Download" href="http://www.cssjockey.com/files/downloads/code/loading/loading.zip" target="_blank">Download Source Code<br />
</a></strong></p>
<p>Your comment, suggestion and feedback is highly appreciated.</p>
<p>There&#8217;s more to come to stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-loading-bar/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Using Social Networks to get more Google Juice</title>
		<link>http://www.cssjockey.com/seo/search-engine-optimization-using-social-networks-to-get-more-google-juice</link>
		<comments>http://www.cssjockey.com/seo/search-engine-optimization-using-social-networks-to-get-more-google-juice#comments</comments>
		<pubDate>Wed, 28 Jan 2009 14:55:07 +0000</pubDate>
		<dc:creator>CSSJockey</dc:creator>
				<category><![CDATA[Branding]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.cssjockey.com/?p=481</guid>
		<description><![CDATA[I hope you are benefiting from Part 1 and Part 2 of Google Juice: Hard to Get but Tasty to Drink Series. As promised, I am here with the Part 3 of this Google Juice Series in which I am going to share with you a very effective trick to place your website quicker and higher up in Google Search results.]]></description>
			<content:encoded><![CDATA[<p>Hello readers, I hope you are benefiting from <a title="Google Juice: Hard To Get But Tasty To Drink! Part-1" href="http://www.cssjockey.com/seo/search-engine-optimization-google-juice-hard-to-get-but-tasty-to-drink" target="_self">Part 1</a> and <a title="Update Services and Optimize Link Structure" href="http://www.cssjockey.com/seo/google-juice-ping-update-services-optimize-link-structure" target="_self">Part 2</a> of <em><strong>Google Juice: Hard to Get but Tasty to Drink Series</strong></em>. As promised, I am here with the Part 3 of this Google Juice Series in which I am going to share with you a very effective trick to place your website quicker and higher up in <strong>Google Search</strong> results.</p>
<p>Are you wondering how promoting your pages on Social Networks can get you more Google Juice? Well, let me explain this with an example:</p>
<p>Search Google for the term <a title="Google Search - Floral v/s Grunge" href="http://www.google.co.in/search?hl=en&amp;q=Floral+V%2FS+Grunge&amp;btnG=Search&amp;meta=" target="_blank">Floral V/S Grunge</a>, the first result will points you to one of my earlier posts. Now take a closer look at the other search results.</p>
<p><strong>Did you notice something? </strong>Observe a bit carefully and be surprised! You&#8217;ll see that the Floral VS Grunge post is listed on almost all major services like Flickr, Digg, BlogCatalog, Twitter, Friendfeed, Facebook and many more. And all of them are indexed in Google and on the very first page!</p>
<h3>Wow! How does it all work?</h3>
<p>This is no big secret! It&#8217;s only a technique to some Google Juice from a various social networking websites. All the services that you saw in the search results are those communities-based social networks that I use to keep in touch with my friends, family and lovely readers. All I did after publishing a post was to share the Post Title and the Permalink with all my contacts on different social networks. This way I get a lot of people to visit my posts on the website and the real magic is Google Juice that comes along.  When you search for relevant terms, many of the listed results will point to your post/page either directly or indirectly. <em><strong>You get the point, right!!</strong></em></p>
<h3>But isn&#8217;t this spamming?</h3>
<p><em>No. It is absolutely not.</em> I just shared my post with only my contacts that have chosen to receive updates from me. People follow me on <a title="Follow Me" href="http://www.twitter.com/cssjockey" target="_blank">twitter</a> because they want to keep a track of whatever I do. Subscribers want me to update them with new posts and pages. If I set my Facebook, Orkut or IM status to a link pointing to my blog posts, I am not spamming anyone&#8217;s social profiles or emails!</p>
<p>I am not sending anyone any emails to buy my services or whatsoever. I just created something and I am sharing it. Sharing is caring, not spamming!</p>
<h3>So, how do I go about with this?</h3>
<p><strong> </strong>Start using social networks. Create an account on MyBlogLog (Yahoo), BlogCatalog, Twitter, Friendfeed, Facebook, Twitter, StumbleUpon, Digg, Plurk, Del.icio.us, etc. There are hundreds of them all around the Internet. Find some time to read reviews and do research on which ones will be the most useful for you and how much time you can spare to spend on these.  What I feel is that the few moments you can spare to spend on promoting your posts effectively for a little extra Google Juice. Worth it, man!</p>
<h3>And, to make your life easier&#8230;</h3>
<p>Now, I am going to recommend to you, an awesome service that will save you a lot of time and effort. It&#8217;s definitely going to make your life a lot easier! <a title="Ping.fm" href="http://www.ping.fm" target="_blank">Ping.FM</a> is a service that you can use to share your stuff and thoughts on multiple websites with just one click. It is exactly like the website puts it, &#8220;Ping.fm is a simple service that makes updating your social networks a snap.&#8221;</p>
<p>I know time is precious, and so here you go with Ping.FM, But some more icing on the cake is always nice. So I&#8217;d further go on to share this nifty <a title="PingFire - Firefox Add-on" href="https://addons.mozilla.org/en-US/firefox/addon/8365" target="_blank">Firefox Add-on &#8211; PingFire</a>. PingFire is a Firefox add-on for Ping.FM service. It adds a tiny button in your browser which helps to use this service with great ease and comfort.</p>
<p>To use PingFire, you need to update your username and application key in the add-on options. You will find your application key at <a title="Ping.fm - Application Key" href="http://ping.fm/key/" target="_blank">http://ping.fm/key/</a> and you need to be logged in to Ping.fm to access this URI. So go ahead, implement these simple tips and extract some Google Juice out of social networks that you use.</p>
<p>I hope you enjoyed reading this post and learned something new! I&#8217;ve more in store for you but I&#8217;ll keep them for a later posts. Please feel free to share some of your SEO tips. Drop us a comment using the form below. Your comments and feedback are valuable and much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssjockey.com/seo/search-engine-optimization-using-social-networks-to-get-more-google-juice/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
