<?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>Web Design - css/php/seo &#187; jquery</title>
	<atom:link href="http://www.claudiocugia.com/web_design/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.claudiocugia.com/web_design</link>
	<description>Articles, code, tips&#38;tricks about web design and seo</description>
	<lastBuildDate>Fri, 14 Oct 2011 14:30:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Useful JQuery methods and events for web designers p.1</title>
		<link>http://www.claudiocugia.com/web_design/useful-jquery-methods-events-web-designers/</link>
		<comments>http://www.claudiocugia.com/web_design/useful-jquery-methods-events-web-designers/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 21:42:37 +0000</pubDate>
		<dc:creator>claudio</dc:creator>
				<category><![CDATA[copy&paste]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.claudiocugia.com/web_design/?p=343</guid>
		<description><![CDATA[I am almost finished reading Learning jQuery 1.3 by Karl Swedberg, Jonathan Chaffer ; I&#8217;d like to share some useful methods and code snippets that may come handy to web designers when it is time to handcoding our beautiful layouts. &#8230; <a href="http://www.claudiocugia.com/web_design/useful-jquery-methods-events-web-designers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am almost finished reading <a href="http://http://www.packtpub.com/learning-jquery-1.3/book">Learning jQuery 1.3</a> <em>by Karl Swedberg, Jonathan Chaffer </em>;  I&#8217;d like to share some useful methods and code snippets that may come handy to web designers when it is time to handcoding our beautiful layouts.<br />
Reference: <a href="http://jquery.com/">jquery.com</a><br />
<span id="more-343"></span> </p>
<p>First of all let&#8217;s add JQuery to our page:</p>
<pre class="brush: jscript; title: ; notranslate">
   &lt;script type=&quot;text/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Launching code:</p>
<pre class="brush: jscript; title: ; notranslate">
 $(document).ready(function(){
   // Your code here
 });
</pre>
<p><strong>These are the methods I find more useful:</strong></p>
<ol>
<li>the .noConflict() method enables the use of multiple JS libraries (like Prototype)</li>
<li>the .addClass and .removeClass
<pre class="brush: jscript; title: ; notranslate">
 $(document).ready(function(){
     $('#your_id').addClass('your_class');

 });
</pre>
</li>
<li>the negation pseudo-class:
<pre class="brush: jscript; title: ; notranslate">$('#your_id li:not(.your_class)').addClass('your_class');</pre>
</li>
<li>the :eq custom selector &#8211; selects the third item from a matched set of div selectors with a &#8216;my_class&#8217; class
<pre class="brush: jscript; title: ; notranslate"> $('div.my_class:eq(2)')</pre>
</li>
<li>the :nth-child custom selector &#8211; matches elements which are the indexth child of their parent element
<pre class="brush: jscript; title: ; notranslate">$('tr:nth-child(index)').addClass('your_class');</pre>
</li>
<li>the :odd and :even custom selectors:
<pre class="brush: jscript; title: ; notranslate"> $('tr:odd').addClass('your_class');</pre>
</li>
<li>the :contains() selector:
<pre class="brush: jscript; title: ; notranslate"> $('td:contains(name)').addClass('your_class');</pre>
</li>
<li>form selectors: :text, :checkbox, :radio, :button, :enabled, :checked, :selected</li>
</ol>
<p><strong>Shorthand events:</strong></p>
<ol>
<li>.click()</li>
<li>.toggle and .toggleClass()
<pre class="brush: jscript; title: ; notranslate">
 $(document).ready(function() {
   $('#my_id').click(function() {
     $('#my_id .button').toggleClass('my_class');
   });
 });
</pre>
</li>
<p>This in particular is very useful as it can perform actions in alternation.</p>
<li>.hover
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
  $('#my_id .button').hover(function() {
   $(this).addClass('my_class');
  }, function() {
    $(this).removeClass('my_class');
   });
 });
</pre>
</li>
<li>.css
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#my_id').css('border', '1px solid #000')
 });
</pre>
</li>
<li>
.hide and .show</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('p').hide();
 });
</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.claudiocugia.com/web_design/useful-jquery-methods-events-web-designers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Porsche menu with css and Jquery</title>
		<link>http://www.claudiocugia.com/web_design/porsche_menu_css_jquery/</link>
		<comments>http://www.claudiocugia.com/web_design/porsche_menu_css_jquery/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 14:49:59 +0000</pubDate>
		<dc:creator>claudio</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[porsche menu]]></category>

		<guid isPermaLink="false">http://www.claudiocugia.com/web_design/?p=79</guid>
		<description><![CDATA[I came across the Porsche website yesterday and the menu on the left just draw my attention &#8211; graphically I liked it; after having studied carefully the code I noticed that it is not well-structured meaning that there is a &#8230; <a href="http://www.claudiocugia.com/web_design/porsche_menu_css_jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came across the <a href="http://www.porsche.com/italy/" target="_self">Porsche</a> website yesterday and the menu on the left just draw my attention &#8211; graphically I liked it; after having studied carefully the code I noticed that it is not well-structured meaning that there is a lot of javascript in the html markup, a lot of divs and finally if you disable the css the links do not work .<span id="more-79"></span></p>
<p>So I decided to give it a try and rewrite the code using our beloved css, the jquery library (only for the alpha effects) and the <a title="ie7 on google code" href="http://code.google.com/p/ie7-js/" target="_self">ie7.js </a>script for our less beloved IE6. Let me say first that my menu just works fine with the css and the ie7.js only but I wanted to use the jquery library to make it similar to the one you find in thr Porsche website.</p>
<p>The menu is free to use, if you like just drop me a line telling me where you used it.</p>
<p><a href="http://www.claudiocugia.com/web_design/wp-content/uploads/2009/02/menu_porsche" target="_self">This is</a> the final result.<br />
Download the .zip file: <a href="http://www.claudiocugia.com/web_design/wp-content/uploads/2009/02/menu_porsche.zip">menu_porsche</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudiocugia.com/web_design/porsche_menu_css_jquery/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

