<?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>Codigo Manso &#187; plugin</title>
	<atom:link href="http://www.codigomanso.com/en/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigomanso.com</link>
	<description>Programación, informática y tecnología</description>
	<lastBuildDate>Sun, 21 Aug 2011 10:54:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Click effect for jQuery</title>
		<link>http://www.codigomanso.com/en/2010/02/click-effect-in-javascript-for-jquery/</link>
		<comments>http://www.codigomanso.com/en/2010/02/click-effect-in-javascript-for-jquery/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:57:52 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=823</guid>
		<description><![CDATA[Today I&#8217;ve been playing for a while with javascript. The truth is that I haven&#8217;t found what I was looking for, but let&#8217;s assume that this is because I&#8217;m a programmer and not a designer.
Anyway, what I was trying to do is to create some kind of click effect. Ok, let me try again. What [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Today I&#8217;ve been playing for a while with javascript. The truth is that I haven&#8217;t found what I was looking for, but let&#8217;s assume that this is because I&#8217;m a programmer and not a designer.</p>
<p style="text-align: justify;">Anyway, what I was trying to do is to create some kind of click effect. Ok, let me try again. What I wanted to do, is that when someone clicked on a link, that some kind of circle/rectangle/whatever expanded disappearing. Let&#8217;s try with an example. Have you seen those TV ads for games for the Wii? At the beginning there are like three or four circles that disappear. Something like that, but less sophisticate is what I wanted to do.</p>
<p style="text-align: justify;">After trying several things, even after playing with images, I come up with a solution that is quite aproximated, although still needs something extra I don&#8217;t know how to do.</p>
<ul>
<li><a href="http://www.codigomanso.com/archives/html/click-simulator-example/index.html" target="_blank">See the click effect in a live demo</a> (demo)</li>
<li><a href="http://www.codigomanso.com/archives/html/click-simulator-example/jSimulateClick.js">Download the jQuery plugin jSimulateClick </a></li>
</ul>
<p>The example has two interesting parts.</p>
<p>The first part is where the effect is associated to the elements of class &#8216;clickable-round&#8217;. When you click on any &#8216;clickable-round&#8217; element, a circle will appear and diffuminate:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.clickable-round'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 $<span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">currentTarget</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jSimulateClick</span> <span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">pageX</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> event.<span style="color: #660066;">pageY</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'round'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The other interesting fragment associated the event to the elements that contain the class &#8216;clickable-square&#8217;. When you click on any of those elements, the effect will be quite similar to the previous one, but instead of drawing a circle, a square that will go from one pixel to the width and height of the clicked object will appear.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.clickable-square'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">currentTarget</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jSimulateClick</span> <span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">pageX</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> event.<span style="color: #660066;">pageY</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If you want to play with the plugin, my advice is that you start playing with the border width, border color, the duration, or even the size of the circle/rectangle&#8230;</p>
<p>You can use this javascript for any personal or commercial application, or do whatever you want with it.</p>
<p>Finally, I would appreciate any comment for improving the effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2010/02/click-effect-in-javascript-for-jquery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Rounding corners: the javascript way</title>
		<link>http://www.codigomanso.com/en/2008/12/rounded-corners-con-javascript/</link>
		<comments>http://www.codigomanso.com/en/2008/12/rounded-corners-con-javascript/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 09:51:50 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[esquina redondeada]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mochikit]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rounded corner]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=330</guid>
		<description><![CDATA[After taking a look on how round corners on some browsers, I think it&#8217;s worth exploring other methods, like doing this with javascript.
Rounding corners is not difficult, in general, the problem is that you should use some &#8220;hacks&#8221;,  it is not the same rounding corners using a style on a unique DIV, than using 3 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After taking a look on <a href="http://www.codigomanso.com/en/2008/12/rounded-corners-en-css3/" target="_blank">how round corners on some browsers</a>, I think it&#8217;s worth exploring other methods, like doing this with javascript.</p>
<p style="text-align: justify;">Rounding corners is not difficult, in general, the problem is that you should use some &#8220;hacks&#8221;,  it is not the same rounding corners using a style on a unique DIV, than using 3 DIVS or create a TABLE with background images in order to emulate this effect.</p>
<p style="text-align: justify;">Unfortunately, as the Internet Explorer (even version 6) is still widely used, doing what I&#8217;ve explained on the previous post is not a good practice at all.</p>
<p style="text-align: justify;">Anyway, for practical use, as I&#8217;ve said before, there are other easy methods to let people see rounded corners no matter its race, gender, religion, operating system or browser. One of this  methods is using javascript libraries for rounding corners easily.  Fortunately, the web is full of javascript libraries, and rounding corners was once an important topic, so let&#8217;s see some options:</p>
<ul>
<li><a href="http://www.html.it/articoli/nifty/index.html" target="_blank">Nifty Corners</a>, and the latest version, <a href="http://www.html.it/articoli/niftycube/index.html" target="_blank">Nifty Corners Cube</a>: this was the first widely used solution, it received very good reviews by the time <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><a href="http://methvin.com/jquery/jq-corner.html">jQuery corner plugin</a>, created by <a href="http://methvin.com/jquery/jq-corner.html">Dave Methvin</a>: here you could see <a href="http://methvin.com/jquery/jq-corner-demo.html">a demo using all the parameters</a>. After some time this plugin was updated by Mike Alsup who included even more conrer types  (<a href="http://malsup.com/jquery/corner/" target="_blank">taking a look to this demo to see all available corners</a>).</li>
<li><a href="http://jrc.meerbox.nl/?p=13" target="_blank">JRC</a> is another plugin for jQuery I&#8217;ve found on the internet,  <a href="http://jrc.meerbox.nl/demo/" target="_blank">following this link you could see a demo</a></li>
<li><a href="http://www.mochikit.com" target="_blank">MochiKit</a> comes with<a href="http://www.mochikit.com/examples/rounded_corners/index.html"> native support for rounded corners as you could see on this example</a>, somehow is very limited but enough for some purposes</li>
<li><a href="http://openrico.org/" target="_blank">OpenRico</a> also <a href="http://demos.openrico.org/demos/corner" target="_blank">supports rounded corners natively</a></li>
</ul>
<p style="text-align: justify;">Finally, if you do not intend to use javascript for rounding corners (because you are looking for something more sofisticated, or you don&#8217;t like doing this kind of things by javascript), then take a look at this article about <a href="http://www.cssjuice.com/25-rounded-corners-techniques-with-css/" target="_blank">25 techniques for rounding corners using CSS</a></p>
<p style="text-align: justify;"><strong>Update:</strong> I&#8217;ve found <a href="http://www.ruzee.com/blog/shadedborder" target="_blank">ShadedBorder</a> which looks great, and I think this is the one I&#8217;m going to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2008/12/rounded-corners-con-javascript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

