<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Blog - Portfolio of Chad Ort</title>
    <link rel="alternate" type="text/html" href="http://192.168.1.7/cao-redesign/" />
    <link rel="self" type="application/atom+xml" href="http://192.168.1.7/cao-redesign/atom.xml" />
    <id>tag:192.168.1.7,2009-10-22:/cao-redesign/2</id>
    <updated>2009-11-22T23:39:05Z</updated>
    

<entry>
    <title>jQuery Active Menu Plugin</title>
    <link rel="alternate" type="text/html" href="http://192.168.1.7/cao-redesign/blog/free-stuff/jquery-active-menu-plugin-2.php" />
    <id>tag:192.168.1.7,2009:/cao-redesign//2.39</id>

    <published>2009-11-22T23:02:54Z</published>
    <updated>2009-11-22T23:39:05Z</updated>
    
    <summary>The jQuery Active Menu plugin allows you the power of javascript to determine the page you are currently on and add the proper id (ex. &quot;active&quot;) to the corresponding menu item.</summary>
    <author>
        <name>Admin</name>
        
    </author>
    
        <category term="blog" />
    
        <category term="free-stuff" />
    
    
    <content type="html" xml:lang="en" xml:base="http://192.168.1.7/cao-redesign/">
        <![CDATA[<p>I recently had a project come up that had quite a long menu and I wasn't using a CMS. Considering the length I wanted to use a simple PHP inlcude so that I would only have to make changes to one file rather than each page. The issue was that the client wanted an active state so that the user knew which page they were currently viewing. At that point I was either to scrap the include idea and have a seperate menu for each page or turn to javascript and have it handle active state on the fly, so I choose the latter.</p>
<p>The jQuery Active Menu plugin allows you the power of javascript to determine the page you are currently on and add the proper id (ex. "active") to the corresponding menu item. It comes in handy when building out a static site and will allow you to use the exact same menu code throughout the project.</p>

<h2>Example Usage</h2>
<pre class="In-"><code class="js">
$(document).ready(function(){
	$(#mainMenu).activeMenu({
        idSwitch: 'active',  // id used for active state
        defaultSite: 'mysite.com',  // site URL
        defaultIndex: 0  // active item used for default site URL
	});
});
</code></pre>

<h2>Licensing Details</h2>
<p>The jQuery Plugins I've made available here are licensed under the <a href="http://creativecommons.org/licenses/by/3.0/us/">Creative Commons</a> license and can be used for personal and/or commercial purposes.</p>
<p>With the Creative Commons license they say you are required to "attribute the work in the manner specified by the author or licensor". <strong>However I don't require that you attribute me</strong> when using it within your work but by all means your welcome to and if you choose to do so just use this page. I do require that you leave the comments within the plugin in tact as they are.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Woody Grunge a free PSD site template</title>
    <link rel="alternate" type="text/html" href="http://192.168.1.7/cao-redesign/blog/free-stuff/woody-grunge-a-free-psd-site-template.php" />
    <id>tag:172.31.89.149,2009:/cao-redesign//2.35</id>

    <published>2009-11-09T21:07:17Z</published>
    <updated>2009-11-09T21:52:17Z</updated>
    
    <summary>With this free PSD template I&apos;m including a fully layered photoshop file. The file is well organized and if you have any questions feel free to ask. Licensing Details The free-stuff I&apos;ve made available here are licensed under the Creative...</summary>
    <author>
        <name>Admin</name>
        
    </author>
    
        <category term="blog" />
    
        <category term="free-stuff" />
    
    
    <content type="html" xml:lang="en" xml:base="http://192.168.1.7/cao-redesign/">
        <![CDATA[<p>With this free PSD template I'm including a fully layered photoshop file. The file is well organized and if you have any questions feel free to ask.</p>

<h2>Licensing Details</h2>
<p>The free-stuff I've made available here are licensed under the <a href="http://creativecommons.org/licenses/by/3.0/us/">Creative Commons</a> license and can be used for personal and/or commercial purposes.</p>
<p>With the Creative Commons license they say you are required to "attribute the work in the manner specified by the author or licensor". <strong>However I don't require that you attribute me</strong> when using it within your work but by all means your welcome to and if you choose to do so just use this page.</p>

<div class="imageWrap"
<a href="/includes/images/blog-images/woody-grunge/woody_grunge_screenshot_large.jpg"><img src="/includes/images//blog-images/woody-grunge/woody_grunge_thumbnail.jpg" width="570" height="466" alt="woody grunge a free psd template" /></a>
<p>Woody Grunge Preview</p>
</div>

<h2>Free fonts that I used</h2>
<p>Dirty Ego (headings)<br />
<a href="http://www.dafont.com/dirty-ego.font">www.dafont.com/dirty-ego.font</a></p>

<p>Bleeding Cowboys (logo)<br />
<a href="http://www.dafont.com/bleeding-cowboys.font">www.dafont.com/bleeding-cowboys.font</a></p>

<p>Carnevalee Freakshow (for hire sign)<br />
<a href="http://www.dafont.com/carnevalee-freakshow.font">www.dafont.com/carnevalee-freakshow.font</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>12 Free high-res brick textures for any use</title>
    <link rel="alternate" type="text/html" href="http://192.168.1.7/cao-redesign/blog/free-stuff/12-free-brick-textures-for-any-use.php" />
    <id>tag:192.168.1.7,2009:/cao-redesign//2.34</id>

    <published>2009-10-28T03:50:21Z</published>
    <updated>2009-10-28T06:03:16Z</updated>
    
    <summary>With this free bundle I&apos;m including 12 High-Res brick textures. They are all 3008x2000 pixels and your free to use them as you wish whether it&apos;s for commercial or personal use.</summary>
    <author>
        <name>Admin</name>
        
    </author>
    
        <category term="blog" />
    
        <category term="free-stuff" />
    
    
    <content type="html" xml:lang="en" xml:base="http://192.168.1.7/cao-redesign/">
        <![CDATA[<p>With this free bundle I'm including 12 High-Res brick textures. They are all 3008x2000 pixels and your free to use them as you wish whether it's for commercial or personal use.</p>

<h2>Licensing Details</h2>
<p>The free-stuff I've made available here are licensed under the <a href="http://creativecommons.org/licenses/by/3.0/us/">Creative Commons</a> license and can be used for personal and/or commercial purposes.</p>
<p>With the Creative Commons license they say you are required to "attribute the work in the manner specified by the author or licensor". <strong>However I don't require that you attribute me</strong> when using it within your work but by all means your welcome to and if you choose to do so just use this page.</p>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_1.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 01</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_2.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 02</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_3.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 03</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_4.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 04</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_5.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 05</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_6.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 06</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_7.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 07</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_8.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 08</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_9.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 09</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_10.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 10</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_11.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 11</p>
</div>

<div class="imageWrap">
<img class="imageTitle" src="/includes/images/blog-images/brick-textures-01/image_12.jpg" width="570" height="379" alt="" />
<p>High-Res Texture 12</p>
</div>]]>
        
    </content>
</entry>

<entry>
    <title>Create a Javascript rotating quote section</title>
    <link rel="alternate" type="text/html" href="http://192.168.1.7/cao-redesign/blog/tutorials/create-a-javascript-rotating-quote-section.php" />
    <id>tag:172.31.89.148,2009:/cao-redesign//2.33</id>

    <published>2009-10-27T16:22:44Z</published>
    <updated>2009-10-27T17:48:49Z</updated>
    
    <summary>So for my first tutorial I&apos;m going to create a testomonials section for a website using Javascript and the jQuery library. Quite often a client makes a request to show testomonials on the home page. This is one example of accomplishing that task.</summary>
    <author>
        <name>Admin</name>
        
    </author>
    
        <category term="blog" />
    
        <category term="tutorials" />
    
    
    <content type="html" xml:lang="en" xml:base="http://192.168.1.7/cao-redesign/">
        <![CDATA[<p>So for my first tutorial I'm going to create a testomonials section for a website using Javascript and the jQuery library. Quite often a client makes a request to show testomonials on the home page. This is one example of accomplishing that task.</p>

<h2>Step One</h2>
<p>First we will need to write out the HTML structure but since this is a Javascript tutorial I'm not going to focus so much on this part. It's basically just an unordered list using the blockquote tag. I'm also also adding "display: none" to the all of the list items except for the first one. This will allow a single quote to show when Javascript is turned off. Also we will link to the javascript library that we'll be using.</p>

<pre class="ln-"><code class="html">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Quote Rotator&lt;/title&gt;
&lt;script language="javascript" type="text/javascript"  src="Javascript/jquery.pack.js"&gt;&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;
	&lt;ul id="testimonials"&gt;
    	&lt;li class="slide"&gt;
        	&lt;blockquote&gt;"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras fermentum velit quis lorem bibendum commodo. Quisque dolor ipsum."&lt;/blockquote&gt;
        &lt;/li&gt;
    	&lt;li class="slide" style="display: none"&gt;
        	&lt;blockquote&gt;2-I absolutely love and take great pride in building websites. I'm passionate about all things design and dedicated to standards based design.&lt;/blockquote&gt;
        &lt;/li&gt;
    	&lt;li class="slide" style="display: none"&gt;
        	&lt;blockquote&gt;3-I absolutely love and take great pride in building websites. I'm passionate about all things design and dedicated to standards based design.&lt;/blockquote&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<h2>Step Two</h2>
<p>We'll then need to add some basic styling to make the quote look presentable. You could take this a step further using background images for the quotation mark but I'll leave that up to you.</p>

<pre class="In-"><code class="css">
#testimonials {width: 500px}
#testimonials .slide {list-style-type: none;line-height: 24px}
blockquote {font-size: 18px;font-family: Georgia, "Times New Roman", Times, serif;color: #333;font-style: italic}
</code></pre>

<h2>Step Three</h2>
<p>First let's load the jQuery library and initiate a function when the document is ready (when the DOM is loaded).</p>
<pre class="In-"><code class="js">
	$(document).ready(function() {  
 		// Stuff here  
	}); 
</code></pre>

<p>Now what we are going to do is select the div that contains the blockquotes using a common jQuery selector. We start by writing the dollar sign ($) which is just shorthand for "jQuery". So the same line could also look like "jQuery();"</p>

<pre class="In-"><code class="js">
	$('#testimonials .slide');
</code></pre>

<p>The next thing we will need to do is fade in the other quotes over a period of time using the Javascript function "setInterval". The syntax for this funtion is pretty simple<br />
setInterval (expression, interval);</p>

<pre class="In-"><code class="js">
	setInterval(function(){
						 
	},5000);
</code></pre>

<p>Next we are going to select the visible div.slide and fade it out. We do this by using a jQuery selector to select div.slide and then filter out the non visible elements using ":visible". We then set the speed and create a function.</p>

<pre class="In-"><code class="js">
$('#testimonials .slide:visible').fadeOut(5000,function(){
			
});
</code></pre>

<h2>Step Four</h2>
<p>Now we need to create an If/Else statement to fade in the remaining divs.</p>

<pre class="In-"><code class="js">
if($(this).next()){
	$(this).next().fadeIn(1000);
}
else{
	$('#testimonials .slide').fadeIn(1000);
}
</code></pre>

<p>So lets discuss each line of that statement. We first write if (this) referring to the current dom element and then using ".next()" we're selecting the sibling element. If that returns true we run the next line which selects the next element of the current dom element and then we fade it in using the jQuery effect ".fadeIn(1000)" which we apply a speed to. The next line "else{}" states that if the original statement wasn't true to run the following line. Here we use another jQuery selector to select div.slide and the using the effect ".fadeIn(1000)" we slowly make it visible.</p>

<h2>Step Five (Fixes)</h2>
<p>With the current code the quote rotator works, that is, until it comes back around to the first quote in the sequence which then display nothing. To fix this we'll use ".size()" to return the total count of elements within the jQuery object.</p>

<pre class="In-"><code class="js">
if($(this).next()){
	$(this).next().size().fadeIn(1000);
}
</code></pre>

<p>Now that we fixed that issue we notice that when the sequence starts again it displays all of the quotes at once. Fixing this issues requires that we use "eq(index)" to select the first element in the "else" statement. Now we seem to have a working blockquote rotator which works without problems. Using this concept you could apply to a div and rotate in/out any content. I hope you were able to take something away from this tutorial and I'm sure I'll be doing some pretty cool things in the future.</p>]]>
        
    </content>
</entry>

<entry>
    <title>About my Blog</title>
    <link rel="alternate" type="text/html" href="http://192.168.1.7/cao-redesign/blog/articles/about-my-blog.php" />
    <id>tag:192.168.1.7,2009:/cao-redesign//2.30</id>

    <published>2009-10-23T20:29:45Z</published>
    <updated>2009-10-27T17:31:20Z</updated>
    
    <summary>Thanks for visiting my blog and I hope you find what you came looking for. The intentions for me starting this is to help others with techniques or provided ideas for making yourself a better web designer/developer. Over the course...</summary>
    <author>
        <name>Admin</name>
        
    </author>
    
        <category term="articles" />
    
        <category term="blog" />
    
    
    <content type="html" xml:lang="en" xml:base="http://192.168.1.7/cao-redesign/">
        <![CDATA[<p>Thanks for visiting my blog and I hope you find what you came looking for. The intentions for me starting this is to help others with techniques or provided ideas for making yourself a better web designer/developer. Over the course of the next few months the categories will fill up with valuable content. Topics I plan to cover will be jQuery, CSS, CMS integration, web layouts/design, workflow, general tips, free stuff and I'll probably rant about something from time to time. </p>
<h4>I'm also doing it for myself</h4>
<p>Now that I've said what I'm going to provide my visitors let me tell you why I'm doing this for me.  It's been a short bit since I've done some detailed writing on particular subjects and I feel that I need to work on that for myself.</p>]]>
        
    </content>
</entry>

</feed>

