<?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>Sunils blog &#187; JQuery</title>
	<atom:link href="http://www.myhtmlworld.com/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.myhtmlworld.com</link>
	<description>myhtmlworld.com</description>
	<lastBuildDate>Mon, 14 Nov 2011 09:27:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Popular JavaScripts which makes the web more richer and interactive</title>
		<link>http://www.myhtmlworld.com/web-development/popular-javascripts-web-richer-interactive.html</link>
		<comments>http://www.myhtmlworld.com/web-development/popular-javascripts-web-richer-interactive.html#comments</comments>
		<pubDate>Sat, 03 Oct 2009 06:51:53 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Form validation]]></category>
		<category><![CDATA[greybox]]></category>
		<category><![CDATA[highslide]]></category>
		<category><![CDATA[Image gallery showcasing]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[Moo tools]]></category>
		<category><![CDATA[shadowbox]]></category>
		<category><![CDATA[Thickbox]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=464</guid>
		<description><![CDATA[Now a days, JavaScript is unavoidable for any website. JavaScript enriches your website in the form of giving more interactivity to your web page and help to dressing up your web page. The use of JavaScript can be listed like this Checking and correcting the form data in the user side Dynamically change the web [...]]]></description>
			<content:encoded><![CDATA[<p>Now a days, JavaScript is unavoidable for any website. JavaScript enriches your website in the form of giving more interactivity to your web page and help to dressing up your web page.</p>
<p>The use of JavaScript can be listed like this</p>
<ol>
<li>Checking and correcting the form data in the user side</li>
<li>Dynamically change the web page without reload it.</li>
<li>Create applications like calculator, simple applications and games.</li>
<li>Add effects to a web page which will attract more visitors</li>
</ol>
<p>These are the important use of JavaScript. Some of them are very important, some of them not that much. Here I am showcasing some important JavaScript tools which commonly using in website.<br />
<span id="more-464"></span></p>
<p></p>
<h3>JavaScript form validation</h3>
<p>The most important and common functionality of a JavaScript is form validation. Most of the people using different JavaScript libraries such as Jquery, Moo tools, etc etc. As I am a fan of Jquery, I personally use <a rel="external nofollow" href="http://jquery.bassistance.de/validate/demo/" target="_blank">bassistance JavaScript validation</a>. It is simple to use and giving lot of options</p>
<h3>Showcase image / video gallery</h3>
<p>There are a lot of JavaScript libraries are available for showcasing images and videos even web pages. Here is the very popular JavaScript which used to overlay images / video / web page.</p>
<p><strong><a rel="external nofollow" href="http://www.huddletogether.com/projects/lightbox2/" target="_blank">Lighbox</a> </strong></p>
<blockquote><p>Lightbox is a simple, unobtrusive script used to overlay images on the current page. It&#8217;s a snap to setup and works on all modern browsers.</p></blockquote>
<p><strong><a rel="external nofollow" href="http://jquery.com/demo/thickbox/" target="_blank">Thickbox</a></strong></p>
<blockquote><p>ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. Its function is to show a single image, multiple images, inline content, iframed content, or content served through AJAX in a hybrid modal.</p></blockquote>
<p><strong><a rel="external nofollow" href="http://orangoo.com/labs/GreyBox/" target="_blank">Greybox </a></strong></p>
<blockquote><p>GreyBox can be used to display websites, images and other content in a beautiful way.</p></blockquote>
<p><strong><a rel="external nofollow" href="http://www.shadowbox-js.com/" target="_blank">shadow box</a></strong></p>
<blockquote><p>Shadowbox is an online media viewer application that supports all of the web&#8217;s most popular media publishing formats.</p></blockquote>
<p><strong><a rel="external nofollow" href="http://highslide.com/" target="_blank">Highslide</a></strong></p>
<blockquote><p>Highslide JS is an open source image, media and gallery viewer written in JavaScript.</p></blockquote>
<p><strong><a rel="external nofollow" href="http://sorgalla.com/jcarousel/" target="_blank">jcarousel</a></strong></p>
<blockquote><p>jCarousel is a jQuery plugin for controlling a list of items in horizontal or vertical order. The items, which can be static HTML content or loaded with (or without) AJAX, can be scrolled back and forth (with or without animation).</p></blockquote>
<p><strong><a rel="external nofollow" href="http://code.google.com/p/swfobject/" target="_blank">SWFobject</a> </strong></p>
<blockquote><p>SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file</p></blockquote>
<h4>Miscellaneous scripts</h4>
<ul>
<li><strong><a rel="external nofollow" href="http://www.alistapart.com/articles/dropdowns/" target="_blank">Drop down menus</a> </strong></li>
<li><strong><a rel="external nofollow" href="http://stilbuero.de/jquery/tabs_3/" target="_blank">Tab styles</a> </strong></li>
<li><strong><a rel="external nofollow" href="www.pushuptheweb.com" target="_blank">Pushup JavaScript</a></strong></li>
</ul>
<p>For integrating all these scripts, person requires only knowledge of basic html and JavaScript. If you are using some other tools please share with me through the comment form.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/popular-javascripts-web-richer-interactive.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Collapsing and expanding footer using JQuery</title>
		<link>http://www.myhtmlworld.com/web-development/collapsing-expanding-footer.html</link>
		<comments>http://www.myhtmlworld.com/web-development/collapsing-expanding-footer.html#comments</comments>
		<pubDate>Thu, 24 Sep 2009 03:15:43 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[collapse]]></category>
		<category><![CDATA[expand]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=451</guid>
		<description><![CDATA[Footer concept changing day by day. Web2 footer is big and lot of links and information carrying on that. Here you can see different types of footers. Today I am going to discuss about collapsing and expanding footers. Most of the site doesn&#8217;t have collapsing and expanding footer. But It would be nice if you [...]]]></description>
			<content:encoded><![CDATA[<p>Footer concept changing day by day. Web2 footer is big and lot of links and information carrying on that. <a rel="external nofollow" href="http://tutorialblog.org/web-design-elements-footers/" target="_blank">Here</a> you can see different types of footers.</p>
<p>Today I am going to discuss about collapsing and expanding footers. Most of the site doesn&#8217;t have collapsing and expanding footer. But It would be nice if you have one like that. Because it is easy for the user. If he wants to see that he can otherwise not. It avoids the unnecessary scroll.</p>
<p><span id="more-451"></span></p>
<p><a rel="nofollow" href="/wp-content/sources/collapse/" target="_blank">Demo</a></p>
<p><a href="/wp-content/uploads/2009/09/collapse-expand.zip">Source</a></p>
<p>Here is some code snippet that you can try for your site. It uses Jquery as javascript framework. <a rel="external nofollow" href="http://docs.jquery.com/Downloading_jQuery" target="_blank">Download jquery</a> from here. It is very easy to integrate.</p>
<p>First I am creating one HTML file. I showed here  between  to tag only.</p>
<pre lang="HTML">
<div id="footer">
<div id="mainfooter">
<a id="toggle-button" href="javascript:void(0)">Toggle footer</a></div>
<div id="subfooter">

links are going here</div>
</div>
</pre>
<p>In the main footer div I added a link named toggle button. This is our action link.</p>
<p>Now we need to include jquery in the header.</p>
<p>You can simply include like this inside the  of your html</p>
<pre lang="Javascript"><script src="jquery.js" type="'text/javascript'"></script></pre>
<p>If you have doubt please <a href="/web-development/different-ways-to-include-jquery-in-your-website.html">check different ways to include Jquery?</a></p>
<p>Now our simple javascript to do the functionality. Just paste this after the inclusion of jquery</p>
<pre lang="Javascript"><script type="text/javascript"></script></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/collapsing-expanding-footer.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Different ways to include jQuery in your website</title>
		<link>http://www.myhtmlworld.com/web-development/different-ways-to-include-jquery-in-your-website.html</link>
		<comments>http://www.myhtmlworld.com/web-development/different-ways-to-include-jquery-in-your-website.html#comments</comments>
		<pubDate>Sat, 30 May 2009 16:44:25 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CDN]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=317</guid>
		<description><![CDATA[jQuery is javascript frame work which simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. You can include jQuery in different ways.  1.Download it from jQuery site and include it into your webpage 2.Include it from Google server google.load('jquery', '1.3.1'); or 3.Include it from Jquery&#8217;s site  These are the different [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is javascript frame work which simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.</p>
<p>You can include jQuery in different ways. </p>
<p>1.Download it from jQuery site and include it into your webpage</p>
<pre lang="Javascript" line="1"><script src="javascript/jquery-1.3.2.min.js" type="text/javascript"></script></pre>
<p>2.Include it from Google server</p>
<pre lang="Javascript" line="1"><script src="https://www.google.com/jsapi"></script>
<script>
google.load('jquery', '1.3.1');
</script>

or

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script></pre>
<p>3.Include it from Jquery&#8217;s site </p>
<pre lang="Javascript" line="1"><script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script></pre>
<p>These are the different methods to include jQuery. Each of them have there own advantages and disadvantages.</p>
<p><span id="more-317"></span></p>
<p>First one has better control. Because this is your server and if u needs to modify the code, you can. Other method depends on other server, so, it may break the connection if that server is down.</p>
<p>Second method is, including it from Googles server. In that first one supports https connection. Second one supports normal http connection. You can pass the jquery version depends upon your choice. If you want to update you need to include appropriate jquery versions.</p>
<p>Third method is including it directly from jQuery server. And it is linking directly to latest jQuery. So you need not bother about the jQuery updation.</p>
<p>Hope I have covered different methods include jQuery. What do you think? Is there any other method to include jQuery?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/different-ways-to-include-jquery-in-your-website.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Find the biggest from the unordered list or ordered list</title>
		<link>http://www.myhtmlworld.com/web-development/find-the-biggest-from-the-unordered-list-or-ordered-list.html</link>
		<comments>http://www.myhtmlworld.com/web-development/find-the-biggest-from-the-unordered-list-or-ordered-list.html#comments</comments>
		<pubDate>Tue, 14 Apr 2009 04:21:47 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Biggest li]]></category>
		<category><![CDATA[formatting UL li]]></category>
		<category><![CDATA[formatting unordered list]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=256</guid>
		<description><![CDATA[Yesterday I came around the situation to find the biggest li from the list of unordered list (UL). I have done that. And added a class which is the bigger in the list. Same can be apply to the ordered list (OL) too. I think it will be helpful for the others too. It is using [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I came around the situation to find the biggest li from the list of unordered list (UL). I have done that. And added a class which is the bigger in the list. Same can be apply to the ordered list (OL) too. I think it will be helpful for the others too. It is using jQuery as javascript framework. </p>
<p>If you have any questions or alternate solutions please let me know.</p>
<p>The code:</p>
<pre lang="HTML" line="1">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>

<script type='text/javascript' src='jquery-min.js'></script>
<script type="text/javascript">
    $(document).ready(function() {
		len=$("#list li").length;
		bigger=0;
		for(i=0;i<len;i++)
		{
			val1 = $("#list li").eq(i).text().length;
			if(val1 > bigger)
			{
				bigger = val1;
				pos =  i;
			}
			else
			{
				bigger = bigger;

			}
		}
	alert("postion "+ (pos + 1) + " is the biggest with "  +bigger+ " characters");
	$("#list li").eq(pos).addClass('bigger');
});
</script>
</head>
<body>
<ul id="list">
<li>123</li>
<li>1234</li>
<li>123456789</li>
<li>12345</li>
</ul>

</body>
</html>
</pre>
<p><a class="download" href='http://www.myhtmlworld.com/wp-content/uploads/2009/04/findthebiggest.zip'>Download the source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/find-the-biggest-from-the-unordered-list-or-ordered-list.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to make a colour scheme for your website using JQuery and CSS</title>
		<link>http://www.myhtmlworld.com/web-development/how-make-colour-scheme-jquery-css.html</link>
		<comments>http://www.myhtmlworld.com/web-development/how-make-colour-scheme-jquery-css.html#comments</comments>
		<pubDate>Sat, 17 Jan 2009 13:12:42 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Colour Scheme]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=114</guid>
		<description><![CDATA[It is an interesting thing that if we see some changes on a website, both content wise and layout or colour wise. So I decided to add a colour scheme to my blog.So the visitors can select a colour scheme from these buttons. Have you notice the 6 buttons in this page on the header [...]]]></description>
			<content:encoded><![CDATA[<p>It is an interesting thing that if we see some changes on a website, both content wise and layout or colour wise. So I decided to add a colour scheme to my blog.So the visitors can select a colour scheme from these buttons. Have you notice the 6 buttons in this page on the header portion?</p>
<p></p>
<p>First of all I have placed 6 buttons on the header portion of this blog for the visitors to select their choice. viz<br />
1. SeaGreen, 2. Brown, 3.Blue, 4. Orange, 5. Green, 6. Pink.</p>
<p>So the html will look like this.</p>
<pre lang="HTML" line="1">
<div id="skin-select">
<a href="#" title="SeaGreen" class="seagreen">SeaGreen</a>
<a href="#" title="Brown" class="brown">Brown</a>
<a href="#" class="blue" title="Blue">Blue</a>
<a href="#" title="Orange" class="orange">Orange</a>
<a href="#" title="Green" class="green">Green</a>
<a href="#" title="Pink" class="pink">Pink</a>
</div>
</pre>
<p>2nd Step<br />
We need to make the changes on CSS file. I have added skin.css to my main css via import statement like @import url(&#8220;skin.css&#8221;);</p>
<p>In the skin.css I have added the colors where ever I need to change the background color, font color or border.</p>
<p>3rd step<br />
Now come the javascript part. I am using the JQuery frame work. I like Jquery very much. So we need to include the jquery framework to our page and we need to write custom javascript code for its working. For that I added script.js to my page.</p>
<p>In the script.js I added the following code in the document.ready function.<br />
<code>$("#skin-select a").click(function(){<br />
	if($("body").attr("class")){<br />
	$("body").removeClass($("body").attr("class"));<br />
	}$("body").addClass($(this).attr("class"));<br />
});</code></p>
<p>What this code will do?</p>
<p>When clicking each button it will add a class to body. If the body already has a class, it will remove the existing class and add a new class with new color name.</p>
<p>If your css is right it will work fine on each click.</p>
<p>What is next?</p>
<p>If you close the browser and open the it again with the same url, you can see the default colour scheme only. But I would like to see the colour scheme which I have recently opted.</p>
<p>For that we need to save this information in your computer. I have added a Jquery plugin for saving this colour scheme to the computer. A cookie is information that a Web site puts on your hard disk so that it can remember something about you at a later time. So I have added a jquery plugin for saving cookie.</p>
<p>Now we can save the latest color scheme to our visitor’s machine. So next time when he opens the site he can see the latest colour which he has selected in the last.</p>
<p>So the final code will look like this.<br />
<code>$(document).ready(function() {<br />
  if($.cookie('theme_color')!= null)<br />
  {<br />
	  var coockiecolor = $.cookie('theme_color');<br />
	  $("body").addClass(coockiecolor);<br />
  }<br />
  $("#skin-select a").click(function(){<br />
		if($("body").attr("class")){<br />
			$("body").removeClass($("body").attr("class"));<br />
		}<br />
		$("body").addClass($(this).attr("class"));<br />
		var colorname = $(this).attr("class");<br />
		$.cookie('theme_color', colorname, { path: '/', expires: 10 });return false;});<br />
});</code></p>
<p>Inside the document.ready function first it will check whether any cookie saved for theme or not. If it is available it will take the theme information from the cookie. You can check the documentation about jQuery cookie in detail can be find <a href="http://www.stilbuero.de/2006/09/17/cookie-plugin-for-jquery/">here</a>.</p>
<p>What do you think now? Is it easy? Waiting for your valuable feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/how-make-colour-scheme-jquery-css.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pushup – advice your visitors to upgrade their browser</title>
		<link>http://www.myhtmlworld.com/web-development/pushup-advice-your-visitors-to-upgrade-their-browser.html</link>
		<comments>http://www.myhtmlworld.com/web-development/pushup-advice-your-visitors-to-upgrade-their-browser.html#comments</comments>
		<pubDate>Fri, 09 Jan 2009 06:56:14 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Javascript package]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[Pushing up]]></category>
		<category><![CDATA[Pushup]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=99</guid>
		<description><![CDATA[It is an interesting thing that pushup javascript will tell the visitors that they have to upgrade their browsers to the  latest one if they are using the  old browsers. It is easy to install and customisable Upload the pushup package in to your server Include the pushup.css and pushup.js in to your page header. If [...]]]></description>
			<content:encoded><![CDATA[<p>It is an interesting thing that pushup javascript will tell the visitors that they have to upgrade their browsers to the  latest one if they are using the  old browsers.</p>
<p>It is easy to install and customisable</p>
<p>Upload the pushup package in to your server<br />
Include the pushup.css and pushup.js in to your page header.</p>
<div id="attachment_102" class="wp-caption aligncenter" style="width: 310px"><p class="wp-caption-text">Pushup shows warning in firefox2</p></div>
<div id="attachment_103" class="wp-caption aligncenter" style="width: 310px"><p class="wp-caption-text">Pushup shows warning in ie6</p></div>
<p>If you want to upload this package other than the js directory, change your css background image path accordingly. More information available here (<a href="http://www.pushuptheweb.com/">http://www.pushuptheweb.com/</a>)</p>
<p>Download latest pushup can be download from here (<a href="http://github.com/staaky/pushup/tree/master">http://github.com/staaky/pushup/tree/master</a>)</p>
<p>Currently pushup can be integrated with the following frame work</p>
<ul>
<li>Dojo Details are available here<br />
 (<a href="http://psychcf.dojotoolkit.org/pushup/">http://psychcf.dojotoolkit.org/pushup/</a>)</li>
<li>JQuery<br />
JQuery Pushup <a href="http://stuartloxton.com/jquery-pushup">http://stuartloxton.com/jquery-pushup</a>/</li>
<li>MooTools<br />
MooTools pushup <a href="http://moopushup.timwebdesign.nl/">http://moopushup.timwebdesign.nl/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/pushup-advice-your-visitors-to-upgrade-their-browser.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open links in new window automatically in WordPress using JQuery</title>
		<link>http://www.myhtmlworld.com/web-development/open-links-in-new-window-automatically-in-wordpress-using-jquery.html</link>
		<comments>http://www.myhtmlworld.com/web-development/open-links-in-new-window-automatically-in-wordpress-using-jquery.html#comments</comments>
		<pubDate>Wed, 07 Jan 2009 03:09:14 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[external link]]></category>
		<category><![CDATA[google code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Open new window]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=90</guid>
		<description><![CDATA[Sometimes we need to open the external links automatically in our websites. Here I am adding a small snippet for that. JQuery is JavaScript framework using for that. So first you need to include Jquery framework to your page. For that either you need to download the jquery and add it your page, or you [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we need to open the external links automatically in our websites. Here I am adding a small snippet for that. JQuery is JavaScript framework using for that. So first you need to include Jquery framework to your page.</p>
<p>For that either you need to download the jquery and add it your page, or you can link directly load the framework using Google code</p>
<p><strong>How we can include JQuery using Google code</strong><br />
Check out this link<br />
<a href="http://code.google.com/apis/ajaxlibs/documentation/index.html">http://code.google.com/apis/ajaxlibs/documentation/index.html</a></p>
<p><strong>Benefits of including JQuery from Google code</strong></p>
<ol>
<li>It saves on bandwidth</li>
<li>It will load quickly from Google’s CDN.</li>
<li>It will already be cached if the user has visited a site which delivers it from Google code.</li>
</ol>
<p>Ohh.. I am going out of the subject. Ok, After including Jquery you need to write the below code either in your separate Javascript file or your in the html page.<br />
<code>$(document).ready(function() {<br />
$("a[@href^=http]").each(<br />
function(){<br />
if(this.href.indexOf(location.hostname) == -1) {<br />
$(this).attr('target', '_blank');<br />
}})<br />
});</code><br />
If you want to add a class on external links for styling differently or add a background to it? It is easy. Just add this code. It will add a class to your external links.<br />
<code>$(document).ready(function() {<br />
$("a[@href^=http]").each(<br />
function(){<br />
if(this.href.indexOf(location.hostname) == -1) {<br />
$(this).attr('target', '_blank');<br />
$(this).addClass(‘external’);<br />
}})<br />
});</code></p>
<p>I am using this code in my blog. It works well. If you find any bug on it, Please let me know.</p>
<p>[update]</p>
<p>Today I added <code>$(this).attr('rel', 'external nofollow');</code></p>
<p>So Google may not follow any external link. Now the script should look like this</p>
<p><code><br />
$(document).ready(function() {<br />
  $("a[@href^=http]").each(<br />
    function(){<br />
        if(this.href.indexOf(location.hostname) == -1) {<br />
              $(this).attr('target', '_blank');<br />
	      $(this).attr('rel', 'external nofollow');<br />
        }}<br />
  )});<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/web-development/open-links-in-new-window-automatically-in-wordpress-using-jquery.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

