<?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>Webdevtuts &#187; Javascript</title>
	<atom:link href="http://www.webdevtuts.net/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevtuts.net</link>
	<description>Making tutorials fun and easy!</description>
	<lastBuildDate>Wed, 28 Jul 2010 05:38:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Get your latest twitter updates without using a plugin</title>
		<link>http://www.webdevtuts.net/coding/javascript/get-your-latest-twitter-updates-without-using-a-plugin/</link>
		<comments>http://www.webdevtuts.net/coding/javascript/get-your-latest-twitter-updates-without-using-a-plugin/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 04:53:31 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[latest]]></category>
		<category><![CDATA[no plugin]]></category>
		<category><![CDATA[pure code]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1338</guid>
		<description><![CDATA[I know there are many plugins out there that are capable of grabbing your twitter feed, but what if you do not want to use a plugin? Today I have come across a line of code that contains pure JavaScript and HTML and will grab your twitter feed. ]]></description>
			<content:encoded><![CDATA[<p>I know there are many plugins out there that are capable of grabbing your twitter feed, but what if you do not want to use a plugin? Today I have come across a line of code that contains pure JavaScript and HTML and will grab your twitter feed. </p>
<h2>The Code</h2>
<p>Copy and paste the code below where you would like for your latest twits to show. </p>
<pre>
<code>
&lt;div id=&quot;twitter_update_list&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/javascripts/blogger.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/statuses/user_timeline/yourtwitternamehere.json?callback=twitterCallback2&amp;count=Number of twits you want to show goes here&quot;&gt;&lt;/script&gt;
&lt;/div&gt;&lt;!--end twitter_update_list--&gt;
<!--formatted--></code>
</pre>
<p>This is a quick and easy solution for those who are searching for ways to add twitter feed to their sites using pure code and not a plugin. I hope this worked well for you all as it did for me. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/javascript/get-your-latest-twitter-updates-without-using-a-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a awsesome images gallery using css3 and jquery</title>
		<link>http://www.webdevtuts.net/coding/css/create-a-awsesome-images-gallery-using-css3-and-jquery/</link>
		<comments>http://www.webdevtuts.net/coding/css/create-a-awsesome-images-gallery-using-css3-and-jquery/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 03:25:49 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=809</guid>
		<description><![CDATA[Today we will be creating a very simple but great looking css3 image gallery using jquery and css3. If you're a beginner, GREAT! Follow this tutorial and you will have no problem adding jquery plugins to your website]]></description>
			<content:encoded><![CDATA[<p>Today we will be creating a very simple but great looking css3 image gallery using jquery and css3. The image gallery will be tited to the side and on hover will move. Whenever you click on the image a lightbox will pop out. So lets begin.</p>
<p><a href="http://www.demo.webdevtuts.net/css3-jquery/"/>Demo</a></p>
<h2>Folder Structure</h2>
<p>In the folder of your for your image gallery you should have 3 folders and 2 files. </p>
<ul>
<li><strong>Css</strong> -Contains the jquery css </li>
<li><strong>Images</strong> &#8211; Contains images</li>
<li><strong>Js</strong> &#8211; Contains the javascript</li>
<li>index.html</li>
<li>style</li>
</ul>
<p><img class="aligncenter" src="http://www.webdevtuts.net/wp-content/uploads/2010/01/files.jpg" alt="file structure"/></p>
<h2>The HTML Structure</h2>
<p>For the image gallery I simply wrapped the gallery in a div and added the images. Every 4 image has two different classed assigned to them. For example the first 4 images has a class name of thumb-small and for the other 4 images they have a class name of thumb-bottom. </p>
<pre>
<div id="gallery">
<code>&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-top&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-top&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-top&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-top&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-bottom&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-bottom&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-bottom&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;
&lt;a href=&quot;images/skate1.jpg&quot; title=&quot;You can write anything in here&quot;&gt;&lt;img class=&quot;thumb-bottom&quot; src=&quot;images/skate1.jpg&quot; alt=&quot;skateboarder&quot; title=&quot;skateboarder&quot;/&gt;&lt;/a&gt;<!--formatted--></code>
</div>

<!--end gallery-->
</pre>
<h2>The Css</h2>
<p>For the Css you might wonder what -webkit, and -moz-transform is. Webkit is a Css3 tag that targets the safari web browser and moz-transform is a Css3 tag that targets the Mozilla Firefox web browser. In the css </p>
<ol>
<li><strong>-webkit-transform:</strong> &#8211; Used to rotate the images</li>
<li><strong>-webkit-transition:</strong> &#8211; Used to zoom/ease in on the images</li>
</ol>
<pre>
.thumb-top{
	clear:none;
	padding:10px 10px 30px 10px;
	height:200px;
	width:200px;
	background:#fff;
	-moz-transform:rotate(-4deg);
	-webkit-transform:rotate(-4deg);
	-webkit-transition: -webkit-transform 0.1s ease-in; /* Tells webkit to make a transition of a transform */
	border:1px solid #ececec; /* This border merges with the colour of the shadow in supporting browsers
	but in non-supporting browsers the border acts as the edge of the image */
	margin-bottom:25px;
}

.thumb-bottom{
	clear:none;
	padding:10px 10px 30px 10px;
	height:200px;
	width:200px;
	background:#fff;
	-moz-transform:rotate(-4deg);
	-webkit-transform:rotate(-4deg);
	-webkit-transition: -webkit-transform 0.1s ease-in; /* Tells webkit to make a transition of a transform */
	border:1px solid #ececec; /* This border merges with the colour of the shadow in supporting browsers
	but in non-supporting browsers the border acts as the edge of the image */
	margin-bottom:25px;
}

.thumb-top:hover{
	z-index:100;
	position:relative; /* Make the z-index work in Safari */
	-moz-transform:rotate(-8deg) scale(1.2);
	-webkit-transform:rotate(-8deg) scale(1.2);
}

.thumb-bottom:hover{
	z-index:100;
	position:relative; /* Make the z-index work in Safari */
	-moz-transform:rotate(4deg) scale(1.2);
	-webkit-transform:rotate(4deg) scale(1.2);
}

#gallery {
	margin-top:20px;
}
</pre>
<h2>Inserting and activating jquery plugins</h2>
<p>First things first when activating a jquery plugin is to simply make sure we call in the jquery script. Insert the code below into the head section of your document. The code below calls in jquery, then the two jquery plugins, and finally the plugin Css. </p>
<pre>
<code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/jquery.lightbox-0.5.css&quot; media=&quot;screen&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.lightbox-0.5.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.lightbox-0.5.js&quot;&gt;&lt;/script&gt;<!--formatted--></code>
</pre>
<p>Now we want to add the script below to the body of our HTML document right before the end of the body tag.</p>
<pre>
<code>&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
$(&quot;.thumb-top,.thumb-bottom&quot;).fadeTo(&quot;slow&quot;, 0.3);
$(&quot;.thumb-top,.thumb-bottom&quot;).hover(function(){
$(this).fadeTo(&quot;slow&quot;, 1.0);
},function(){
$(this).fadeTo(&quot;slow&quot;, 0.3);
});
});

$(function() {
    $(&#039;#gallery a&#039;).lightBox();
});
&lt;/script&gt;<!--formatted--></code>
</pre>
<p>For the code below I will try to explain it the best way I can so you can better understand it. I know not everyone is good with inserting Javascript plugins or changing functions. </p>
<p>The first function inside of the script tag targets the light box plugin. The light box plugin is when you click on an image and the image enlarges without being taken to the direct image location.</p>
<p> For this <b>$(&#8220;.thumb-top,.thumb-bottom&#8221;).fadeTo(&#8220;slow&#8221;, 0.3);</b>  function it just tells jquery to fade to anything with the class of thumb-top or thumb-bottom. So whenever your mouse is not on the image it will be darken.<br />
<img class="aligncenter" src="http://www.webdevtuts.net/wp-content/uploads/2010/01/dark.jpg" alt="dark"/> </p>
<p>For this <b>$(&#8220;.thumb-top,.thumb-bottom&#8221;).hover(function(){</b> function it just tells you on hover, or whenever you move over the image with your mouse that it will highlight the image.<br />
<img class="aligncenter" src="http://www.webdevtuts.net/wp-content/uploads/2010/01/highlight.jpg" alt="highlight"/></p>
<p>For the <b>$(&#8216;#gallery a&#8217;).lightBox();</b> function it just asks you what id tag would you like for it to bring up whenever you click on something with the tag of a href. For example I have the images wrapped inside of the id gallery and every image has an a href assign to it so whenever you click on it jquery knows when to call for the second lightbox function.<br />
<img class="aligncenter" src="http://www.webdevtuts.net/wp-content/uploads/2010/01/popout.jpg" alt="pop out"/><br />
<b>Note:</b> Rotation does not work in Internet explorer browsers do to lack of support of Css3. </p>
<p>After that you should now have your very own css3/jquery image gallery. I am no jquery expert but I try to help you guys understand it and a easy way instead of using words that you guys are not familiar with. </p>
<h3>Credit</h3>
<p>Credit goes to <a class="block" href="http://csswizardry.com/css3/" target="_blank">Csswizardry</a> for the css3 image gallery.<br />
Credit goes to <a class="block" href="http://leandrovieira.com/projects/jquery/lightbox/" target_blank>Leandrovieira</a> for the lightbox plugin. </p>
<p><a title="Downloaded {title} times" href="http://www.webdevtuts.net/wp-content/uploads/2009/07/downloads/css3-jquery.rar"><img src="http://webdevtuts.net/wp-content/uploads/2009/post/download_btn.gif" alt="Download" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/css/create-a-awsesome-images-gallery-using-css3-and-jquery/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>How to make webpage scroll to top of page using jquery</title>
		<link>http://www.webdevtuts.net/coding/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/</link>
		<comments>http://www.webdevtuts.net/coding/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 03:30:34 +0000</pubDate>
		<dc:creator>Marcell</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[scroll]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=482</guid>
		<description><![CDATA[In this tutorial I will teach you how to add a nice <a href="http://www.w3schools.com/HTML/html_links.asp">anchor link</a> scroll effect to your website using jquery/ HTML. ]]></description>
			<content:encoded><![CDATA[<p>I remember me always trying to figure out how to make a page scroll to certain section of a website. I mean it was like magic when I first came across it. I was stun! I later tried to find tutorials on how to do it and let me tell you I had no luck. In this tutorial I will teach you how to add a nice <a href="http://www.w3schools.com/HTML/html_links.asp">anchor link</a> scroll effect to your website using jquery/ HTML. </p>
<h2>How does it work</h2>
<p>Whenever you click on  a certain link, the page will scroll to that specific link. For example if were to have a long portfolio page and it took forever to reach the bottom I might want to add a link at the bottom of my website that says <b>Back to top</b> and when visitors click on that link the page would scroll to the top.</p>
<h2>Script</h2>
<p>Add code below to head section or to a separate javascript file. Tells the document to scroll </p>
<pre>
<code>
$(document).ready(function(){
	$(&quot;.scroll&quot;).click(function(event){
		//prevent the default action for the click event
		event.preventDefault();

		//get the full url - like mysitecom/index.htm#home
		var full_url = this.href;

		//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
		var parts = full_url.split(&quot;#&quot;);
		var trgt = parts[1];

		//get the top offset of the target anchor
		var target_offset = $(&quot;#&quot;+trgt).offset();
		var target_top = target_offset.top;

		//goto that anchor by setting the body scroll top to anchor top
		$(&#039;html, body&#039;).animate({scrollTop:target_top}, 500);
	});
});
</code>
</pre>
<h2>HTML</h2>
<p>Add the code below after your head section. I did not include the entire html but you can download it or view the demo. </p>
<pre>
<code>
&lt;body&gt;
&lt;div id=&quot;top&quot;&gt;
&lt;h1&gt;Thanks for coming to the top&lt;/h1&gt;
&lt;/div&gt;&lt;!--end top--&gt;

&lt;div id=&quot;middle&quot;&gt;
&lt;h1&gt;Thanks for coming to the middle&lt;/h1&gt;
&lt;/div&gt;&lt;!--end middle--&gt;

&lt;div id=&quot;bottom&quot;&gt;
&lt;h1&gt;Thanks for coming to the bottom&lt;/h1&gt;
&lt;/div&gt;&lt;!--end bottom--&gt;

&lt;p&gt;&lt;a href=&quot;#top&quot; class=&quot;scroll&quot;&gt;Go Top&lt;/a&gt;&lt;/p&gt;

&lt;style&gt;

#top{
height:500px;
background:maroon;
margin-bottom:20px;
}

#middle{
height:500px;
background:olive;
margin-bottom:20px;
}

#bottom{
height:500px;
background:teal;
margin-bottom:20px;
}
&lt;/style&gt;
&lt;/body&gt;
</code>
</pre>
<p><a href="http://www.demo.webdevtuts.net/jquery/scroll.html" target="blank">Check out the Demo</a><br />
<a href="http://www.webdevtuts.net/wp-content/uploads/2009/07/downloads/scroll.rar">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
