<?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>Scott Rockers&#039; Blog &#187; jQuery</title>
	<atom:link href="http://scottrockers.com/blog/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://scottrockers.com/blog</link>
	<description>Website Designer and Developer, Flash, Wordpress, jQuery, and Other Scripts</description>
	<lastBuildDate>Mon, 22 Aug 2011 21:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Coronado Cupcakery Website</title>
		<link>http://scottrockers.com/blog/portfolio/freelance-projects/coronado-cupcakery-website</link>
		<comments>http://scottrockers.com/blog/portfolio/freelance-projects/coronado-cupcakery-website#comments</comments>
		<pubDate>Thu, 10 Feb 2011 16:41:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Freelance Projects]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1175</guid>
		<description><![CDATA[A few weeks ago, I finished developing and designing another website called Coronado Cupcakery. The cupcakery, located in Coronado, California has a fun but clean feel to it and the owner, Rosalina, wanted to have a similar look and feel for their website. Rosalina was a great client and I loved designing and developing her [...]]]></description>
			<content:encoded><![CDATA[<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2011/02/coronado-cupcakery.jpg" rel="shadowbox[post-1175];player=img;"><img src="http://scottrockers.com/blog/wp-content/uploads/2011/02/coronado-cupcakery-300x231.jpg" alt="" title="coronado-cupcakery-website" width="300" height="231" class="aligncenter size-medium wp-image-1173" /></a></td>
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2011/02/coronado-cupcakery2.jpg" rel="shadowbox[post-1175];player=img;"><img src="http://scottrockers.com/blog/wp-content/uploads/2011/02/coronado-cupcakery2-300x231.jpg" alt="" title="coronado-cupcakery-website-flavors" width="300" height="231" class="aligncenter size-medium wp-image-1174" /></a></td>
</tr>
</table>
<p>A few weeks ago, I finished developing and designing another website called <a href="http://www.coronadocupcakery.com">Coronado Cupcakery</a>. The cupcakery, located in Coronado, California has a fun but clean feel to it and the owner, Rosalina, wanted to have a similar look and feel for their website. Rosalina was a great client and I loved designing and developing her site. Some of the things I love about the site are the clean lines, classic text, and lots of color (I kept the background white for a clean look, and so that the colors and pictures would pop off the page). The website includes everything from a flavors page, to an ordering form, to a gallery of some of their most impressive work&#8230;. all organized in a fashion that is user friendly and easy to navigate. </p>
<p>Another part of the site I like a lot is the navigation. To create it, I used <a href="http://net.tutsplus.com/">nettuts</a> <a href="http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-lava-lamp-style-navigation-menu/">How to Build a Lava-Lamp Style Navigation Menu</a> but I edited the files some so that the hover effect didn&#8217;t cover the entire menu item, but instead just kept an thick underline underneath the menu item. I really like the effect and I think I might recreate it as a flash menu.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/freelance-projects/coronado-cupcakery-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change of Status.com Website</title>
		<link>http://scottrockers.com/blog/portfolio/work-projects/change-of-status-website</link>
		<comments>http://scottrockers.com/blog/portfolio/work-projects/change-of-status-website#comments</comments>
		<pubDate>Thu, 19 Aug 2010 19:55:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Projects]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1127</guid>
		<description><![CDATA[I have finished redesigning another website called changeofstatus.com. The purpose of the site is to help simplify and minimize the confusion involved in an employee&#8217;s change of status (sometimes called a &#8220;life event&#8221;) as it pertains to their various healthcare benefit plans. When someone gets married or looses a dependent, usually things like this are [...]]]></description>
			<content:encoded><![CDATA[<table border="0" width="100%">
<tbody>
<tr>
<th scope="col"><a href="http://scottrockers.com/blog/wp-content/uploads/2010/08/changeofstatusNEW.jpg" rel="shadowbox[post-1127];player=img;"><img class="aligncenter size-medium wp-image-1128" title="changeofstatus" src="http://scottrockers.com/blog/wp-content/uploads/2010/08/changeofstatusNEW-300x182.jpg" alt="" width="300" height="182" /></a></th>
<th scope="col"><a href="http://scottrockers.com/blog/wp-content/uploads/2010/08/changeofstatusOLD.jpg" rel="shadowbox[post-1127];player=img;"><img class="aligncenter size-medium wp-image-1129" title="change-of-status" src="http://scottrockers.com/blog/wp-content/uploads/2010/08/changeofstatusOLD-300x182.jpg" alt="" width="300" height="182" /></a></th>
</tr>
</tbody>
</table>
<p>I have finished redesigning another website called <a href="http://www.changeofstatus.com">changeofstatus.com</a>. The purpose of the site is to help simplify and minimize the confusion involved in an employee&#8217;s change of status (sometimes called a &#8220;life event&#8221;) as it pertains to their various healthcare benefit plans. When someone gets married or looses a dependent, usually things like this are considered life events and allow the employee to change their benefit package accordingly, so they are not paying for something they do not need. Also on the change of Status website there is a tool that converts the complicated employee change of benefits status matrix to an easy-to-use, three-step wizard, allowing employees, employers and administrators to determine what life events are permitted under IRS rules and regulations.  I redesigned the site completely, you can see the site images above. The image on the right is the &#8216;before&#8217; image, and the image on the left is the &#8216;after&#8217;. I used this template before on other company websites and I thought I do the same for this site to keep the branding consistent overall.</p>
<p>The site uses the <a href="http://jquery.malsup.com/cycle/">jQuery Cycle Plugin</a> for the banner rotater so that its visible even on devices like phones that don&#8217;t run Flash.  Also, the website is completely SEO friendly. This is another case where I put my <a href="http://scottrockers.com/blog/resources/useful-websites/seo-check-list">SEO checklist</a> to work and it has helped tremendously. Previously the site was around 500 hits a month. Now even after a couple weeks, it has raised to over 1,500 hits a month. I&#8217;ll post the google analytics pictures as soon as I can.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/work-projects/change-of-status-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fade In and Fade Out in jQuery</title>
		<link>http://scottrockers.com/blog/resources/tutorials/fade-in-and-fade-out-in-jquery</link>
		<comments>http://scottrockers.com/blog/resources/tutorials/fade-in-and-fade-out-in-jquery#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:36:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[fade in]]></category>
		<category><![CDATA[fade out]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1055</guid>
		<description><![CDATA[I have been working a lot more with jQuery lately, so I thought I would show you how to do the simple fade in or fade out jQuery hover effect that occurs to the navigation when you go to the Google homepage. You know the one that I am talking about, its occurs when your [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working a lot more with <a href="http://jquery.com/" target="_blank">jQuery</a> lately, so I thought I would show you how to do the simple fade in or fade out jQuery hover effect that occurs to the navigation when you go to the <a href="http://www.google.com" target="_blank">Google</a> homepage. You know the one that I am talking about, its occurs when your mouse goes over the page of the google homepage, all the navigation at the top appears. </p>
<p>For the first example, I will show you how to make the fade in jQuery hover effect. Hover over the box below to see the effect.</p>
<div id="googlediv" style="width:500px; height:200px; border:1px solid #ffffff;">
<div id="googlenav">
<ul>
<li><a href="#">Web</a></li>
<li><a href="#">Images</a></li>
<li><a href="#">Videos</a></li>
<li><a href="#">Maps</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Shopping</a></li>
<li><a href="#">Gmail</a></li>
</ul>
</div>
<div style="margin:0px auto; width:500px; text-align:center;">
<p>&nbsp;</p>
<p>The rest of the content of the page</p>
</div>
</div>
<p>To do this, first place this jQuery code in the &lt;head&gt;&lt;/head&gt; section of your html file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//the first line gets the latest jquery scripts</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://code.jquery.com/jquery-latest.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">//this function is called when the page is ready</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//first hide the div with the id of googlenav</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlenav&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">//then when you rollover the specified div fade in the googlenav</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlediv&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlenav&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</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>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Then add this html code into the &lt;body&gt;&lt;/body&gt; of your html document</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;googlediv&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width:500px; height:200px; border:1px solid #ffffff;&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;googlenav&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Web<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Images<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Videos<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Maps<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>News<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Shopping<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Gmail<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;margin:0px auto; width:500px; text-align:center;&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>The rest of the content of the page<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>You can style the content hover you like, I tried to keep all the links inline like google does. Here is my styling, you can add this in the &lt;head&gt;&lt;/head&gt; section too.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
<span style="color: #cc00cc;">#googlenav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Arial</span><span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c9d7f1</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">26px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#googlenav</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#googlenav</span> ul li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>Now google fades in their links and navigation when you roll over the page, not a specific div.  So if you wanted it to be exactly like that, you would target the page instead of that particular div. So in your jQuery instead of this:</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;">&quot;div#googlediv&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlenav&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</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>You would put this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">body</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlenav&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</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>And style accordingly. Now if you want to fade out in jQuery, instead of fadeIn(), you would use the fadeOut() function. And Remember you don&#8217;t have to hide the content first, so the jQuery would look like this.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//the first line gets the latest jquery scripts</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://code.jquery.com/jquery-latest.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">//this function is called when the page is ready</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//then when you rollover the specified div fade in the googlenav</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlediv&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#googlenav&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</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>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>An example of the fadeOut function is below using the code above.</p>
<div id="googlediv2" style="width:500px; height:200px; border:1px solid #ffffff;">
<div id="googlenav2">
<ul>
<li><a href="#">Web</a></li>
<li><a href="#">Images</a></li>
<li><a href="#">Videos</a></li>
<li><a href="#">Maps</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Shopping</a></li>
<li><a href="#">Gmail</a></li>
</ul>
</div>
<div style="margin:0px auto; width:500px; text-align:center;">
<p>&nbsp;</p>
<p>The rest of the content of the page</p>
</div>
</div>
<p>That&#8217;s really about it, if this helps you out please leave a comment.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/tutorials/fade-in-and-fade-out-in-jquery/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HRA105.com Website</title>
		<link>http://scottrockers.com/blog/portfolio/work-projects/hra105-com-website</link>
		<comments>http://scottrockers.com/blog/portfolio/work-projects/hra105-com-website#comments</comments>
		<pubDate>Wed, 17 Mar 2010 17:55:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Projects]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=991</guid>
		<description><![CDATA[I have finished working on another site for work, called HRA105.com. It&#8217;s a informational and marketing website for HRAs (Health Reimbursement Arrangements).  The pictures on the left are the redesign and updated site, and the pictures on the right is what it use to look like. As you can see I did a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>I have finished working on another site for work, called <a title="HRA (Health Reimbursement Arrangements)" href="http://www.hra105.com" target="_blank">HRA105.com</a>. It&#8217;s a informational and marketing website for HRAs (Health Reimbursement Arrangements).  The pictures on the left are the redesign and updated site, and the pictures on the right is what it use to look like. As you can see I did a lot of updates to the site. First off, I created all the banner images and made a simple jQuery Rotating banner with a simple fading transition with the <a title="jquery cycle plugin" href="http://www.malsup.com/jquery/cycle/" target="_blank">jQuery  Cycle  Plugin</a>. This is a really nice feature because it will show up in all browsers including iPhones. Secondly,  I used Stu Nicholls&#8217; great horizontal navigation called <a title="professional dropdown menu" href="http://www.stunicholls.com/menu/pro_dropdown_2.html" target="_blank">Professional Dropdown #2</a>. I would of created my own navigational menu but it just saves so much time using other&#8217;s free stuff and this is just a really  nice and simple menu to use and setup. The problem with the original site was that the navigation was non-existent. You had to click on the flash portion at the top and then click &#8220;click here to read more&#8221; and then the subpages had tons of white space between paragraphs that made no since and it was hard to find what you wanted. The most important part of any website is that its easy to get around and find what you want, if the user can&#8217;t use your site they will leave it in a matter of seconds. Also, I made all the subpages consistent and made the site a standard 1024px by 768px instead of a stretch to fit liquid layout so it looks the same on all computers. Its cross browser compatible as well and I performed my SEO checklist on the site as well.</p>
<table border="0" width="100%">
<tbody>
<tr valign="top">
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105after1.jpg" rel="shadowbox[post-991];player=img;"><img class="aligncenter size-medium wp-image-993" title="hra105after1" src="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105after1-300x201.jpg" alt="" width="300" height="201" /></a></td>
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105before1.jpg" rel="shadowbox[post-991];player=img;"><img class="aligncenter size-medium wp-image-995" title="hra105before1" src="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105before1-300x230.jpg" alt="" width="300" height="230" /></a></td>
</tr>
<tr valign="top">
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105after2.jpg" rel="shadowbox[post-991];player=img;"><img class="aligncenter size-medium wp-image-994" title="hra105after2" src="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105after2-300x189.jpg" alt="" width="300" height="189" /></a></td>
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105before2.jpg" rel="shadowbox[post-991];player=img;"><img class="aligncenter size-medium wp-image-992" title="hra105before2" src="http://scottrockers.com/blog/wp-content/uploads/2010/03/hra105before2-300x159.jpg" alt="" width="300" height="159" /></a></td>
</tr>
</tbody>
</table>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/work-projects/hra105-com-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Cycle Plugin &#8211; A Slideshow Creator Javascript File</title>
		<link>http://scottrockers.com/blog/resources/tutorials/jquery-cycle-plugin-a-slideshow-creator-javascript-file</link>
		<comments>http://scottrockers.com/blog/resources/tutorials/jquery-cycle-plugin-a-slideshow-creator-javascript-file#comments</comments>
		<pubDate>Tue, 16 Feb 2010 18:19:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=905</guid>
		<description><![CDATA[Here is another useful script that I wanted to write a quick post about. Its called jQuery Cycle Plugin, and its an additional javascript file that basically allows you to create a slideshow very easily and it supports many different types of transition effects. It &#8216;s dual licensed under the MIT and GPL licenses which [...]]]></description>
			<content:encoded><![CDATA[<div class="cyclebannerexample" style="width:82px; height:82px;" align="center">
    <img src="http://scottrockers.com/blog/wp-content/uploads/2010/02/233158.jpg" width="80" height="80" /><img src="http://scottrockers.com/blog/wp-content/uploads/2010/02/271131.jpg" width="80" height="80" /><img src="http://scottrockers.com/blog/wp-content/uploads/2010/02/216505.jpg" width="80" height="80" /><img src="http://scottrockers.com/blog/wp-content/uploads/2010/02/260178.jpg" width="80" height="80" /><img src="http://scottrockers.com/blog/wp-content/uploads/2010/02/115908.jpg" width="80" height="80" />
</div>
<p>Here is another useful script that I wanted to write a quick post about. Its called <a title="jquery cycle plugin" href="http://www.malsup.com/jquery/cycle/" target="_blank">jQuery Cycle Plugin</a>, and its an additional javascript file that basically allows you to create a slideshow very easily and it supports many different types of transition effects. It &#8216;s dual licensed under the MIT and GPL licenses which is great so you can use it in basically any project. If you don&#8217;t want to use Flash this is a really simple way to setup a slideshow that will show in all browsers. Some of the transitions are:  scrollup,  scrollleft,  scrollright,  scrolldown,  shuffle, and turndown. The images above is an example of it in action, and here is the code to it, really simple.</p>
<p>There are two things you need to add to your &lt;head&gt; section in your html, the css and javascript import lines:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
<span style="color: #6666ff;">.banner</span> <span style="color: #00AA00;">&#123;</span>  
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span>  <span style="color: #933;">82px</span><span style="color: #00AA00;">;</span>  
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>   <span style="color: #933;">82px</span><span style="color: #00AA00;">;</span>  
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>  
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span>  <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>  
<span style="color: #00AA00;">&#125;</span> 
&nbsp;
<span style="color: #6666ff;">.banner</span> img <span style="color: #00AA00;">&#123;</span>   
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span>  <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>   
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>  <span style="color: #933;">80px</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">80px</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span>  <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> 
<span style="color: #00AA00;">&#125;</span> 
<span style="color: #6666ff;">.banner</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> <span style="color: #00AA00;">&#125;</span> //these lines <span style="color: #993333;">hide</span> all the rest of the pictures on startup 
<span style="color: #6666ff;">.banner</span> img<span style="color: #6666ff;">.first</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span> <span style="color: #00AA00;">&#125;</span> //except the first image
&nbsp;
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&lt;!-- include jQuery library --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;!-- include Cycle plugin --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.banner'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">cycle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			fx<span style="color: #339933;">:</span> <span style="color: #3366CC;">'scrollLeft'</span> <span style="color: #006600; font-style: italic;">//  transition type, scrollleft</span>
		<span style="color: #009900;">&#125;</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>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>And here is the image code, just add this anywhere in your &lt;body&gt;, just make sure the class name is the same as what the javascript is looking for:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;banner&quot;&gt; 
    &lt;img src=&quot;http://scottrockers.com/blog/wp-content/uploads/2010/02/233158.jpg&quot; width=&quot;80&quot; height=&quot;80&quot; /&gt; 
    &lt;img src=&quot;http://scottrockers.com/blog/wp-content/uploads/2010/02/271131.jpg&quot; width=&quot;80&quot; height=&quot;80&quot; /&gt; 
    &lt;img src=&quot;http://scottrockers.com/blog/wp-content/uploads/2010/02/216505.jpg&quot; width=&quot;80&quot; height=&quot;80&quot; /&gt; 
    &lt;img src=&quot;http://scottrockers.com/blog/wp-content/uploads/2010/02/260178.jpg&quot; width=&quot;80&quot; height=&quot;80&quot; /&gt; 
    &lt;img src=&quot;http://scottrockers.com/blog/wp-content/uploads/2010/02/115908.jpg&quot; width=&quot;80&quot; height=&quot;80&quot; /&gt; 
&lt;/div&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/tutorials/jquery-cycle-plugin-a-slideshow-creator-javascript-file/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery: The Write Less, Do More Javascript Library</title>
		<link>http://scottrockers.com/blog/resources/useful-websites/jquery-the-write-less-do-more-javascript-library</link>
		<comments>http://scottrockers.com/blog/resources/useful-websites/jquery-the-write-less-do-more-javascript-library#comments</comments>
		<pubDate>Fri, 12 Feb 2010 16:57:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Useful Websites]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=892</guid>
		<description><![CDATA[Keeping up with the latest trends in web development is tough sometimes, only because there are new things always being created. jQuery is  one of the newer creations that have come up in the last several years and its not going away. It is the most popular JavaScript library in use today. If you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-893" style="border: 1px solid white;" title="jquery" src="http://scottrockers.com/blog/wp-content/uploads/2010/02/jquery.jpg" alt="" width="390" height="117" /></p>
<p>Keeping up with the latest trends in web development is tough sometimes, only because there are new things always being created. jQuery is  one of the newer creations that have come up in the last several years and its not going away. It is the most popular JavaScript library in use today. If you don&#8217;t know what jQuery is then here is a brief description: <a title="jQuery Website" href="http://jquery.com/" target="_blank">jQuery</a> is a JavaScript Library that is fast and concise that makes HTML document traversing, event handling, animating, and <a title="AJAX programming" href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" target="_blank">Ajax</a> interactions for rapid web development much easier. &#8220;<strong>jQuery is designed to change the way that you write JavaScript.&#8221; </strong>It&#8217;s lightweight, around 23kb, and cross browser compliant and compliant with CSS3 as well. You can create sliding banners, dropdown navigations, and much more with it. I am trying to learn more and more of it everyday, and its pretty exciting. jQuery is provided under the MIT and GPL licenses which means you can use it in your commercial projects like selling of themes and stuff. There are several good tutorials and other helpful resources on their website and I would highly recommend it and learning some yourself.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/useful-websites/jquery-the-write-less-do-more-javascript-library/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

