<?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>blogfreakz.com &#187; Javascript</title>
	<atom:link href="http://blogfreakz.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogfreakz.com</link>
	<description>Web Development, Web Trends, open source resources</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:40:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Polyclip.js: Clip JPEG Images Into Polygons</title>
		<link>http://blogfreakz.com/jquery/polyclip-js-clip-jpeg-images-into-polygons/</link>
		<comments>http://blogfreakz.com/jquery/polyclip-js-clip-jpeg-images-into-polygons/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 06:29:12 +0000</pubDate>
		<dc:creator>Keith@Blogfreakz</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Software & Tools]]></category>
		<category><![CDATA[free download]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24982</guid>
		<description><![CDATA[Thanks to polyClip.js, you finally don&#8217;t have to restrict yourself to using PNG files or a graphics editor whenever you want to use an image of an object without its background. Created by ZoltanDulac, polyclip.js a jQuery plugin or JavaScript library that allows you to crop or clip any image in a non-rectangular way with [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;"> </span></strong>Thanks to polyClip.js, you finally don&#8217;t have to restrict yourself to using PNG files or a graphics editor whenever you want to use an image of an object without its background. Created by <a href="http://www.useragentman.com/"><strong>ZoltanDulac</strong></a>, polyclip.js a jQuery plugin or JavaScript library that allows you to crop or clip any image in a non-rectangular way with HTML5 Canvas&#8217; imagemap coordinates.</p>
<p><img class="aligncenter size-large wp-image-24983" title="HTML 5 Canvas coordinates" src="http://blogfreakz.com/wp-content/uploads/2012/02/130-476x250.jpg" alt="130 476x250 Polyclip.js: Clip JPEG Images Into Polygons" width="476" height="250" /></p>
<p>Why use JPEG with polyclip.js instead of PNG? Because PNG images can&#8217;t be as small as JPEG images when you&#8217;re dealing with photographic images, and you know how an image&#8217;s file size can affect a page&#8217;s loading time. What the script does is cut points on the image using x and y values provided by the user. If you know how to create an image map then using polyclip.js should be easy for you to use.</p>
<p><a href="http://www.greepit.com/wp-content/uploads/2012/01/jpeg-images-clipping-into-non-rectangular-polygons-polyclip-js.jpg" target="_blank"><img class="aligncenter size-large wp-image-24985" title="polyClip" src="http://blogfreakz.com/wp-content/uploads/2012/02/polyClip-600x250.jpg" alt="polyClip 600x250 Polyclip.js: Clip JPEG Images Into Polygons" width="600" height="250" /></a></p>
<p>This plugin&#8217;s practical value can be subject for debate when you&#8217;re dealing with a lot of images but if it&#8217;s only for a handful of images, it can be a huge byte-saver.</p>
<p>The polyclip.js is supported by most browsers, including IE7 and 8 but it&#8217;s going to require the Excanvas JavaScript library which polyfills canvas using VML for it to function properly. It weighs in at only 2kb but for IE7 and 8, there&#8217;s going to be an additional 11kb.</p>
<p>You can download the latest version of polyclip.js over at <strong><a href="https://github.com/zoltan-dulac/polyClip" target="_blank">GitHub</a></strong>.<a href="https://github.com/zoltan-dulac/polyClip"><strong></strong></a> To know more about this plugin/library, you can read about it <a href="http://www.useragentman.com/blog/2011/10/29/clipping-jpeg-images-into-non-rectangular-polygons-using-polyclip-js/"><strong>here</strong></a>.<br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/jquery/polyclip-js-clip-jpeg-images-into-polygons/" title="html5 library">html5 library</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/jquery/polyclip-js-clip-jpeg-images-into-polygons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Animated Cartoon Robot</title>
		<link>http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/</link>
		<comments>http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 00:00:54 +0000</pubDate>
		<dc:creator>Marvin@Blogfreakz</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24953</guid>
		<description><![CDATA[One of the coolest things about jQuery is that you can experiment with it, like with this animated robot. Here is a sample of how one can do this, based on Anthony Calzadilla’s design. It&#8217;s easy to modify and loads fast, with the end product similar to Flash designs but with more advantages. Web designers [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong></p>
<p><strong> </strong></p>
<p>One of the coolest things about jQuery is that you can experiment with it, like with this animated robot. Here is a sample of how one can do this, based on Anthony Calzadilla’s <a href="http://css-tricks.com/jquery-robot/" target="_blank"><strong>design</strong></a>.</p>
<p>It&#8217;s easy to modify and loads fast, with the end product similar to Flash designs but with more advantages. Web designers and developers are sure to find this tutorial inspiring!</p>
<p style="text-align: center;"><a href="http://robot.anthonycalzadilla.com/" target="_blank"><img class="aligncenter size-medium wp-image-24954" title="Robot" src="http://blogfreakz.com/wp-content/uploads/2012/02/Robot-285x175.jpg" alt="Robot 285x175 jQuery Animated Cartoon Robot" width="285" height="175" /></a><strong>Click on the above image to see the demo.</strong></p>
<p>Below are the codes for this awesome animation.</p>
<p><strong>Markup</strong></p>
<pre><span style="color: #003366;">&lt;div id="wrapper"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="cloud-01"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="cloud-02"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="mountains-03"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="ground"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="full-robot"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="branding"&gt;&lt;h1&gt;Robot Head.&lt;/h1&gt;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="content"&gt;&lt;p&gt; Robot Chest.&lt;/p&gt;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="sec-content"&gt;&lt;p&gt; Robot Pelvis.&lt;/p&gt;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="footer"&gt;&lt;p&gt; Robot Legs.&lt;/p&gt;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<p><strong> </strong></p>
<p><strong>CSS Style</strong></p>
<p><strong> </strong></p>
<pre><span style="color: #003366;">h1, p { position: absolute; left: -9999px; }</span>

<span style="color: #003366;">div {position: relative;}</span>

<span style="color: #003366;">#wrapper { background: #bedfe4 url(../images/sun.png) no-repeat left -30px; border: 5px solid #402309;}</span>

<span style="color: #003366;">#cloud-01 { background: url(../images/clouds-01.png) no-repeat left -100px; }                                                         </span>

<span style="color: #003366;">#cloud-02 {                  background: url(../images/clouds-02.png) no-repeat left top; }</span>

<span style="color: #003366;">#mountains-03 { background: url(../images/mountain-03.png) no-repeat left bottom; }</span>

<span style="color: #003366;">#ground { background: url(../images/ground-05.png) no-repeat left bottom; }</span>

<span style="color: #003366;">#full-robot { width: 271px; }</span>

<span style="color: #003366;">#branding {</span>
<span style="color: #003366;">                    background: url(../images/robot-head.png) no-repeat center top;</span>
<span style="color: #003366;">                    width: 271px;</span>
<span style="color: #003366;">                    height: 253px;</span>
<span style="color: #003366;">                    z-index: 4;</span>
<span style="color: #003366;">                    }</span>

<span style="color: #003366;">#content {</span>
<span style="color: #003366;">                    background: url(../images/robot-torso.png) no-repeat center top;</span>
<span style="color: #003366;">                    width: 271px;</span>
<span style="color: #003366;">                    height: 164px;</span>
<span style="color: #003366;">                    z-index: 3;</span>
<span style="color: #003366;">                    margin-top: -65px;</span>
<span style="color: #003366;">                    }</span>

<span style="color: #003366;">#sec-content {</span>
<span style="color: #003366;">                    background: url(../images/robot-hips.png) no-repeat center top;</span>
<span style="color: #003366;">                    width: 271px;</span>
<span style="color: #003366;">                    height: 124px;</span>
<span style="color: #003366;">                    z-index: 2;</span>
<span style="color: #003366;">                    margin-top: -90px;</span>
<span style="color: #003366;">                    }</span>

<span style="color: #003366;">#footer {</span>
<span style="color: #003366;">                    background: url('../images/robot-legs.png') no-repeat center top;</span>
<span style="color: #003366;">                    width: 271px;</span>
<span style="color: #003366;">                    height: 244px;</span>
<span style="color: #003366;">                    z-index: 1;</span>
<span style="color: #003366;">                    margin-top: -90px;</span>
<span style="color: #003366;">                    }</span></pre>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>jQuery Javascript </strong></p>
<pre><span style="color: #003366;">$(document).ready(function(){</span>
<span style="color: #003366;">$('#cloud-01').css({backgroundPosition: '0 -80px'});</span>
<span style="color: #003366;">$('#cloud-02').css({backgroundPosition: '0 -30px'});</span>
<span style="color: #003366;">$('#mountains-03').css({backgroundPosition: '0 50px'});</span>
<span style="color: #003366;">$('#trees-04').css({backgroundPosition: '0 50px'});</span>
<span style="color: #003366;">$('#ground').css({backgroundPosition: 'left bottom'});</span>
<span style="color: #003366;">$('#branding').css({backgroundPosition: 'center 0'});</span>
<span style="color: #003366;">$('#content').css({backgroundPosition: 'center 0'});</span>
<span style="color: #003366;">$('#sec-content').css({backgroundPosition: 'center 0'});</span>
<span style="color: #003366;">$('#footer').css({backgroundPosition: 'center 0'});</span>
<span style="color: #003366;">$('#wrapper').css({overflow: "hidden"});</span>

<span style="color: #003366;">                    $('#klicker').click(function(){</span>
<span style="color: #003366;">                                         $('#cloud-01').animate({backgroundPosition: '(-500px -80px)'}, 20000);</span>
<span style="color: #003366;">                                         $('#cloud-02').animate({backgroundPosition: '(-625px -30px)'}, 20000);</span>
<span style="color: #003366;">                                         $('#mountains-03').animate({backgroundPosition: '(-2500px 50px)'}, 20000);</span>
<span style="color: #003366;">                                         $('#ground').animate({backgroundPosition: '(-5000px bottom)'}, 20000);</span>

<span style="color: #003366;">                    startHim();</span>

<span style="color: #003366;">                    $("#full-robot").animate({left:"50%",marginLeft:"-150px"}, 2000);</span>
<span style="color: #003366;">                    setTimeout("leaveScreen()",15000);</span>
<span style="color: #003366;">                    });</span>

<span style="color: #003366;">});</span>

<span style="color: #003366;">var num = 1;</span>

<span style="color: #003366;">function startHim(){</span>
<span style="color: #003366;">                    num++;</span>
<span style="color: #003366;">                    $("#sec-content").animate({top:"-=5px"},150).animate({top:"+=5px"},150);</span>
<span style="color: #003366;">                    $("#content,#branding").animate({top:"-="+num+"px"},150).animate({top:"+="+num+"px"},150);</span>
<span style="color: #003366;">                    if(num&lt;4){</span>
<span style="color: #003366;">                                         setTimeout("startHim()",300);</span>
<span style="color: #003366;">                    } else {</span>
<span style="color: #003366;">                                         setTimeout("bounceHim()",300);</span>
<span style="color: #003366;">                    }</span>
<span style="color: #003366;">}</span>

<span style="color: #003366;">function bounceHim(){</span>
<span style="color: #003366;">                    $("#sec-content,#branding").animate({top:"-=4px"},150).animate({top:"+=4px"},150);</span>
<span style="color: #003366;">                                         $("#content").animate({top:"-=8px"},150).animate({top:"+=8px"},150);</span>
<span style="color: #003366;">                    setTimeout("bounceHim()",300);</span>
<span style="color: #003366;">}</span>

<span style="color: #003366;">function leaveScreen(){</span>
<span style="color: #003366;">                    $("#full-robot").animate({left:"100%",marginLeft:"0px"}, 2000);</span>
<span style="color: #003366;">}</span></pre>
<p><strong> </strong><br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/" title="$(#content) animate margin-right">$(#content) animate margin-right</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/" title="animated pictures">animated pictures</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/" title="any simple cartoon borders">any simple cartoon borders</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/" title="html5 jquery animation robot">html5 jquery animation robot</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/" title="png cartoon">png cartoon</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/" title="robotics animation jquery">robotics animation jquery</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/jquery-animated-cartoon-robot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jVectorMap: An Interactive jQuery Map</title>
		<link>http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/</link>
		<comments>http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:43:33 +0000</pubDate>
		<dc:creator>Marvin@Blogfreakz</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[vector artwork]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24826</guid>
		<description><![CDATA[Integrate an interactive map into your website with jVectorMap. This is a jQuery plugin which shows vector maps on HTML pages and applies SVG in all contemporary modern browsers ranging from ancient IE 6 to 8, Chrome, Opera, IE9, Safari, Firefox. All you have to do is connect Javascript and CSS files of plugin and [...]]]></description>
			<content:encoded><![CDATA[<p>Integrate an interactive map into your website with jVectorMap. This is a jQuery plugin which shows vector maps on HTML pages and applies SVG in all contemporary modern browsers ranging from ancient IE 6 to 8, Chrome, Opera, IE9, Safari, Firefox. All you have to do is connect Javascript and CSS files of plugin and that’s it! You can also change its parameters easily.</p>
<p><a href="http://www.webappers.com/img/2011/06/vector-map.png" target="_blank"><img class="aligncenter size-medium wp-image-24827" title="Vector Map" src="http://blogfreakz.com/wp-content/uploads/2012/02/115-285x175.jpg" alt="115 285x175 jVectorMap: An Interactive jQuery Map" width="285" height="175" /></a></p>
<p><strong> </strong></p>
<p><strong></strong>You can check out the full tutorial <a href="http://jvectormap.owl-hollow.net/" target="_blank"><strong>HERE.</strong></a></p>
<p>&nbsp;<br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="interactive jquery map">interactive jquery map</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jquery interactive map">jquery interactive map</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jvectormap tutorial">jvectormap tutorial</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jvectormap">jvectormap</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="javascript heat map">javascript heat map</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="extra maps for jvectormap">extra maps for jvectormap</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jqurery interactive map">jqurery interactive map</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jvectormap automatic color">jvectormap automatic color</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jvectormap converter">jvectormap converter</a></li>
<li><a href="http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/" title="jvectormap database">jvectormap database</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/jvectormap-an-interactive-jquery-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a jQuery Star Comment Rating System</title>
		<link>http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/</link>
		<comments>http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 12:16:15 +0000</pubDate>
		<dc:creator>Marvin@Blogfreakz</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[rating system]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24716</guid>
		<description><![CDATA[The commenting system just became more fun for users! Created by eligeske,  this animated jQuery star commenting system is a great way to rate your posts. Add this to your website and see your visitor activity increase. Download the ZIP FILE. &#160; HTML (star_rating.html) &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The commenting system just became more fun for users! Created by <a href="http://eligeske.com/" target="_blank"><strong>eligeske</strong></a>,  this animated jQuery star commenting system is a great way to rate your posts. Add this to your website and see your visitor activity increase.</p>
<p>Download the <a href="http://eligeske.info/tutorials/jquery/star-rating/star-rating.zip" target="_blank"><strong>ZIP FILE. </strong></a></p>
<p>&nbsp;</p>
<p><strong> </strong></p>
<p><strong>HTML (star_rating.html)</strong></p>
<pre><span style="color: #003366;">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;head&gt;</span></pre>
<pre><span style="color: #003366;">&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;</span></pre>
<pre><span style="color: #003366;">&lt;title&gt;JQuery-Star Comment Rating&lt;/title&gt;</span></pre>
<pre><span style="color: #003366;">&lt;script type="text/javascript" src="js/jquery/jquery-1.3.2.min.js"&gt;&lt;/script&gt;</span></pre>
<pre><span style="color: #003366;">&lt;script type="text/javascript" src="js/star_rating.js"&gt;&lt;/script&gt;</span></pre>
<pre><span style="color: #003366;">&lt;style type="text/css"&gt;</span></pre>
<pre><span style="color: #003366;">#rating_cont { background: #1E1D1C url(images/rating_background.jpg) top left no-repeat; border: 1px solid #F9BA0D; width: 140px; height: 23px; text-align: left; margin-left: 6px;}</span></pre>
<pre><span style="color: #003366;">#rating_on { background: url(images/rating_onbackground.jpg) top left no-repeat; width: 0px; height: 21px; position: relative; z-index: 50; top: -21px; }</span></pre>
<pre><span style="color: #003366;">#rated { display: none; width: 138px; padding: 3px 0px 3px 2px; height: 23px; background-color: #1E1D1C; height: 17px;font-size: 11px;color: #FFC910;}</span></pre>
<pre><span style="color: #003366;">#rated div { display: block; float: left; }</span></pre>
<pre><span style="color: #003366;">#rating { font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: #FFC910; padding-left: 3px; width: 22px; }</span></pre>
<pre><span style="color: #003366;">#small_stars { height: 11px; width: 69px; background-image: url(images/stars_small_sprite.jpg); background-position: 0px -11px; font-size:1px; line-height: 11px; margin-top:3px; }</span></pre>
<pre><span style="color: #003366;">#rate_edit { line-height: 17px; font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: #FFF; padding-left: 9px; cursor: pointer; }</span></pre>
<pre><span style="color: #003366;">#rate_edit:hover { text-decoration: underline; }</span></pre>
<pre><span style="color: #003366;">#rating_btns { position: relative; z-index: 100; width: 140px; height: 21px;}</span></pre>
<pre><span style="color: #003366;">#rating_btns ul, #rating_btns li { padding: 0; margin: 0; }</span></pre>
<pre><span style="color: #003366;">#rating_btns li { float: left; width: 14px; height: 21px; display: block; font-size: 1px; cursor: pointer; color: #1E1D1C;</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">&lt;/style&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/head&gt;</span></pre>
<pre><span style="color: #003366;">&lt;body&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="rating_cont"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="rating_btns"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;ul&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;0.5&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;1.0&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;1.5&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;2.0&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;2.5&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;3.0&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;3.5&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;4.0&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;4.5&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;li&gt;5.0&lt;/li&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/ul&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="rating_on" &gt;&amp;nbsp;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="rated"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="rating" style="height: 17px; line-height: 17px;"&gt;not rated&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div&gt; &amp;#8211; &amp;nbsp;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="small_stars"&gt;&amp;nbsp;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="rate_edit"&gt;edit&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;input type="hidden" id="rating_output" name="rating_output" /&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/body&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/html&gt;</span></pre>
<p><strong>jQuery/Jvascript (star_rating.js)</strong></p>
<pre><span style="color: #003366;">/*</span></pre>
<pre><span style="color: #003366;">* Written by eligeske</span></pre>
<pre><span style="color: #003366;">* downloaded from eligeske.com</span></pre>
<pre><span style="color: #003366;">* have fun. nerd.</span></pre>
<pre><span style="color: #003366;">*/</span></pre>
<pre><span style="color: #003366;">$(document).ready(function(){</span></pre>
<pre><span style="color: #003366;">// hover</span></pre>
<pre><span style="color: #003366;">$('#rating_btns li').hover(function(){</span></pre>
<pre><span style="color: #003366;">$rating = $(this).text();</span></pre>
<pre><span style="color: #003366;">$('#rating_on').css('width', rateWidth($rating));</span></pre>
<pre><span style="color: #003366;">});</span></pre>
<pre><span style="color: #003366;">// mouseout</span></pre>
<pre><span style="color: #003366;">$('#rating_btns li').mouseout(function(){</span></pre>
<pre><span style="color: #003366;">$rating = $('#rating').text();</span></pre>
<pre><span style="color: #003366;">if($rating == "not rated"){</span></pre>
<pre><span style="color: #003366;">$('#rating_on').css('width', "0px");</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">else{</span></pre>
<pre><span style="color: #003366;">$('#rating_on').css('width', rateWidth($rating));</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">});</span></pre>
<pre><span style="color: #003366;">//click</span></pre>
<pre><span style="color: #003366;">$('#rating_btns li').click(function(){</span></pre>
<pre><span style="color: #003366;">$rating = $(this).text();</span></pre>
<pre><span style="color: #003366;">$('#rating').text($rating);</span></pre>
<pre><span style="color: #003366;">$('#rating_output').val($rating);</span></pre>
<pre><span style="color: #003366;">$pos = starSprite($rating);</span></pre>
<pre><span style="color: #003366;">$('#small_stars').css('background-position', "0px " + $pos );</span></pre>
<pre><span style="color: #003366;">$('#rating_btns').hide();</span></pre>
<pre><span style="color: #003366;">$('#rating_on').hide();</span></pre>
<pre><span style="color: #003366;">$('#rated').fadeIn();</span></pre>
<pre><span style="color: #003366;">});</span></pre>
<pre><span style="color: #003366;">//edit</span></pre>
<pre><span style="color: #003366;">$('#rate_edit').click(function(){</span></pre>
<pre><span style="color: #003366;">$('#rated').hide();</span></pre>
<pre><span style="color: #003366;">$('#rating_btns').fadeIn();</span></pre>
<pre><span style="color: #003366;">$('#rating_on').fadeIn();</span></pre>
<pre><span style="color: #003366;">});</span></pre>
<pre><span style="color: #003366;">function rateWidth($rating){</span></pre>
<pre><span style="color: #003366;">$rating = parseFloat($rating);</span></pre>
<pre><span style="color: #003366;">switch ($rating){</span></pre>
<pre><span style="color: #003366;">case 0.5: $width = "14px"; break;</span></pre>
<pre><span style="color: #003366;">case 1.0: $width = "28px"; break;</span></pre>
<pre><span style="color: #003366;">case 1.5: $width = "42px"; break;</span></pre>
<pre><span style="color: #003366;">case 2.0: $width = "56px"; break;</span></pre>
<pre><span style="color: #003366;">case 2.5: $width = "70px"; break;</span></pre>
<pre><span style="color: #003366;">case 3.0: $width = "84px"; break;</span></pre>
<pre><span style="color: #003366;">case 3.5: $width = "98px"; break;</span></pre>
<pre><span style="color: #003366;">case 4.0: $width = "112px"; break;</span></pre>
<pre><span style="color: #003366;">case 4.5: $width = "126px"; break;</span></pre>
<pre><span style="color: #003366;">case 5.0: $width = "140px"; break;</span></pre>
<pre><span style="color: #003366;">default: $width = "84px";</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">return $width;</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">function starSprite($rating){</span></pre>
<pre><span style="color: #003366;">$rating = parseFloat($rating);</span></pre>
<pre><span style="color: #003366;">switch ($rating){</span></pre>
<pre><span style="color: #003366;">case 0.5: $pos = "-11px"; break;</span></pre>
<pre><span style="color: #003366;">case 1.0: $pos = "-22px"; break;</span></pre>
<pre><span style="color: #003366;">case 1.5: $pos = "-33px"; break;</span></pre>
<pre><span style="color: #003366;">case 2.0: $pos = "-44px"; break;</span></pre>
<pre><span style="color: #003366;">case 2.5: $pos = "-55px"; break;</span></pre>
<pre><span style="color: #003366;">case 3.0: $pos = "-66px"; break;</span></pre>
<pre><span style="color: #003366;">case 3.5: $pos = "-77px"; break;</span></pre>
<pre><span style="color: #003366;">case 4.0: $pos = "-88px"; break;</span></pre>
<pre><span style="color: #003366;">case 4.5: $pos = "-99px"; break;</span></pre>
<pre><span style="color: #003366;">case 5.0: $pos = "-110px"; break;</span></pre>
<pre><span style="color: #003366;">default: $pos = "-77px";</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">return $pos;</span></pre>
<pre><span style="color: #003366;">}</span></pre>
<pre><span style="color: #003366;">});</span></pre>
<pre>
</pre>
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery rating">jquery rating</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="5 star vote jquery">5 star vote jquery</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="rating jquery">rating jquery</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery stars background">jquery stars background</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery star rating">jquery star rating</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery ratings">jquery ratings</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery rating tool">jquery rating tool</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery rating system with comments">jquery rating system with comments</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery rating system">jquery rating system</a></li>
<li><a href="http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/" title="jquery rating script">jquery rating script</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/create-a-jquery-star-comment-rating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-Convert Text To Different Cases Using jQuery</title>
		<link>http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/</link>
		<comments>http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 14:41:19 +0000</pubDate>
		<dc:creator>Keith@Blogfreakz</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Software & Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[free download]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[text converter]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24636</guid>
		<description><![CDATA[jQuery By Example’s author created this neat plugin for automatically converting your text to upper, lower, title, and pascal case. The auto feature is just half of it, the other half is that it converts your text in REAL-TIME! Check out the live demo here or take a look at its code here. First thing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jquerybyexample.blogspot.com/"><strong>jQuery By Example</strong></a>’s author created this neat plugin for automatically converting your text to upper, lower, title, and pascal case. The auto feature is just half of it, the other half is that it converts your text in REAL-TIME!</p>
<p>Check out the <a href="http://jsbin.com/ulaluc/edit#preview"><strong>live demo here</strong></a> or take a look at its <a href="http://jsbin.com/ulaluc/edit#source"><strong>code</strong></a> here.</p>
<p><img class="aligncenter size-medium wp-image-24638" title="Autoconvert" src="http://blogfreakz.com/wp-content/uploads/2012/01/124-285x165.jpg" alt="124 285x165 Auto Convert Text To Different Cases Using jQuery" width="285" height="165" /></p>
<p>First thing you need to do is reference the necessary jQuery file and plugin by inserting this into your code:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;"><strong>&lt;script type=&#8221;text/javascript&#8221;</strong></span>&nbsp;</p>
<p><span style="color: #003366;"><strong>src=&#8221;https://sites.google.com/site/jquerybyexample/SetCase.js&#8221;&gt;</strong></span></p>
<p><span style="color: #003366;"><strong>&lt;/script&gt;</strong></span></td>
</tr>
</tbody>
</table>
<p>You can use this plugin for the textbox element; all you need to do is to set the case which you want to implement by setting the &#8220;caseValue&#8221; property to upper, lower, title, or pascal. (<strong>NOTE:</strong> All values are in lower case).</p>
<p>Your code should then look like one of the following:</p>
<p><strong>Upper case:</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;"><strong>$(function() {</strong></span>&nbsp;</p>
<p><span style="color: #003366;"><strong>$(&#8220;#txtUpper&#8221;).Setcase({caseValue :   &#8216;upper&#8217;});</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></td>
</tr>
</tbody>
</table>
<p><strong>Lower case:</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;"><strong>$(function() {</strong></span>&nbsp;</p>
<p><span style="color: #003366;"><strong>$(&#8220;#txtLower&#8221;).Setcase({caseValue :   &#8216;lower&#8217;});</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></td>
</tr>
</tbody>
</table>
<p><strong>Title case:</strong> Only the very first letter of the entire text is capitalized.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;"><strong>$(function() {</strong></span>&nbsp;</p>
<p><span style="color: #003366;"><strong>$(&#8220;#txtTitle&#8221;).Setcase({caseValue :   &#8216;title&#8217;});</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></td>
</tr>
</tbody>
</table>
<p><strong>Pascal case:</strong> Every first letter of the word is capitalized.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;"><strong>$(function() {</strong></span>&nbsp;</p>
<p><span style="color: #003366;"><strong>$(&#8220;#txtPascal&#8221;).Setcase({caseValue   : &#8216;pascal&#8217;});</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></td>
</tr>
</tbody>
</table>
<p>Below is the code for the plugin, which takes advantage of the <strong>keypress</strong> and <strong>blur</strong> method:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;"><strong>(function($) {</strong></span>&nbsp;</p>
<p><span style="color: #003366;"><strong>//Create plugin named Setcase</strong></span></p>
<p><span style="color: #003366;"><strong>$.fn.Setcase = function(settings) {</strong></span></p>
<p><span style="color: #003366;"><strong>// Defaults</strong></span></p>
<p><span style="color: #003366;"><strong>var config = {</strong></span></p>
<p><span style="color: #003366;"><strong>caseValue: &#8216;Upper&#8217;</strong></span></p>
<p><span style="color: #003366;"><strong>};</strong></span></p>
<p><span style="color: #003366;"><strong>//Merge settings</strong></span></p>
<p><span style="color: #003366;"><strong>if(settings) $.extend(config, settings);</strong></span></p>
<p><span style="color: #003366;"><strong>this.each(function() {</strong></span></p>
<p><span style="color: #003366;"><strong>//keypress event</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).keypress(function(){</strong></span></p>
<p><span style="color: #003366;"><strong>if(config.caseValue ==   &#8220;upper&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal = $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal.toUpperCase());</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>else if(config.caseValue == &#8220;lower&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal = $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal.toLowerCase());</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>else if(config.caseValue == &#8220;title&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal =   $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal.charAt(0).toUpperCase() +   currVal.slice(1).toLowerCase());</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>else if(config.caseValue == &#8220;pascal&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal =   $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>currVal =   currVal.toLowerCase().replace(/\b[a-z]/g, function(txtVal) {</strong></span></p>
<p><span style="color: #003366;"><strong>return txtVal.toUpperCase();</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal);</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></p>
<p><span style="color: #003366;"><strong>//blur event</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).blur(function(){</strong></span></p>
<p><span style="color: #003366;"><strong>if(config.caseValue ==   &#8220;upper&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal = $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal.toUpperCase());</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>else if(config.caseValue == &#8220;lower&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal = $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal.toLowerCase());</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>else if(config.caseValue == &#8220;title&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal =   $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal.charAt(0).toUpperCase() +   currVal.slice(1).toLowerCase());</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>else if(config.caseValue == &#8220;pascal&#8221;)</strong></span></p>
<p><span style="color: #003366;"><strong>{</strong></span></p>
<p><span style="color: #003366;"><strong>var currVal =   $(this).val();</strong></span></p>
<p><span style="color: #003366;"><strong>currVal =   currVal.toLowerCase().replace(/\b[a-z]/g, function(txtVal) {</strong></span></p>
<p><span style="color: #003366;"><strong>return txtVal.toUpperCase();</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></p>
<p><span style="color: #003366;"><strong>$(this).val(currVal);</strong></span></p>
<p><span style="color: #003366;"><strong>}</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></p>
<p><span style="color: #003366;"><strong>});</strong></span></p>
<p><span style="color: #003366;"><strong>};</strong></span></p>
<p><span style="color: #003366;"><strong>})(jQuery);</strong></span></td>
</tr>
</tbody>
</table>
<p>Hope you enjoy trying this plugin out on your site. Cheers!<br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/" title="setcase jquery">setcase jquery</a></li>
<li><a href="http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/" title="$(this) val =">$(this) val =</a></li>
<li><a href="http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/" title="jquery convert case">jquery convert case</a></li>
<li><a href="http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/" title="jquery convert text to link">jquery convert text to link</a></li>
<li><a href="http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/" title="jquery plugin setcase">jquery plugin setcase</a></li>
<li><a href="http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/" title="light menu using jquery">light menu using jquery</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/tutorial/auto-convert-text-to-different-cases-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create A Grayscale Image Hover In HTML5</title>
		<link>http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/</link>
		<comments>http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 10:08:26 +0000</pubDate>
		<dc:creator>Keith@Blogfreakz</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Software & Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24537</guid>
		<description><![CDATA[It used to be that shifting an image from grayscale to colored and vice-versa as you hover over it required 2 copies of the said image &#8212; one in grayscale and the other in color.  But thanks to Darcy Clarke for the JavaScript &#38; HTML 5 grayscale in this tutorial, this feat is easier and [...]]]></description>
			<content:encoded><![CDATA[<p>It used to be that shifting an image from grayscale to colored and vice-versa as you hover over it required 2 copies of the said image &#8212; one in grayscale and the other in color.  But thanks to <a href="http://darcyclarke.me/"><strong>Darcy Clarke</strong></a> for the JavaScript &amp; HTML 5 grayscale in this tutorial, this feat is easier and faster because the grayscale image is generated from the original source.</p>
<p><a href="http://webdesignerwall.com/demo/html5-grayscale/"><img class="aligncenter size-medium wp-image-24543" title="JQuery Image Hover" src="http://blogfreakz.com/wp-content/uploads/2012/01/116-285x175.jpg" alt="116 285x175 Create A Grayscale Image Hover In HTML5" width="285" height="175" /></a></p>
<p style="text-align: center;">Click on the above image for the demo.</p>
<p><strong>Steps:</strong></p>
<ol>
<li>Get a copy of jquery.js</li>
<li>Paste the code below onto your web page. What the code will do is look for the target images (<strong>.item img</strong>) and then generate a grayscale version.</li>
</ol>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;">&lt;script src=&#8221;jquery.min.js&#8221;   type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span>&nbsp;</p>
<p><span style="color: #003366;">&lt;script type=&#8221;text/javascript&#8221;&gt;</span></p>
<p><span style="color: #003366;">// On window   load. This waits until images have loaded which is essential</span></p>
<p><span style="color: #003366;">$(window).load(function(){</span></p>
<p><span style="color: #003366;">//   Fade in images so there isn&#8217;t a color &#8220;pop&#8221; document load and then   on window load</span></p>
<p><span style="color: #003366;">$(&#8220;.item img&#8221;).fadeIn(500);</span></p>
<p><span style="color: #003366;">//   clone image</span></p>
<p><span style="color: #003366;">$(&#8216;.item img&#8217;).each(function(){</span></p>
<p><span style="color: #003366;">var   el = $(this);</span></p>
<p><span style="color: #003366;">el.css({&#8220;position&#8221;:&#8221;absolute&#8221;}).wrap(&#8220;&lt;div   class=&#8217;img_wrapper&#8217; style=&#8217;display:   inline-block&#8217;&gt;&#8221;).clone().addClass(&#8216;img_grayscale&#8217;).css({&#8220;position&#8221;:&#8221;absolute&#8221;,&#8221;z-index&#8221;:&#8221;998&#8243;,&#8221;opacity&#8221;:&#8221;0&#8243;}).insertBefore(el).queue(function(){</span></p>
<p><span style="color: #003366;">var   el = $(this);</span></p>
<p><span style="color: #003366;">el.parent().css({&#8220;width&#8221;:this.width,&#8221;height&#8221;:this.height});</span></p>
<p><span style="color: #003366;">el.dequeue();</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">this.src   = grayscale(this.src);</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">//   Fade image</span></p>
<p><span style="color: #003366;">$(&#8216;.item img&#8217;).mouseover(function(){</span></p>
<p><span style="color: #003366;">$(this).parent().find(&#8216;img:first&#8217;).stop().animate({opacity:1},   1000);</span></p>
<p><span style="color: #003366;">})</span></p>
<p><span style="color: #003366;">$(&#8216;.img_grayscale&#8217;).mouseout(function(){</span></p>
<p><span style="color: #003366;">$(this).stop().animate({opacity:0},   1000);</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">// Grayscale w   canvas method</span></p>
<p><span style="color: #003366;">function   grayscale(src){</span></p>
<p><span style="color: #003366;">var   canvas = document.createElement(&#8216;canvas&#8217;);</span></p>
<p><span style="color: #003366;">var   ctx = canvas.getContext(&#8217;2d&#8217;);</span></p>
<p><span style="color: #003366;">var   imgObj = new Image();</span></p>
<p><span style="color: #003366;">imgObj.src   = src;</span></p>
<p><span style="color: #003366;">canvas.width   = imgObj.width;</span></p>
<p><span style="color: #003366;">canvas.height   = imgObj.height;</span></p>
<p><span style="color: #003366;">ctx.drawImage(imgObj,   0, 0);</span></p>
<p><span style="color: #003366;">var   imgPixels = ctx.getImageData(0, 0, canvas.width, canvas.height);</span></p>
<p><span style="color: #003366;">for(var   y = 0; y &lt; imgPixels.height; y++){</span></p>
<p><span style="color: #003366;">for(var   x = 0; x &lt; imgPixels.width; x++){</span></p>
<p><span style="color: #003366;">var   i = (y * 4) * imgPixels.width + x * 4;</span></p>
<p><span style="color: #003366;">var   avg = (imgPixels.data[i] + imgPixels.data[i + 1] + imgPixels.data[i + 2]) /   3;</span></p>
<p><span style="color: #003366;">imgPixels.data[i]   = avg;</span></p>
<p><span style="color: #003366;">imgPixels.data[i   + 1] = avg;</span></p>
<p><span style="color: #003366;">imgPixels.data[i   + 2] = avg;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">ctx.putImageData(imgPixels,   0, 0, 0, 0, imgPixels.width, imgPixels.height);</span></p>
<p><span style="color: #003366;">return   canvas.toDataURL();</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">&lt;/script&gt;</span></td>
</tr>
</tbody>
</table>
<p>Be sure to set your target image (eg: .post-img, img, .gallery img, etc.)</p>
<p><strong>TIP:</strong> You may change the transition speed by adjusting the highlighted number in the code (ie. 1000 = 1 second)</p>
<p>Provided that JavaScript is enabled, this will work on any browser that supports HTML5 such as Safari, Chrome, and Firefox. Otherwise, the image will revert to its original colored state.</p>
<p><strong>Developer’s Note:</strong> if it doesn&#8217;t work with Firefox and Chrome locally, you need to put the HTML file on a web server.<br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="grayscale image hover">grayscale image hover</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 grayscale image hover">html5 grayscale image hover</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 and javascript greyscale images">html5 and javascript greyscale images</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="canvas html5 img hover texte">canvas html5 img hover texte</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5-grayscale-image-hover firefox bug">html5-grayscale-image-hover firefox bug</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 image grayscale on hover">html5 image grayscale on hover</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 image">html5 image</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 hover">html5 hover</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 greyscale">html5 greyscale</a></li>
<li><a href="http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/" title="html5 grayscale image hover tutorial">html5 grayscale image hover tutorial</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/creating-grayscale-image-hover-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Nifty Image Slideshow Effects with jQuery</title>
		<link>http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/</link>
		<comments>http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 05:17:27 +0000</pubDate>
		<dc:creator>Keith@Blogfreakz</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Software & Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css gallery]]></category>
		<category><![CDATA[php gallery]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[sliders]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24441</guid>
		<description><![CDATA[Here’s a list of 10 innovative plugins to create breathtaking slideshows for your image gallery or portfolio. How to Create a Slideshow Plugin with jQuery – This slideshow makes use of a jQuery plugin called Powerslide. Elastic Image Slideshow with Thumbnail Preview – Here’s a really cool slideshow that automatically adjusts according to the size [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s a list of 10 innovative plugins to create breathtaking slideshows for your image gallery or portfolio.</p>
<p><a href="http://www.onextrapixel.com/2011/07/01/how-to-create-a-slideshow-plugin-with-jquery/"><strong>How to Create a Slideshow Plugin with jQuery</strong></a> – This slideshow makes use of a jQuery plugin called <a href="http://jqpowerslide.com/">Powerslide</a>.</p>
<p><a href="http://www.onextrapixel.com/2011/07/01/how-to-create-a-slideshow-plugin-with-jquery/"> </a><a href="http://www.onextrapixel.com/2011/07/01/how-to-create-a-slideshow-plugin-with-jquery/"><img class="aligncenter size-medium wp-image-24442" title="Powerslide" src="http://blogfreakz.com/wp-content/uploads/2012/01/113-285x175.jpg" alt="113 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a><br />
<a href="http://tympanus.net/codrops/2011/11/21/elastic-image-slideshow-with-thumbnail-preview/"><strong>Elastic Image Slideshow with Thumbnail Preview</strong></a> – Here’s a really cool slideshow that automatically adjusts according to the size of the browser window (read: responsive web pages) with the little help of JavaScript and CSS.</p>
<p><a href="http://tympanus.net/codrops/2011/11/21/elastic-image-slideshow-with-thumbnail-preview/"> </a><a href="http://tympanus.net/codrops/2011/11/21/elastic-image-slideshow-with-thumbnail-preview/"><img class="aligncenter size-medium wp-image-24443" title="Elastic slideshow" src="http://blogfreakz.com/wp-content/uploads/2012/01/27-285x175.jpg" alt="27 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://tutorialzine.com/2011/07/bubble-slideshow-jquery-css/"><strong>Bubble Slideshow Effect with jQuery</strong></a> – This very easy-to-use and customizable slideshow will give your site visitors a unique and interesting way of viewing your image gallery.</p>
<p><a href="http://tutorialzine.com/2011/07/bubble-slideshow-jquery-css/"> </a><a href="http://tutorialzine.com/2011/07/bubble-slideshow-jquery-css/"><img class="aligncenter size-medium wp-image-24444" title="Bubble Slideshow" src="http://blogfreakz.com/wp-content/uploads/2012/01/33-285x175.jpg" alt="33 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://tympanus.net/codrops/2011/07/05/fullscreen-slideshow-with-html5-audio/"><strong>Fullscreen Slideshow with HTML5 Audio and jQuery</strong></a> – This particular slideshow uses the <a href="http://vegas.jaysalvat.com/">Vegas jQuery plugin</a>, the <a href="http://gsgd.co.uk/sandbox/jquery/easing/">jQuery easing plugin</a>, and the <a href="http://jscrollpane.kelvinluck.com/">jScrollPane</a>. The tutorial also includes the addition of sound to add a little bit of atmosphere with the help of the HTML5 audio element and a JavaScript audio library called <a href="http://buzz.jaysalvat.com/">Buzz</a>.</p>
<p><a href="http://tympanus.net/codrops/2011/07/05/fullscreen-slideshow-with-html5-audio/"> </a><a href="http://tympanus.net/codrops/2011/07/05/fullscreen-slideshow-with-html5-audio/"><img class="aligncenter size-medium wp-image-24446" title="Fullscreen" src="http://blogfreakz.com/wp-content/uploads/2012/01/43-285x175.jpg" alt="43 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://tutorialpot.com/2011/09/photoflip-slideshow/"><strong>Photoflip slideshow effect with jQuery</strong></a> – Here’s a slideshow that uses both jQuery and CSS3 to flip through a stack of images. It’s set on automatic but if you’d like the images to flip only with mouse clicks, the tutorial also provides you a way to be able to do that too.</p>
<p><a href="http://tutorialpot.com/2011/09/photoflip-slideshow/"> </a><a href="http://tutorialpot.com/2011/09/photoflip-slideshow/"><img class="aligncenter size-medium wp-image-24447" title="Photoflip" src="http://blogfreakz.com/wp-content/uploads/2012/01/54-285x175.jpg" alt="54 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://tutorialzine.com/2011/02/flickr-api-slideshow-jquery/"><strong>Flickr-powered Slideshow</strong></a> – This particular slideshow plugin uses Flickr’s APIs and YQL to fetch photosets from your Flickr account.</p>
<p><a href="http://tutorialzine.com/2011/02/flickr-api-slideshow-jquery/"> </a><a href="http://tutorialzine.com/2011/02/flickr-api-slideshow-jquery/"><img class="aligncenter size-medium wp-image-24448" title="Flickr Microslider" src="http://blogfreakz.com/wp-content/uploads/2012/01/63-285x175.jpg" alt="63 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://www.userfriendlythinking.com/Blog/BlogDetail.asp?p1=7013&amp;p2=101&amp;p7=3001"><strong>Flickrgallery</strong></a> – You just got to hand it to the guys at Flickr for developing its own slideshow gallery plugins, which is why it’s such a huge hit among hobbyists and professional photographers alike.  (<a href="http://www.userfriendlythinking.com/_CustomFiles/flickrGallery/Example-3a-Small-Auto.html">Click here for demo</a>).</p>
<p><a href="http://www.userfriendlythinking.com/Blog/BlogDetail.asp?p1=7013&amp;p2=101&amp;p7=3001"> </a><a href="http://www.userfriendlythinking.com/Blog/BlogDetail.asp?p1=7013&amp;p2=101&amp;p7=3001"><img class="aligncenter size-medium wp-image-24449" title="Flickrgallery" src="http://blogfreakz.com/wp-content/uploads/2012/01/73-285x175.jpg" alt="73 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://www.twospy.com/galleriffic/"><strong>Gallerific</strong></a> – Here’s an awesome plugin that can handle high volumes of photos while conserving bandwidth. It will showcase the images with minor modifications or design adjustments (<a href="http://www.twospy.com/galleriffic/example-5.html">Click here for demo</a>).</p>
<p><a href="http://www.twospy.com/galleriffic/"> </a><a href="http://www.twospy.com/galleriffic/"><img class="aligncenter size-medium wp-image-24450" title="Galleriffic" src="http://blogfreakz.com/wp-content/uploads/2012/01/82-285x175.jpg" alt="82 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://www.serie3.info/s3slider/"><strong>s3Slider jQuery Plugin</strong></a> – If you want to place one of your images in the header section of your page or you want your images to include text that will link to internal pages then you might want to check out this plugin. (<a href="http://www.serie3.info/s3slider/demonstration.html">Click here for demo</a>).</p>
<p><a href="http://www.serie3.info/s3slider/"> </a><a href="http://www.serie3.info/s3slider/"><img class="aligncenter size-medium wp-image-24451" title="S3Slider" src="http://blogfreakz.com/wp-content/uploads/2012/01/93-285x175.jpg" alt="93 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a></p>
<p><a href="http://www.buildinternet.com/project/supersized/"><strong>Supersized</strong></a> – If you want to immediately showcase your photo gallery by making it fill out almost the whole screen then you might want to try out this plugin (<a href="http://buildinternet.com/project/supersized/slideshow/3.2/demo.html">click here for demo</a>). One cool aspect of this plugin is that it maintains the images’ dimension ratio.</p>
<p><a href="http://www.buildinternet.com/project/supersized/"> </a><a href="http://www.buildinternet.com/project/supersized/"><img class="aligncenter size-medium wp-image-24452" title="Supersized" src="http://blogfreakz.com/wp-content/uploads/2012/01/102-285x175.jpg" alt="102 285x175 10 Nifty Image Slideshow Effects with jQuery" width="285" height="175" /></a><br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery slideshow">jquery slideshow</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery image slideshow">jquery image slideshow</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="image gallery jquery -minimit">image gallery jquery -minimit</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery slideshow with galleries">jquery slideshow with galleries</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery slideshow with nav">jquery slideshow with nav</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery slideshow image from twitter account">jquery slideshow image from twitter account</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery slideshow flick">jquery slideshow flick</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery: Slideshow effects bubble">jquery: Slideshow effects bubble</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="jquery:gallery effects bubble">jquery:gallery effects bubble</a></li>
<li><a href="http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/" title="nifty">nifty</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/10-nifty-image-slideshow-effects-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Apple Retina Effect</title>
		<link>http://blogfreakz.com/web-design/jquery-apple-retina-effect/</link>
		<comments>http://blogfreakz.com/web-design/jquery-apple-retina-effect/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 14:23:22 +0000</pubDate>
		<dc:creator>Marvin@Blogfreakz</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24418</guid>
		<description><![CDATA[Recreate Apple’s Retina display with this awesome tutorial! Thanks to web developer Martin Angelov, he designed a fully functional Apple-like Retina effect using the jQuery library. Below are the steps on how to achieve this effect. 1. XHTML The markup is pretty much straight forward and has few divs and images. &#60;div id="main"&#62; &#60;div id="iphone"&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong>Recreate Apple’s Retina display with this awesome tutorial! Thanks to web developer <strong><a href="http://tutorialzine.com" target="_blank">Martin Angelov</a></strong>, he designed a fully functional Apple-like Retina effect using the jQuery library.</p>
<p><a href="http://www.designdim.com/wp-content/uploads/2011/03/jquery-retina-effect-tutorialzine.jpg"><img class="aligncenter size-large wp-image-24429" title="Apple Retina" src="http://blogfreakz.com/wp-content/uploads/2012/01/110-451x250.jpg" alt="110 451x250 jQuery Apple Retina Effect " width="451" height="250" /></a></p>
<p>Below are the steps on how to achieve this effect.</p>
<p><strong>1. </strong><strong>XHTML</strong><strong> </strong></p>
<p>The markup is pretty much straight forward and has few divs and images.</p>
<pre><span style="color: #003366;">&lt;div id="main"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="iphone"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="webpage"&gt;</span></pre>
<pre><span style="color: #003366;">&lt;img src="img/webpage.png" width="499" height="283" alt="Web Page" /&gt;</span></pre>
<pre><span style="color: #003366;">&lt;div id="retina"&gt;&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<pre><span style="color: #003366;">&lt;/div&gt;</span></pre>
<p>This is a simulation of what you will achieve with the above code.</p>
<p><strong> </strong></p>
<p><strong>2. CSS</strong></p>
<p>This is the styling for the retina divs, iPhone and webpage effect.</p>
<p><strong>Styles.css</strong></p>
<pre><span style="color: #003366;">#iphone{</span>
<span style="color: #003366;">        /* The iphone frame div */</span>
<span style="color: #003366;">        width:750px;</span>
<span style="color: #003366;">        height:400px;</span>
<span style="color: #003366;">        background:url('img/iphone_4G.png') no-repeat center center;</span>
<span style="color: #003366;">}</span>

<span style="color: #003366;">#webpage{</span>
<span style="color: #003366;">        /* Contains the webpage screenshot */</span>
<span style="color: #003366;">        width:499px;</span>
<span style="color: #003366;">        height:283px;</span>
<span style="color: #003366;">        position:absolute;</span>
<span style="color: #003366;">        top:50%;</span>
<span style="color: #003366;">        left:50%;</span>
<span style="color: #003366;">        margin:-141px 0 0 -249px;</span>
<span style="color: #003366;">}</span>

<span style="color: #003366;">#retina{</span>
<span style="color: #003366;">        /* The Retina effect */</span>
<span style="color: #003366;">        background:url('img/webpage.png') no-repeat center center white;</span>
<span style="color: #003366;">        border:2px solid white;</span>

<span style="color: #003366;">        /* Positioned absolutely, so we can move it around */</span>
<span style="color: #003366;">        position:absolute;</span>
<span style="color: #003366;">        height:180px;</span>
<span style="color: #003366;">        width:180px;</span>

<span style="color: #003366;">        /* Hidden by default */</span>
<span style="color: #003366;">        display:none;</span>

<span style="color: #003366;">        /* A blank cursor, notice the default fallback */</span>
<span style="color: #003366;">        cursor:url('img/blank.cur'),default;</span>

<span style="color: #003366;">        /* CSS3 Box Shadow */</span>
<span style="color: #003366;">        -moz-box-shadow:0 0 5px #777, 0 0 10px #aaa inset;</span>
<span style="color: #003366;">        -webkit-box-shadow:0 0 5px #777;</span>
<span style="color: #003366;">        box-shadow:0 0 5px #777, 0 0 10px #aaa inset;</span>

<span style="color: #003366;">        /* CSS3 rounded corners */</span>
<span style="color: #003366;">        -moz-border-radius:90px;</span>
<span style="color: #003366;">        -webkit-border-radius:90px;</span>
<span style="color: #003366;">        border-radius:90px;</span>
<span style="color: #003366;">}</span>

<span style="color: #003366;">#retina.chrome{</span>
<span style="color: #003366;">        /* A special chrome version of the cursor */</span>
<span style="color: #003366;">        cursor:url('img/blank_google_chrome.cur'),default;</span>
<span style="color: #003366;">}</span>

<span style="color: #003366;">#main{</span>
<span style="color: #003366;">        /* The main div */</span>
<span style="color: #003366;">        margin:40px auto;</span>
<span style="color: #003366;">        position:relative;</span>
<span style="color: #003366;">        width:750px;</span>
<span style="color: #003366;">}</span></pre>
<p><strong>3. </strong><strong>jQuery</strong></p>
<p><strong>script.js</strong></p>
<p><strong> </strong></p>
<pre><span style="color: #003366;">$(document).ready(function(){</span>

<span style="color: #003366;">        /* This code is executed on the document ready event */</span>

<span style="color: #003366;">        var left       = 0,</span>
<span style="color: #003366;">               top            = 0,</span>
<span style="color: #003366;">               sizes   = { retina: { width:190, height:190 },</span>
<span style="color: #003366;">                               webpage:{ width:500, height:283 } },</span>
<span style="color: #003366;">               webpage = $('#webpage'),</span>
<span style="color: #003366;">               offset  = { left: webpage.offset().left, top: webpage.offset().top },</span>
<span style="color: #003366;">               retina  = $('#retina');</span>

<span style="color: #003366;">        if(navigator.userAgent.indexOf('Chrome')!=-1)</span>
<span style="color: #003366;">        {</span>
<span style="color: #003366;">               /*      Applying a special chrome curosor,</span>
<span style="color: #003366;">                       as it fails to render completely blank curosrs. */</span>

<span style="color: #003366;">               retina.addClass('chrome');</span>
<span style="color: #003366;">        }</span>

<span style="color: #003366;">        webpage.mousemove(function(e){</span>

<span style="color: #003366;">               left = (e.pageX-offset.left);</span>
<span style="color: #003366;">               top = (e.pageY-offset.top);</span>

<span style="color: #003366;">               if(retina.is(':not(:animated):hidden')){</span>
<span style="color: #003366;">                       /* Fixes a bug where the retina div is not shown */</span>
<span style="color: #003366;">                       webpage.trigger('mouseenter');</span>
<span style="color: #003366;">               }</span>

<span style="color: #003366;">               if(left&lt;0 || top&lt;0 || left &gt; sizes.webpage.width ||</span>
<span style="color: #003366;">                       top &gt; sizes.webpage.height)</span>
<span style="color: #003366;">               {</span>
<span style="color: #003366;">                       /*      If we are out of the bondaries of the</span>
<span style="color: #003366;">                               webpage screenshot, hide the retina div */</span>

<span style="color: #003366;">                       if(!retina.is(':animated')){</span>
<span style="color: #003366;">                               webpage.trigger('mouseleave');</span>
<span style="color: #003366;">                       }</span>
<span style="color: #003366;">                       return false;</span>
<span style="color: #003366;">               }</span>

<span style="color: #003366;">               /*      Moving the retina div with the mouse</span>
<span style="color: #003366;">                       (and scrolling the background) */</span>

<span style="color: #003366;">               retina.css({</span>
<span style="color: #003366;">                       left                           : left - sizes.retina.width/2,</span>
<span style="color: #003366;">                       top                                   : top - sizes.retina.height/2,</span>
<span style="color: #003366;">                       backgroundPosition     : '-'+(1.6*left)+'px -'+(1.35*top)+'px'</span>
<span style="color: #003366;">               });</span>

<span style="color: #003366;">        }).mouseleave(function(){</span>
<span style="color: #003366;">               retina.stop(true,true).fadeOut('fast');</span>
<span style="color: #003366;">        }).mouseenter(function(){</span>
<span style="color: #003366;">               retina.stop(true,true).fadeIn('fast');</span>
<span style="color: #003366;">        });</span>
<span style="color: #003366;">});</span></pre>
<p><strong> </strong></p>
<p>Angelov also provided a zip file which you may download <strong><a href="http://demo.tutorialzine.com/2010/06/apple-like-retina-effect-jquery-css/demo.zip" target="_blank">here</a><a href="http://demo.tutorialzine.com/2010/06/apple-like-retina-effect-jquery-css/demo.zip" target="_blank">.</a> </strong><a href="http://demo.tutorialzine.com/2010/06/apple-like-retina-effect-jquery-css/demo.zip"><strong> </strong></a><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong><br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="retina chrome">retina chrome</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="apple retina">apple retina</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="retina apple wordpress">retina apple wordpress</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="jquery apple effect">jquery apple effect</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="jquery apple color picker">jquery apple color picker</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="jquery apple">jquery apple</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="iphone video display css template">iphone video display css template</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="html5 template for iphone retina">html5 template for iphone retina</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="carousel jquery apple">carousel jquery apple</a></li>
<li><a href="http://blogfreakz.com/web-design/jquery-apple-retina-effect/" title="retina css3">retina css3</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/jquery-apple-retina-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Sticky Notes Using HTML5, CSS3, and jQuery</title>
		<link>http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/</link>
		<comments>http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 03:52:23 +0000</pubDate>
		<dc:creator>Keith@Blogfreakz</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Software & Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[posticks]]></category>
		<category><![CDATA[sticky notes]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24410</guid>
		<description><![CDATA[Add fun and functionality to your website by adding Windows-style sticky notes! Thanks to the combined powers of HTML5, CSS3, and a bit of jQuery in this tutorial by Teylor Feliz, we can do just that. Let’s being with the HTML markup: &#60; !DOCTYPE html&#62;&#160; &#60;html lang=&#8221;en&#8221;&#62; &#60;head&#62; &#60;meta charset=&#8221;utf-8&#8243; /&#62; &#60;title&#62;Posticks&#60;/title&#62; &#60;link rel=&#8221;stylesheet&#8221; rev=&#8221;stylesheet&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Add fun and functionality to your website by adding Windows-style sticky notes! Thanks to the combined powers of HTML5, CSS3, and a bit of jQuery in this tutorial by <a href="http://www.teylorfeliz.net/" target="_blank"><strong>Teylor Feliz</strong></a>, we can do just that.</p>
<p><img class="aligncenter size-large wp-image-24412" title="Posticks" src="http://blogfreakz.com/wp-content/uploads/2012/01/19-600x216.jpg" alt="19 600x216 Create Sticky Notes Using HTML5, CSS3, and jQuery" width="600" height="216" /></p>
<p>Let’s being with the <a href="http://blogfreakz.com/category/html5/" target="_blank"><strong>HTML</strong></a> markup:</p>
<table border="1" cellspacing="0" cellpadding="0" width="625" height="522">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;">&lt;   !DOCTYPE html&gt;</span>&nbsp;</p>
<p><span style="color: #003366;">&lt;html   lang=&#8221;en&#8221;&gt;</span></p>
<p><span style="color: #003366;">&lt;head&gt;</span></p>
<p><span style="color: #003366;">&lt;meta charset=&#8221;utf-8&#8243; /&gt;</span></p>
<p><span style="color: #003366;">&lt;title&gt;Posticks&lt;/title&gt;</span></p>
<p><span style="color: #003366;">&lt;link rel=&#8221;stylesheet&#8221;   rev=&#8221;stylesheet&#8221; href=&#8221;styles.css&#8221;&gt;</span></p>
<p><span style="color: #003366;">&lt;link rel=&#8221;stylesheet&#8221;   href=&#8221;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/base/jquery-ui.css&#8221;   type=&#8221;text/css&#8221; media=&#8221;all&#8221; /&gt;</span></p>
<p><span style="color: #003366;">&lt;/link&gt;&lt;/head&gt;</span></p>
<p><span style="color: #003366;">&lt;body&gt;</span></p>
<p><span style="color: #003366;">&lt;header&gt;</span></p>
<p><span style="color: #003366;">&lt;h1&gt;posticks&lt;/h1&gt;</span></p>
<p><span style="color: #003366;">&lt;input type=&#8221;button&#8221;   value=&#8221;Add Postick&#8221; id=&#8221;btn-addNote&#8221; /&gt;</span></p>
<p><span style="color: #003366;">&lt;/header&gt;</span></p>
<p><span style="color: #003366;">&lt;div   id=&#8221;board&#8221;&gt;&lt;/div&gt;</span></p>
<p><span style="color: #003366;">&lt;script type=&#8221;text/javascript&#8221;   src=&#8221;https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js&#8221;&gt;&lt;/script&gt;</span></p>
<p><span style="color: #003366;">&lt;script type=&#8221;text/javascript&#8221;   src=&#8221;https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js&#8221;&gt;&lt;/script&gt;</span></p>
<p><span style="color: #003366;">&lt;script type=&#8221;text/javascript&#8221;   src=&#8221;js/scripts.js&#8221;&gt;&lt;/script&gt;</span></p>
<p><span style="color: #003366;">&lt;/body&gt;</span></p>
<p><span style="color: #003366;">&lt;/html&gt;</span></td>
</tr>
</tbody>
</table>
<p>As you can see, the code is pretty much straightforward. We have the input element “button” to create the sticky notes, and a container &lt;div&gt; with an id (“board”) in which to place them. This also includes the reference tags to the CSS style sheets and the JavaScript file.</p>
<p>The HTML for our posticks will be as follows:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;">&lt;div  &gt;</span>&nbsp;</p>
<p><span style="color: #003366;">&lt;div  &gt;&lt;span   title=&#8221;Close&#8221;&gt;x&lt;/span&gt;&lt;/div&gt;</span></p>
<p><span style="color: #003366;">&lt;div contenteditable  &gt;&lt;/div&gt;</span></p>
<p><span style="color: #003366;">&lt;/div&gt;</span></td>
</tr>
</tbody>
</table>
<p>Each postick &lt;div&gt; will have a subdiv called “toolbar” so we will have a place for us to put a close (x) button in. We’ll also have another subdiv called “editable” with an HTML5 attribute “contenteditable”; this will contain the text that the user will input in the sticky note.</p>
<p>And now for the <a href="http://blogfreakz.com/category/css3/" target="_blank"><strong>CSS</strong></a> part, which is a lengthy one:</p>
<table border="1" cellspacing="0" cellpadding="0" width="625" height="2310">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;">/************   Tags ************/</span>&nbsp;</p>
<p><span style="color: #003366;">/* Just some   basic reset for the body tag */</span></p>
<p><span style="color: #003366;">body {</span></p>
<p><span style="color: #003366;">background:#F1C387;</span></p>
<p><span style="color: #003366;">padding:0;</span></p>
<p><span style="color: #003366;">margin:0;</span></p>
<p><span style="color: #003366;">font-family: Helvetica, Verdana, Geneva,   sans-serif</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">header {</span></p>
<p><span style="color: #003366;">padding-left:20px;</span></p>
<p><span style="color: #003366;">height:50px;</span></p>
<p><span style="color: #003366;">display:block;</span></p>
<p><span style="color: #003366;">background:#0E0300;</span></p>
<p><span style="color: #003366;">-webkit-box-shadow:0px 2px 5px gray;</span></p>
<p><span style="color: #003366;">-moz-box-shadow:0px 2px 5px gray;</span></p>
<p><span style="color: #003366;">box-shadow:0px 2px 5px gray;</span></p>
<p><span style="color: #003366;">text-align:right;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">h1 {</span></p>
<p><span style="color: #003366;">color:white;</span></p>
<p><span style="color: #003366;">display:inline;</span></p>
<p><span style="color: #003366;">font-size:210%;</span></p>
<p><span style="color: #003366;">padding:15px 10px 0px 0px;</span></p>
<p><span style="color: #003366;">text-shadow: 1px -1px 0px #999;</span></p>
<p><span style="color: #003366;">text-transform:capitalize;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">input[type="button"]   {</span></p>
<p><span style="color: #003366;">background:#EFE4DC;</span></p>
<p><span style="color: #003366;">border:1px solid black;</span></p>
<p><span style="color: #003366;">-moz-border-radius:5px;</span></p>
<p><span style="color: #003366;">border-radius:5px;</span></p>
<p><span style="color: #003366;">color:black;</span></p>
<p><span style="color: #003366;">font-weight:bold;</span></p>
<p><span style="color: #003366;">float:left;</span></p>
<p><span style="color: #003366;">padding:10px;</span></p>
<p><span style="color: #003366;">margin:5px 10px 0 0;</span></p>
<p><span style="color: #003366;">text-shadow: 1px 1px 0px white;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">input[type="button"]:hover   {</span></p>
<p><span style="color: #003366;">background:#E03A00;</span></p>
<p><span style="color: #003366;">color:white;</span></p>
<p><span style="color: #003366;">text-shadow: 1px 1px 0px black;</span></p>
<p><span style="color: #003366;">cursor:pointer;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">/************ Classes   ************/</span></p>
<p><span style="color: #003366;">.postick {</span></p>
<p><span style="color: #003366;">border:1px solid gray;</span></p>
<p><span style="color: #003366;">width:200px;</span></p>
<p><span style="color: #003366;">height:200px;</span></p>
<p><span style="color: #003366;">padding:4px;</span></p>
<p><span style="color: #003366;">font-size:85%;</span></p>
<p><span style="color: #003366;">background:#FFFC7F;</span></p>
<p><span style="color: #003366;">-moz-box-shadow:2px 2px 2px #999999;</span></p>
<p><span style="color: #003366;">-webkit-box-shadow:2px 2px 2px #999999;</span></p>
<p><span style="color: #003366;">box-shadow:2px 2px 2px #999999;</span></p>
<p><span style="color: #003366;">position:absolute;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">.toolbar {</span></p>
<p><span style="color: #003366;">text-align:right;</span></p>
<p><span style="color: #003366;">font-weight:bold;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">/* Postick&#8217;s button   &#8220;delete&#8221; */</span></p>
<p><span style="color: #003366;">.delete {</span></p>
<p><span style="color: #003366;">cursor:pointer;</span></p>
<p><span style="color: #003366;">font-size:120%;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">/* Content to be editable   inside the postick */</span></p>
<p><span style="color: #003366;">.editable {</span></p>
<p><span style="color: #003366;">cursor:pointer;</span></p>
<p><span style="color: #003366;">height:180px;</span></p>
<p><span style="color: #003366;">marging:0 auto;</span></p>
<p><span style="color: #003366;">width:100%;</span></p>
<p><span style="color: #003366;">overflow:hidden;</span></p>
<p><span style="color: #003366;">position:relative;</span></p>
<p><span style="color: #003366;">-moz-text-shadow: 1px 1px 0px white;</span></p>
<p><span style="color: #003366;">text-shadow: 1px 1px 0px white;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">.editable:hover{</span></p>
<p><span style="color: #003366;">border:1px dotted gray;</span></p>
<p><span style="color: #003366;">}</span></td>
</tr>
</tbody>
</table>
<p>Like the HTML code, the CSS code is also straightforward. We first reset the body tag, then we stylize the button (input) that creates the posticks, and then stylize the postick itself and the elements inside it (i.e. the delete button, toolbar, etc.).</p>
<p>And now for the <a href="http://blogfreakz.com/category/javascript/" target="_blank"><strong>JavaScript</strong></a>:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="638" valign="top"><span style="color: #003366;">(function   ($, $S) {</span>&nbsp;</p>
<p><span style="color: #003366;">//$ jQuery</span></p>
<p><span style="color: #003366;">//$S window.localStorage</span></p>
<p><span style="color: #003366;">//Variables Declaration</span></p>
<p><span style="color: #003366;">var $board = $(&#8216;#board&#8217;),</span></p>
<p><span style="color: #003366;">//Board where the Posticks are   sticked</span></p>
<p><span style="color: #003366;">Postick, //Singleton Object   containing the Functions to work with the LocalStorage</span></p>
<p><span style="color: #003366;">len = 0, //Length of Objects in the   LocalStorage</span></p>
<p><span style="color: #003366;">currentNotes = &#8221;, //Storage the html   construction of the posticks</span></p>
<p><span style="color: #003366;">o; //Actual Postick data in the   localStorage</span></p>
<p><span style="color: #003366;">//Manage the Posticks in the Local   Storage</span></p>
<p><span style="color: #003366;">//Each postick is saved in the   localStorage as an Object</span></p>
<p><span style="color: #003366;">Postick = {</span></p>
<p><span style="color: #003366;">add: function (obj) {</span></p>
<p><span style="color: #003366;">obj.id = $S.length;</span></p>
<p><span style="color: #003366;">$S.setItem(obj.id,   JSON.stringify(obj));</span></p>
<p><span style="color: #003366;">},</span></p>
<p><span style="color: #003366;">retrive: function (id) {</span></p>
<p><span style="color: #003366;">return   JSON.parse($S.getItem(id));</span></p>
<p><span style="color: #003366;">},</span></p>
<p><span style="color: #003366;">remove: function (id) {</span></p>
<p><span style="color: #003366;">$S.removeItem(id);</span></p>
<p><span style="color: #003366;">},</span></p>
<p><span style="color: #003366;">removeAll: function () {</span></p>
<p><span style="color: #003366;">$S.clear();</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">};</span></p>
<p><span style="color: #003366;">//If exist any postick, Create it/them</span></p>
<p><span style="color: #003366;">len = $S.length;</span></p>
<p><span style="color: #003366;">if (len) {</span></p>
<p><span style="color: #003366;">for (var i = 0; i &lt; len; i++) {</span></p>
<p><span style="color: #003366;">//Create all posticks saved in   localStorage</span></p>
<p><span style="color: #003366;">var key = $S.key(i);</span></p>
<p><span style="color: #003366;">o = Postick.retrive(key);</span></p>
<p><span style="color: #003366;">currentNotes += &#8216;&lt;div  &#8216;;</span></p>
<p><span style="color: #003366;">currentNotes += &#8216;   style=&#8221;left:&#8217; + o.left;</span></p>
<p><span style="color: #003366;">currentNotes += &#8216;px; top:&#8217; +   o.top;</span></p>
<p><span style="color: #003366;">//data-key is the attribute   to know what item delete in the localStorage</span></p>
<p><span style="color: #003366;">currentNotes +=   &#8216;px&#8221;&gt;&lt;div&gt;&lt;span   data-key=&#8221;&#8216; + key;</span></p>
<p><span style="color: #003366;">currentNotes +=   &#8216;&#8221;&gt;x&lt;/span&gt;&lt;/div&gt;&lt;div contenteditable=&#8221;true&#8221;  &gt;&#8217;;</span></p>
<p><span style="color: #003366;">currentNotes += o.text;</span></p>
<p><span style="color: #003366;">currentNotes += &#8216;&lt;/div&gt;&#8217;;</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">//Append all the posticks to the   board</span></p>
<p><span style="color: #003366;">$board.html(currentNotes);</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">//When the document is ready, make all   posticks Draggable</span></p>
<p><span style="color: #003366;">$(document).ready(function () {</span></p>
<p><span style="color: #003366;">$(&#8220;.postick&#8221;).draggable({</span></p>
<p><span style="color: #003366;">cancel: &#8216;.editable&#8217;,</span></p>
<p><span style="color: #003366;">&#8220;zIndex&#8221;: 3000,</span></p>
<p><span style="color: #003366;">&#8220;stack&#8221; : &#8216;.postick&#8217;</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">//Remove Postick</span></p>
<p><span style="color: #003366;">$(&#8216;span.delete&#8217;).live(&#8216;click&#8217;, function   () {</span></p>
<p><span style="color: #003366;">if (confirm(&#8216;Are you sure you want to   delete this Note?&#8217;)) {</span></p>
<p><span style="color: #003366;">var $this = $(this);</span></p>
<p><span style="color: #003366;">//data-key is the attribute   to know what item delete in the localStorage</span></p>
<p><span style="color: #003366;">Postick.remove($this.attr(&#8216;data-key&#8217;));</span></p>
<p><span style="color: #003366;">$this.closest(&#8216;.postick&#8217;).fadeOut(&#8216;slow&#8217;, function () {</span></p>
<p><span style="color: #003366;">$(this).remove();</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">//Create postick</span></p>
<p><span style="color: #003366;">$(&#8216;#btn-addNote&#8217;).click(function () {</span></p>
<p><span style="color: #003366;">$board.append(&#8216;&lt;div   style=&#8221;left:20px;top:70px&#8221;&gt;&lt;div  &gt;&lt;span   title=&#8221;Close&#8221;&gt;x&lt;/span&gt;&lt;/div&gt;&lt;div contenteditable  &gt;&lt;/div&gt;&lt;/div&gt;&#8217;);</span></p>
<p><span style="color: #003366;">$(&#8220;.postick&#8221;).draggable({</span></p>
<p><span style="color: #003366;">cancel: &#8216;.editable&#8217;</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">//Save all the posticks when the user   leaves the page</span></p>
<p><span style="color: #003366;">window.onbeforeunload = function () {</span></p>
<p><span style="color: #003366;">//Clean the localStorage</span></p>
<p><span style="color: #003366;">Postick.removeAll();</span></p>
<p><span style="color: #003366;">//Then insert each postick into the   LocalStorage</span></p>
<p><span style="color: #003366;">//Saving their position on the   page, in order to position them when the page is loaded again</span></p>
<p><span style="color: #003366;">$(&#8216;.postick&#8217;).each(function () {</span></p>
<p><span style="color: #003366;">var $this = $(this);</span></p>
<p><span style="color: #003366;">Postick.add({</span></p>
<p><span style="color: #003366;">top:   parseInt($this.position().top),</span></p>
<p><span style="color: #003366;">left:   parseInt($this.position().left),</span></p>
<p><span style="color: #003366;">text:   $this.children(&#8216;.editable&#8217;).text()</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">});</span></p>
<p><span style="color: #003366;">}</span></p>
<p><span style="color: #003366;">})(jQuery,   window.localStorage);</span></td>
</tr>
</tbody>
</table>
<p>I believe the JavaScript is pretty much self-explanatory since it also already contains some notes about each part of the code, and especially if you already know enough about JavaScript. <img src='http://blogfreakz.com/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Create Sticky Notes Using HTML5, CSS3, and jQuery" class='wp-smiley' title="Create Sticky Notes Using HTML5, CSS3, and jQuery" /> </p>
<p>Anyway, you can check the <a href="http://www.admixweb.com/demos/posticks/"><strong>demo</strong></a> of the tutorial <a href="http://www.admixweb.com/demos/posticks/"><strong>here</strong></a>. Also, you can get the full source code (.zip) <a href="http://www.admixweb.com/demos/posticks/posticks.zip"><strong>here</strong></a>. I hope you enjoy creating and using your posticks!<br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="jquery sticky notes">jquery sticky notes</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="sticky notes using jquery with storing facility">sticky notes using jquery with storing facility</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="jquery html5 lightbox">jquery html5 lightbox</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="ajax sticky notes script">ajax sticky notes script</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="sticky notes windows with html5 and css3">sticky notes windows with html5 and css3</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="sticky div jquery">sticky div jquery</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="sticky note ajax jquery">sticky note ajax jquery</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="php script sticky notes">php script sticky notes</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="node js file uploader html5">node js file uploader html5</a></li>
<li><a href="http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/" title="jquery sticky notes script">jquery sticky notes script</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/create-sticky-notes-using-html5-css3-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zoom In On Your Website with ImageLens</title>
		<link>http://blogfreakz.com/web-design/zoom-in-on-your-website-with-imagelens/</link>
		<comments>http://blogfreakz.com/web-design/zoom-in-on-your-website-with-imagelens/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 13:12:56 +0000</pubDate>
		<dc:creator>Marvin@Blogfreakz</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Software & Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ImageLens]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blogfreakz.com/?p=24386</guid>
		<description><![CDATA[Here’s a terrific jQuery plugin that can make viewing your website extra-fun for visitors! Created by a web developer at Dailycoding.com , ImageLens is one cool plugin that zooms in on images when you hover over them. Here’s what you will need: jQuery, image and the ImageLens plugin – jquery.imagelens.js. Check out the demo and [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s a terrific jQuery plugin that can make viewing your website extra-fun for visitors! Created by a web developer at <strong><a href="http://www.dailycoding.com" target="_blank">Dailycoding.com </a></strong>, ImageLens is one cool plugin that zooms in on images when you hover over them.</p>
<p>Here’s what you will need: jQuery, image and the ImageLens plugin – jquery.imagelens.js.</p>
<p><a href="http://www.dailycoding.com/Uploads/2011/03/imageLens/demo.html" target="_blank"><img class="aligncenter size-medium wp-image-24388" title="ImageLens" src="http://blogfreakz.com/wp-content/uploads/2012/01/18-285x175.jpg" alt="18 285x175 Zoom In On Your Website with ImageLens" width="285" height="175" /></a></p>
<p>Check out the <strong><a href="http://www.dailycoding.com/Uploads/2011/03/imageLens/demo.html" target="_blank">demo</a></strong> and the <strong><a href="www.dailycoding.com/Uploads/2011/03/imageLens.zip" target="_blank">download. </a></strong></p>
<p>Include jQuery and jQuery.imagelens.js in your page:</p>
<p><span style="color: #000080;">&lt;script src=&#8221;jquery.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></p>
<p><span style="color: #000080;">&lt;script src=&#8221;jquery.imageLens.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></p>
<p><strong> </strong></p>
<p>Use ImageLens for default image lens. This will calculate the image and the zoom function.</p>
<pre><span style="color: #000080;">$("#img_01").imageLens();</span></pre>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p>You can specify the image source if you have a different thumbnail image from the zoomed image.</p>
<pre><span style="color: #000080;">$("#img_03").imageLens({ imageSrc: "sample01.jpg" });                                  </span></pre>
<p>Customizing the lens size:</p>
<pre><span style="color: #000080;">$("#img_02").imageLens({ lensSize: 200 });</span></pre>
<p>You can also adjust the attributes in the lens like border size and border color. <span style="color: #000080;"> </span></p>
<pre><span style="color: #000080;">$("#img_04").imageLens({ borderSize: 8, borderColor: "#06f" });</span></pre>
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="http://blogfreakz.com/web-design/zoom-in-on-your-website-with-imagelens/" title="175 jquery mouse over zoom jquery">175 jquery mouse over zoom jquery</a></li>
<li><a href="http://blogfreakz.com/web-design/zoom-in-on-your-website-with-imagelens/" title="dailycoding com menus in home page jquery">dailycoding com menus in home page jquery</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogfreakz.com/web-design/zoom-in-on-your-website-with-imagelens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

