<?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>SimcoMedia Professional Web Design &#187; Tutorials</title>
	<atom:link href="http://www.simcomedia.com/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simcomedia.com</link>
	<description>Custom Web Designs And Ecommerce Specialists</description>
	<lastBuildDate>Sun, 08 Jan 2012 21:02:29 +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>CSS Message Boxes</title>
		<link>http://www.simcomedia.com/css-message-boxes</link>
		<comments>http://www.simcomedia.com/css-message-boxes#comments</comments>
		<pubDate>Sun, 28 Aug 2011 02:18:51 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=1185</guid>
		<description><![CDATA[Colorful boxes containing tips, info, links and even warnings are very helpful in providing a positive visitor experience in navigating your website. Message boxes are sometimes the best way to point towards a specific link, state the importance of a certain item in the page, or even warn the visitor of something they should know. [...]]]></description>
			<content:encoded><![CDATA[<p>Colorful boxes containing tips, info, links and even warnings are very helpful in providing a positive visitor experience in navigating your website. Message boxes are sometimes the best way to point towards a specific link, state the importance of a certain item in the page, or even warn the visitor of something they should know.</p>
<p><span id="more-1185"></span>Creating these using CSS is a pretty simple proposition. All you need is the icons that would represent each type of box: warning, info, success and error (or, whatever type of ox you wish like &#8216;download&#8217;, etc).</p>
<h2>The CSS</h2>
<p>Here&#8217;s the CSS which is pretty straightforward by creating a class for each type.</p>
<pre class="[brush:css]">
.infoBox, .successBox, .warningBox, .errorBox {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
}

.infoBox {
 color: #00529B;
background-color: #BDE5F8;
background-image: url('images/info.png');
}

.successBox {
color: #4F8A10;
background-color: #DFF2BF;
background-image:url('images/success.png');
}

.warningBox {
color: #9F6000;
background-color: #FEEFB3;
background-image: url('images/warning.png');
}

.errorBox {
color: #D8000C;
background-color: #FFBABA;
background-image: url('images/error.png');
}
</pre>
<h2>The HTML</h2>
<p>This part is simple. All you do is create a div using the class name of the type of box you wish to display then add your content.</p>
<pre class="[brush:html]">
<div class="infoBox">Content here</div>
</pre>
<p>That would look like this:</p>
<div class="infoBox">
Eros odio pulvinar, arcu, dignissim dis, penatibus augue egestas rhoncus lectus etiam elementum elementum nunc eu vel magna penatibus elementum. Dapibus elit integer augue. Purus sociis phasellus magna, vel integer, nisi amet porttitor hac, lectus, dis integer cursus dolor vut. Nec integer integer sagittis in! Aliquam facilisis proin augue, magnis, non in facilisis scelerisque eros mus! Dictumst.</div>
<div class="successBox">
Eros odio pulvinar, arcu, dignissim dis, penatibus augue egestas rhoncus lectus etiam elementum elementum nunc eu vel magna penatibus elementum. Dapibus elit integer augue. Purus sociis phasellus magna, vel integer, nisi amet porttitor hac, lectus, dis integer cursus dolor vut. Nec integer integer sagittis in! Aliquam facilisis proin augue, magnis, non in facilisis scelerisque eros mus! Dictumst.</div>
<div class="errorBox">
Eros odio pulvinar, arcu, dignissim dis, penatibus augue egestas rhoncus lectus etiam elementum elementum nunc eu vel magna penatibus elementum. Dapibus elit integer augue. Purus sociis phasellus magna, vel integer, nisi amet porttitor hac, lectus, dis integer cursus dolor vut. Nec integer integer sagittis in! Aliquam facilisis proin augue, magnis, non in facilisis scelerisque eros mus! Dictumst.</div>
<div class="warningBox">
Eros odio pulvinar, arcu, dignissim dis, penatibus augue egestas rhoncus lectus etiam elementum elementum nunc eu vel magna penatibus elementum. Dapibus elit integer augue. Purus sociis phasellus magna, vel integer, nisi amet porttitor hac, lectus, dis integer cursus dolor vut. Nec integer integer sagittis in! Aliquam facilisis proin augue, magnis, non in facilisis scelerisque eros mus! Dictumst.</div>
<h3>The Images</h3>
<p>Below are the images I&#8217;ve used in my examples for you to download if you wish</p>
<ul style="list-style: none; display: inline;">
<li><img src="http://www.simcomedia.com/images/success.png"/>
<li><img src="http://www.simcomedia.com/images/error.png"/>
<li><img src="http://www.simcomedia.com/images/warning.png"/>
<li><img src="http://www.simcomedia.com/images/info.png"/>
</ul>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-message-boxes" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-message-boxes" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes&amp;title=CSS%20Message%20Boxes&amp;bodytext=Colorful%20boxes%20containing%20tips%2C%20info%2C%20links%20and%20even%20warnings%20are%20very%20helpful%20in%20providing%20a%20positive%20visitor%20experience%20in%20navigating%20your%20website.%20Message%20boxes%20are%20sometimes%20the%20best%20way%20to%20point%20towards%20a%20specific%20link%2C%20state%20the%20importance%20of%20a" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes&amp;t=CSS%20Message%20Boxes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes&amp;title=CSS%20Message%20Boxes&amp;notes=Colorful%20boxes%20containing%20tips%2C%20info%2C%20links%20and%20even%20warnings%20are%20very%20helpful%20in%20providing%20a%20positive%20visitor%20experience%20in%20navigating%20your%20website.%20Message%20boxes%20are%20sometimes%20the%20best%20way%20to%20point%20towards%20a%20specific%20link%2C%20state%20the%20importance%20of%20a" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes&amp;title=CSS%20Message%20Boxes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes&amp;title=CSS%20Message%20Boxes&amp;annotation=Colorful%20boxes%20containing%20tips%2C%20info%2C%20links%20and%20even%20warnings%20are%20very%20helpful%20in%20providing%20a%20positive%20visitor%20experience%20in%20navigating%20your%20website.%20Message%20boxes%20are%20sometimes%20the%20best%20way%20to%20point%20towards%20a%20specific%20link%2C%20state%20the%20importance%20of%20a" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=CSS%20Message%20Boxes%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fcss-message-boxes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/css-message-boxes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Email Address From Spam Harvesters with JQuery</title>
		<link>http://www.simcomedia.com/hide-email-address-from-spam-harvesters-with-jquery</link>
		<comments>http://www.simcomedia.com/hide-email-address-from-spam-harvesters-with-jquery#comments</comments>
		<pubDate>Thu, 26 May 2011 00:02:55 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=1158</guid>
		<description><![CDATA[I used to scramble email addresses embedded into web pages so the spam harvesters wouldn&#8217;t snag them by searching the source code for the mailto: tag. Then I came across this great and simple way of using JQuery&#8217;s Ajax functionality to do the trick. Basically the concept is to summon the email address using an [...]]]></description>
			<content:encoded><![CDATA[<p>I used to scramble email addresses embedded into web pages so the spam harvesters wouldn&#8217;t snag them by searching the source code for the mailto: tag. Then I came across this great and simple way of using JQuery&#8217;s Ajax functionality to do the trick.<span id="more-1158"></span></p>
<p>Basically the concept is to summon the email address using an Ajax function so that it displays in the specified location on your web page. The email address itself is kept in a separate file. Therefore it&#8217;s not part of the source code that the spambots cruise through to snag email addresses. Here&#8217;s how it works:</p>
<p>First Step: The External File</p>
<p>This step is simple. Create an HTML page with only one item in the body section&#8230; the email address! That&#8217;s going to look like this:</p>
<pre class="[brush:html]">
<a href="mailto:email@mydomain.com">mailto:email@mydomain.com</a>
</pre>
<h2>Step Two: The JQuery Code</h2>
<p>This is also simple since it&#8217;s one function. Here&#8217;s the JQuery code:</p>
<pre class="[brush:javascript]">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">		

	$(document).ready(function(){
		var content = $(".email");
		content.load("email_address.htm");
});

</script>
</pre>
<p>Let&#8217;s explain a little on how this is going to work within your page. The element we&#8217;re looking for in your target web page is the item with the .email class name. Once JQuery locates that it&#8217;s going to load the content in the parentheses which in this case is our external file that we named email_address.htm (code posted above). Essentially JQuery, as soon as the document is ready, finds the .email class item and loads that content into it. The location where this will be inserted can be located anywhere on your page. Here&#8217;s the HTML tag you will need for that to happen:</p>
<h2>Step Three: The Target HTML</h2>
<p>This is very simple. Place this tag where you want the email address to display:</p>
<pre class="[brush:html]"><span class="email"> </span>
</pre>
<p>JQuery will insert the email file between those two span tags and keep it out of the hands of those nasty spammers</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/hide-email-address-from-spam-harvesters-with-jquery" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/hide-email-address-from-spam-harvesters-with-jquery" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery&amp;title=Hide%20Email%20Address%20From%20Spam%20Harvesters%20with%20JQuery&amp;bodytext=I%20used%20to%20scramble%20email%20addresses%20embedded%20into%20web%20pages%20so%20the%20spam%20harvesters%20wouldn%27t%20snag%20them%20by%20searching%20the%20source%20code%20for%20the%20mailto%3A%20tag.%20Then%20I%20came%20across%20this%20great%20and%20simple%20way%20of%20using%20JQuery%27s%20Ajax%20functionality%20to%20do%20the%20trick.%0D" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery&amp;t=Hide%20Email%20Address%20From%20Spam%20Harvesters%20with%20JQuery" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery&amp;title=Hide%20Email%20Address%20From%20Spam%20Harvesters%20with%20JQuery&amp;notes=I%20used%20to%20scramble%20email%20addresses%20embedded%20into%20web%20pages%20so%20the%20spam%20harvesters%20wouldn%27t%20snag%20them%20by%20searching%20the%20source%20code%20for%20the%20mailto%3A%20tag.%20Then%20I%20came%20across%20this%20great%20and%20simple%20way%20of%20using%20JQuery%27s%20Ajax%20functionality%20to%20do%20the%20trick.%0D" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery&amp;title=Hide%20Email%20Address%20From%20Spam%20Harvesters%20with%20JQuery" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery&amp;title=Hide%20Email%20Address%20From%20Spam%20Harvesters%20with%20JQuery&amp;annotation=I%20used%20to%20scramble%20email%20addresses%20embedded%20into%20web%20pages%20so%20the%20spam%20harvesters%20wouldn%27t%20snag%20them%20by%20searching%20the%20source%20code%20for%20the%20mailto%3A%20tag.%20Then%20I%20came%20across%20this%20great%20and%20simple%20way%20of%20using%20JQuery%27s%20Ajax%20functionality%20to%20do%20the%20trick.%0D" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Hide%20Email%20Address%20From%20Spam%20Harvesters%20with%20JQuery%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fhide-email-address-from-spam-harvesters-with-jquery" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/hide-email-address-from-spam-harvesters-with-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS and JQuery Zebra Stripes</title>
		<link>http://www.simcomedia.com/css-and-jquery-zebra-stripes</link>
		<comments>http://www.simcomedia.com/css-and-jquery-zebra-stripes#comments</comments>
		<pubDate>Fri, 13 May 2011 21:00:29 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=1143</guid>
		<description><![CDATA[Looking for an easy way to create that striped look for your tables? Plus, add a little excitement with some hover effects? Well, here&#8217;s a quick example of how easy that is to do with a bit of CSS, HTML and good &#8216;ol JQuery! For the purposes of this tutorial we&#8217;re using some very basic [...]]]></description>
			<content:encoded><![CDATA[<p>Looking for an easy way to create that striped look for your tables? Plus, add a little excitement with some hover effects? Well, here&#8217;s a quick example of how easy that is to do with a bit of CSS, HTML and good &#8216;ol JQuery!</p>
<p><span id="more-1143"></span></p>
<p>For the purposes of this tutorial we&#8217;re using some very basic methods of table creation, CSS and very simple JQuery methods to accomplish our goals. What we will be doing is adding a stripe to every other row and then adding a hover effect to the others. This tutorial is only designed to show you how these actions can be implemented. You can redo the CSS and table layout any way you wish.</p>
<h3>The HTML</h3>
<p>Let&#8217;s start with a basic table. But, for our purposes, we are using all the necessary table tags like tbody, tfoot and theadso we can further isolate exactly what rows we want to have striped. This makes it easier for JQuery to differentiate between those rows in the area that you may wish to be excluded.</p>
<p>&nbsp;</p>
<pre class="[brush:html]">
<table id="zebra" width="500" align="center">
<thead>
<tr>
<th>Example Title</th>
<th>Example Title</th>
<th>Example Title</th>
</tr>
</thead>
<tbody>
<tr>
<td>Some Content Here</td>
<td>Some Content Here</td>
<td>Some Content Here</td>
</tr>
<tr>
<td>Some Content Here</td>
<td>Some Content Here</td>
<td>Some Content Here</td>
</tr>
<tr>
<td>Some Content Here</td>
<td>Some Content Here</td>
<td>Some Content Here</td>
</tr>
<tr>
<td>Some Content Here</td>
<td>Some Content Here</td>
<td>Some Content Here</td>
</tr>
<tr>
<td>Some Content Here</td>
<td>Some Content Here</td>
<td>Some Content Here</td>
</tr>
<tr>
<td>Some Content Here</td>
<td>Some Content Here</td>
<td>Some Content Here</td>
</tr>
</tbody>
<tfoot> </tfoot>
<caption>Zebra Stripe Demo</caption>
</table>
</pre>
<p>Notice that I gave the table an ID of &#8216;zebra&#8217;. This is so you can specify this particular table in the event you have others on your page or even on other pages since JQuery will apply its magic to any table unless specified.</p>
<h3>The CSS</h3>
<p>This is pretty simple and the body styling is just for the demo purposes and not necessary for the JQuery to do its thing.</p>
<pre class="[brush:css]">
body { 	font-family: Arial; font-size: 10pt; }

.zebra { 	background-color: #9CF; 	color: #fff; }

caption { 	font-weight: bold; color: #ff0000; font-size: 14pt; }

#zebra td { padding: 5px; }

.grey { background-color: #ddd; }
</pre>
<h3>The JQuery Code</h3>
<p>And, finally, the JQuery code that identifies the table ID, sorts through the elements to identify just those that we wish to apply the changes to, and works its magic. I&#8217;ll explain below.</p>
<p>&nbsp;</p>
<pre class="[brush:javascript]"><script type="text/javascript">
$(document).ready(function() {
	$('#zebra tbody tr:even').addClass('zebra');
	$('#zebra tbody tr:odd').mouseover(function(){
			$(this).addClass('grey');
	$('#zebra tbody tr:odd').mouseout(function(){
			$(this).removeClass('grey');
                         });

			});
		 });
</script>
</pre>
<p>&nbsp;</p>
<p>JQuery works off the ID and class names of your elements and CSS. So let&#8217;s walk through it. First, we&#8217;ve asked it to identify the even table rows bu only inside the tabled with the ID of zebra and only the ones within the tbody tag. This excludes the thead area in case you wish to format that differently than the rest. What we want to do is add a  CSS &#8216;class&#8217; to those even rows. Using JQuery&#8217;s addClass function alllows us to do just that. The result is the even rows ONLY within the</p>
<p>tag have the blue background applied. The odd rows remain untouched.</p>
<p>&nbsp;</p>
<p>Now we thought it would be fun to add a hover effect to the other rows. For this we add a function that sorts through the ODD rows and uses the mouseover JQuery function and the addClass function to accomplish. Now, keeping in mind that this works on the mouseover, we need to add a mouseout function to return it to normal. Otherwise the mouseover effect will be permanent, the background will remain grey. A true hover effect would change the color then return it to normal after the mouse leaves. So what we&#8217;ve done is simply apply the removeClass on mouseover function. Mouse on&#8230; mouse off!</p>
<h3>Demo</h3>
<div class='et-box et-shadow'>
					<div class='et-box-content'>You can view the demo by <a href="http://www.simcomedia.com/zebra.html" target="_blank">clicking here</a></div></div>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-and-jquery-zebra-stripes" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-and-jquery-zebra-stripes" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes&amp;title=CSS%20and%20JQuery%20Zebra%20Stripes&amp;bodytext=Looking%20for%20an%20easy%20way%20to%20create%20that%20striped%20look%20for%20your%20tables%3F%20Plus%2C%20add%20a%20little%20excitement%20with%20some%20hover%20effects%3F%20Well%2C%20here%27s%20a%20quick%20example%20of%20how%20easy%20that%20is%20to%20do%20with%20a%20bit%20of%20CSS%2C%20HTML%20and%20good%20%27ol%20JQuery%21%0D%0A%0D%0AFor%20the%20purposes%20of%20thi" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes&amp;t=CSS%20and%20JQuery%20Zebra%20Stripes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes&amp;title=CSS%20and%20JQuery%20Zebra%20Stripes&amp;notes=Looking%20for%20an%20easy%20way%20to%20create%20that%20striped%20look%20for%20your%20tables%3F%20Plus%2C%20add%20a%20little%20excitement%20with%20some%20hover%20effects%3F%20Well%2C%20here%27s%20a%20quick%20example%20of%20how%20easy%20that%20is%20to%20do%20with%20a%20bit%20of%20CSS%2C%20HTML%20and%20good%20%27ol%20JQuery%21%0D%0A%0D%0AFor%20the%20purposes%20of%20thi" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes&amp;title=CSS%20and%20JQuery%20Zebra%20Stripes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes&amp;title=CSS%20and%20JQuery%20Zebra%20Stripes&amp;annotation=Looking%20for%20an%20easy%20way%20to%20create%20that%20striped%20look%20for%20your%20tables%3F%20Plus%2C%20add%20a%20little%20excitement%20with%20some%20hover%20effects%3F%20Well%2C%20here%27s%20a%20quick%20example%20of%20how%20easy%20that%20is%20to%20do%20with%20a%20bit%20of%20CSS%2C%20HTML%20and%20good%20%27ol%20JQuery%21%0D%0A%0D%0AFor%20the%20purposes%20of%20thi" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=CSS%20and%20JQuery%20Zebra%20Stripes%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fcss-and-jquery-zebra-stripes" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/css-and-jquery-zebra-stripes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mega Web Buttons Pack #1</title>
		<link>http://www.simcomedia.com/mega-web-buttons-pack-1-codrops</link>
		<comments>http://www.simcomedia.com/mega-web-buttons-pack-1-codrops#comments</comments>
		<pubDate>Mon, 25 Apr 2011 17:48:38 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[icons]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=1126</guid>
		<description><![CDATA[&#160; This awesome set of highly usable icon styled buttons is powered by JQuery and free! I came across this great article showing how to create the rollover effects and the proper way to implement these into your design. Mega Web Buttons Pack #1. Share on FacebookShare and Enjoy:]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p style="text-align: left;">This awesome set of highly usable icon styled buttons is powered by JQuery and free! I came across this great article showing how to create the rollover effects and the proper way to implement these into your design.</p>
<p><a href="http://tympanus.net/codrops/2011/04/17/mega-web-buttons-pack-1/" target="_blank">Mega Web Buttons Pack #1</a>.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/mega-web-buttons-pack-1-codrops" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/mega-web-buttons-pack-1-codrops" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops&amp;title=Mega%20Web%20Buttons%20Pack%20%231&amp;bodytext=%26nbsp%3B%0D%0AThis%20awesome%20set%20of%20highly%20usable%20icon%20styled%20buttons%20is%20powered%20by%20JQuery%20and%20free%21%20I%20came%20across%20this%20great%20article%20showing%20how%20to%20create%20the%20rollover%20effects%20and%20the%20proper%20way%20to%20implement%20these%20into%20your%20design.%0D%0AMega%20Web%20Buttons%20Pack%20%231" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops&amp;t=Mega%20Web%20Buttons%20Pack%20%231" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops&amp;title=Mega%20Web%20Buttons%20Pack%20%231&amp;notes=%26nbsp%3B%0D%0AThis%20awesome%20set%20of%20highly%20usable%20icon%20styled%20buttons%20is%20powered%20by%20JQuery%20and%20free%21%20I%20came%20across%20this%20great%20article%20showing%20how%20to%20create%20the%20rollover%20effects%20and%20the%20proper%20way%20to%20implement%20these%20into%20your%20design.%0D%0AMega%20Web%20Buttons%20Pack%20%231" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops&amp;title=Mega%20Web%20Buttons%20Pack%20%231" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops&amp;title=Mega%20Web%20Buttons%20Pack%20%231&amp;annotation=%26nbsp%3B%0D%0AThis%20awesome%20set%20of%20highly%20usable%20icon%20styled%20buttons%20is%20powered%20by%20JQuery%20and%20free%21%20I%20came%20across%20this%20great%20article%20showing%20how%20to%20create%20the%20rollover%20effects%20and%20the%20proper%20way%20to%20implement%20these%20into%20your%20design.%0D%0AMega%20Web%20Buttons%20Pack%20%231" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Mega%20Web%20Buttons%20Pack%20%231%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fmega-web-buttons-pack-1-codrops" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/mega-web-buttons-pack-1-codrops/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Box Shadow</title>
		<link>http://www.simcomedia.com/css-box-shadow</link>
		<comments>http://www.simcomedia.com/css-box-shadow#comments</comments>
		<pubDate>Sat, 16 Apr 2011 20:45:16 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=1066</guid>
		<description><![CDATA[Ever wanted to isolate some text? An important message perhaps? This simple shadow technique creates an elegant shadowed border around your important content. Although it&#8217;s not 100% cross browser compatible (based on CSS3) most modern browsers will display it properly. How it Works First we start with our CSS needed to create the shadow effect. [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to isolate some text? An important message perhaps? This simple shadow technique creates an elegant shadowed border around your important content. Although it&#8217;s not 100% cross browser compatible (based on CSS3) most modern browsers will display it properly.<span id="more-1066"></span></p>
<h3>How it Works</h3>
<p>First we start with our CSS needed to create the shadow effect. There&#8217;s two parts to this, one for the shadow effect and the other for the container:</p>
<pre class="[brush:css]"> 
#shadow {
	padding: 20px;
	border: 1px solid #f0f0f0;
	border-bottom: 2px solid #ccc;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.box {
width: 500px;
margin: 50px auto;
padding: 20px;
}</pre>
<h3>The HTML</h3>
<p>Now we put some HTML together in your page where you wish for the element to display:</p>
<pre class="[brush:html]">
<div id="shadow" class="box">
<h2>Light Shadow</h2>

Os epulae, abico commoveo neo valetudo, camur luctus ut autem validus camur luctus. 

Minim reprobo, eu, enim, abbas cui duis premo incassum te obruo abluo nostrud. Hendrerit, dolore laoreet, imputo autem elit esse. Ventosus veniam uxor tum nostrud duis eu cogo ad, tamen hendrerit vel quis. Nostrud et ad qui nostrud, reprobo sagaciter elit.</div>
</pre>
<h3>Results:</h3>
<p>The result should provide you with this sleek styling for your output:</p>
<div id="shadow" class="box">
<h2>Light Shadow</h2>
<p>Os epulae, abico commoveo neo valetudo, camur luctus ut autem validus camur luctus.</p>
<p>Minim reprobo, eu, enim, abbas cui duis premo incassum te obruo abluo nostrud. Hendrerit, dolore laoreet, imputo autem elit esse. Ventosus veniam uxor tum nostrud duis eu cogo ad, tamen hendrerit vel quis. Nostrud et ad qui nostrud, reprobo sagaciter elit.</p>
</div>
<h3>Variations</h3>
<p>Experiment with the width, height, radius and thicknesses to get various effects. This styling makes great looking blockquotes and excerpts. Enjoy!</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-box-shadow" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-box-shadow" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow&amp;title=CSS%20Box%20Shadow&amp;bodytext=Ever%20wanted%20to%20isolate%20some%20text%3F%20An%20important%20message%20perhaps%3F%20This%20simple%20shadow%20technique%20creates%20an%20elegant%20shadowed%20border%20around%20your%20important%20content.%20Although%20it%27s%20not%20100%25%20cross%20browser%20compatible%20%28based%20on%20CSS3%29%20most%20modern%20browsers%20will%20d" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow&amp;t=CSS%20Box%20Shadow" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow&amp;title=CSS%20Box%20Shadow&amp;notes=Ever%20wanted%20to%20isolate%20some%20text%3F%20An%20important%20message%20perhaps%3F%20This%20simple%20shadow%20technique%20creates%20an%20elegant%20shadowed%20border%20around%20your%20important%20content.%20Although%20it%27s%20not%20100%25%20cross%20browser%20compatible%20%28based%20on%20CSS3%29%20most%20modern%20browsers%20will%20d" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow&amp;title=CSS%20Box%20Shadow" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow&amp;title=CSS%20Box%20Shadow&amp;annotation=Ever%20wanted%20to%20isolate%20some%20text%3F%20An%20important%20message%20perhaps%3F%20This%20simple%20shadow%20technique%20creates%20an%20elegant%20shadowed%20border%20around%20your%20important%20content.%20Although%20it%27s%20not%20100%25%20cross%20browser%20compatible%20%28based%20on%20CSS3%29%20most%20modern%20browsers%20will%20d" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=CSS%20Box%20Shadow%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fcss-box-shadow" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/css-box-shadow/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Ribbon Titles</title>
		<link>http://www.simcomedia.com/css-ribbon-titles</link>
		<comments>http://www.simcomedia.com/css-ribbon-titles#comments</comments>
		<pubDate>Mon, 26 Apr 2010 23:43:15 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=868</guid>
		<description><![CDATA[In a quest to use something different for my sidebar titles I started looking at some of the options for creating those cool looking 3D style ribbons where the edges fold neatly on the outside of the container holding the text. There&#8217;s a bazillion examples of this and most of the tutorials I saw were [...]]]></description>
			<content:encoded><![CDATA[<p>In a quest to use something different for my sidebar titles I started looking at some of the options for creating those cool looking 3D style ribbons where the edges fold neatly on the outside of the container holding the text. There&#8217;s a bazillion examples of this and most of the tutorials I saw were leaning toward CSS3 to do all the work.<span id="more-868"></span>The problem is&#8230; CSS3 just ain&#8217;t quite ready for prime-time since it&#8217;s not fully supported across all browsers and would consequently require even more code to make it work like it&#8217;s supposed to. So, I took the simple way out and instead of using the radius selectors that CSS3 provides (which aren&#8217;t supported in most versions of IE, if any) I created a three image method of creating the sidebar boxes.</p>
<p>So, the three images consist of:</p>
<ol>
<li>the top including the ribbon</li>
<li>the repeatable middle section</li>
<li>the bottom</li>
</ol>
<p>These were all created in Photoshop as one image then sliced against a transparent background and saved in PNG format. Pretty simple stuff.</p>
<p>Then it was time to create the container and divs that would hold the info. We&#8217;ll start with just the container div:</p>
<p><br class="spacer_" /></p>
<pre class="[brush:css]"> 

.ribbonBox {

 width: 190px;

 float: left;

 margin-bottom: 15px;

 }

 
</pre>
<p><br class="spacer_" /></p>
<p>Now, you can adjust everything to your dimensions but my sidebar is a little skinny and the main container div had to allow for some margins so it didn&#8217;t hit the left and right borders. The margin-bottom is there so I can stack the boxes on top of each other and there will be some space in between them. Now we do the 3 inner divs that hold the images:</p>
<p><br class="spacer_" /></p>
<pre class="[brush:css]"> 

.ribbonTop {

 width: 190px;

 background: transparent url('../images/ribbons_top.png') no-repeat;

 height: 52px;

 }

.ribbonTop h2 {

 color: #fff;

 font-weight: normal;

 font-size: 18px;

 padding: 15px 0 0 10px;

 }

.ribbonMid {

 width: 190px;

 background: transparent url('../images/ribbons_mid.png') repeat-y;

 float: left;

 }

.ribbonMid p {

 margin: 0 10px;

 }

.ribbonBot {

 width: 190px;

 background: transparent url('../images/ribbons_bot.png') no-repeat;

 height: 14px;

 float: left;

 }

 
</pre>
<p>And, last but not least, the HTML</p>
<p>&nbsp;</p>
<pre class="[brush:html]">    <!--adding ribbon box-->
<div class="ribbonBox">
<div class="ribbonTop">
<h2>Recall News::</h2>
</div>
<div class="ribbonMid">

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque. Nunc venenatis enim nec quam. Cras faucibus, justo vel accumsan
</div>
<div class="ribbonBot">        </div>
</div>

	<!--end of ribbon box -->
</pre>
<p><br class="spacer_" /></p>
<p>Notice I also gave some formatting to the H2 title so it would display in the right location and look good against the color of the ribbon background.</p>
<p>The end result would produce a box like so:</p>
<p><a href="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons.png"><img class="aligncenter size-full wp-image-873" title="ribbons" src="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons.png" alt="" width="190" height="77" /></a>The three pieces are as so (right click, Save As if you wish to use them:</p>
<p><a href="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons_top.png"><img class="aligncenter size-full wp-image-876" title="ribbons_top" src="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons_top.png" alt="" width="190" height="52" /></a></p>
<p><a href="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons_mid.png"><img class="aligncenter size-full wp-image-875" title="ribbons_mid" src="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons_mid.png" alt="" width="190" height="11" /></a></p>
<p><a href="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons_bot.png"><img class="aligncenter size-full wp-image-874" title="ribbons_bot" src="http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons_bot.png" alt="" width="190" height="14" /></a></p>
<div class='et-box et-download'>
					<div class='et-box-content'>Download the Photoshop CS4 .PSD files!</p>
<p><a href="&quot;http://www.simcomedia.com/wp-content/uploads/2010/04/ribbons.zip">Click Here To Download</a></p></div></div>
<p>By using repeat-y on the middle section it will automatically repeat downward as the content increases or decreases. Using this 3 image method cut out the need to have literally dozens of CSS3 statements and used about half the code to get the same effect. Going this route assured me that the look would be the same across browsers. As much as i&#8217;d like to be a &#8216;purist&#8217; and try to do everything with strict code and no images, the world just isn&#8217;t quite ready for it.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-ribbon-titles" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-ribbon-titles" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles&amp;title=CSS%20Ribbon%20Titles&amp;bodytext=In%20a%20quest%20to%20use%20something%20different%20for%20my%20sidebar%20titles%20I%20started%20looking%20at%20some%20of%20the%20options%20for%20creating%20those%20cool%20looking%203D%20style%20ribbons%20where%20the%20edges%20fold%20neatly%20on%20the%20outside%20of%20the%20container%20holding%20the%20text.%20There%27s%20a%20bazillion%20ex" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles&amp;t=CSS%20Ribbon%20Titles" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles&amp;title=CSS%20Ribbon%20Titles&amp;notes=In%20a%20quest%20to%20use%20something%20different%20for%20my%20sidebar%20titles%20I%20started%20looking%20at%20some%20of%20the%20options%20for%20creating%20those%20cool%20looking%203D%20style%20ribbons%20where%20the%20edges%20fold%20neatly%20on%20the%20outside%20of%20the%20container%20holding%20the%20text.%20There%27s%20a%20bazillion%20ex" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles&amp;title=CSS%20Ribbon%20Titles" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles&amp;title=CSS%20Ribbon%20Titles&amp;annotation=In%20a%20quest%20to%20use%20something%20different%20for%20my%20sidebar%20titles%20I%20started%20looking%20at%20some%20of%20the%20options%20for%20creating%20those%20cool%20looking%203D%20style%20ribbons%20where%20the%20edges%20fold%20neatly%20on%20the%20outside%20of%20the%20container%20holding%20the%20text.%20There%27s%20a%20bazillion%20ex" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=CSS%20Ribbon%20Titles%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fcss-ribbon-titles" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/css-ribbon-titles/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Toggle Panel</title>
		<link>http://www.simcomedia.com/jquery-toggle-panel</link>
		<comments>http://www.simcomedia.com/jquery-toggle-panel#comments</comments>
		<pubDate>Tue, 16 Mar 2010 21:10:36 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ajax scripts]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=828</guid>
		<description><![CDATA[UPDATED! More examples provided in the demo Sometimes we&#8217;re convinced that certain special effects we see in web pages are some sort of cult voodoo and appear mysterious. The &#8216;slide toggle&#8217; effect is one of those. We&#8217;re going to show you just how easy it is to use this cool feature for revealing hidden content. [...]]]></description>
			<content:encoded><![CDATA[<h3>UPDATED!</h3>
<p>More examples provided in the demo</p>
<p>Sometimes we&#8217;re convinced that certain special effects we see in web pages are some sort of cult voodoo and appear mysterious. The &#8216;slide toggle&#8217; effect is one of those. We&#8217;re going to show you just how easy it is to use this cool feature for revealing hidden content.<span id="more-828"></span></p>
<p>We&#8217;re going to make a simple panel slider using the JQuery toggle function. Here&#8217;s how the code will look:</p>
<pre class="[brush:javascript]">
<script type="text/javascript">
$(document).ready(function() {
	$(".trigger").click(function(){
	$(".panel").slideToggle("slow");
	});
});
</script>
</pre>
<h3>Code Explanation</h3>
<p>Let&#8217;s break this down to show how simple it is using JQuery</p>
<dl>
<dt>$(document).ready(function() {</dt>
<dd>Our standard JQuery statement declaring that when the document is fully loaded we can execute the following</dd>
<dt>$(&#8220;.trigger&#8221;).click(function(){</dt>
<dd>Here we are stating that our page element with the class &#8216;trigger&#8217;  is going to do something when it&#8217;s clicked on</dd>
<dt>$(&#8220;.panel&#8221;).slideToggle(&#8220;slow&#8221;);</dt>
<dd>Here we see the details of our instructions for when the &#8216;trigger&#8217; is clicked. Essentially telling the div with the class name &#8216;panel&#8217; to &#8216;slide &#8211; Toggle&#8217; open. The &#8216;Toggle&#8217; part means that it will open when clicked then close when clicked again.</dd>
</dl>
<h3>The HTML</h3>
<p>The HTML is relatively simple. First, though, we need a little styling for our elements</p>
<pre class="[brush:css]">
<style type="text/css">
div.panel,p.trigger {
width: 500px;
padding: 20px;
background-color: #EAEAEA;
border: 1px #000 dashed;
font: normal normal Arial, Helvetica, sans-serif/1.2em;
}

div.panel {
height: 200px;
display: none;
}
</style>
</pre>
<p>Followed by our HTML which is entirely up to you how you want it to look. For our demo purposes we&#8217;re using just the standard Lorem Ipsum text jargon:</p>
<pre class="[brush:html]">
<div class="panel">

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Section 1.10.32 of de Finibus Bonorum et Malorum, written by Cicero in 45 BC
</div>
<p class="trigger">The standard Lorem Ipsum passage, used since the 1500s
</pre>
<h3>Live Demo</h3>
<p>To get a live view of the sliding/toggling panel <a href="http://www.simcomedia.com/jquery-toggle.html" target="_blank">Click Here</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/jquery-toggle-panel" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/jquery-toggle-panel" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel&amp;title=JQuery%20Toggle%20Panel&amp;bodytext=UPDATED%21%0D%0AMore%20examples%20provided%20in%20the%20demo%0D%0ASometimes%20we%27re%20convinced%20that%20certain%20special%20effects%20we%20see%20in%20web%20pages%20are%20some%20sort%20of%20cult%20voodoo%20and%20appear%20mysterious.%20The%20%27slide%20toggle%27%20effect%20is%20one%20of%20those.%20We%27re%20going%20to%20show%20you%20just%20how%20e" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel&amp;t=JQuery%20Toggle%20Panel" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel&amp;title=JQuery%20Toggle%20Panel&amp;notes=UPDATED%21%0D%0AMore%20examples%20provided%20in%20the%20demo%0D%0ASometimes%20we%27re%20convinced%20that%20certain%20special%20effects%20we%20see%20in%20web%20pages%20are%20some%20sort%20of%20cult%20voodoo%20and%20appear%20mysterious.%20The%20%27slide%20toggle%27%20effect%20is%20one%20of%20those.%20We%27re%20going%20to%20show%20you%20just%20how%20e" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel&amp;title=JQuery%20Toggle%20Panel" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel&amp;title=JQuery%20Toggle%20Panel&amp;annotation=UPDATED%21%0D%0AMore%20examples%20provided%20in%20the%20demo%0D%0ASometimes%20we%27re%20convinced%20that%20certain%20special%20effects%20we%20see%20in%20web%20pages%20are%20some%20sort%20of%20cult%20voodoo%20and%20appear%20mysterious.%20The%20%27slide%20toggle%27%20effect%20is%20one%20of%20those.%20We%27re%20going%20to%20show%20you%20just%20how%20e" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=JQuery%20Toggle%20Panel%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fjquery-toggle-panel" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/jquery-toggle-panel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using JQuery&#8217;s Ajax Functions</title>
		<link>http://www.simcomedia.com/using-jquerys-ajax-functions</link>
		<comments>http://www.simcomedia.com/using-jquerys-ajax-functions#comments</comments>
		<pubDate>Tue, 16 Mar 2010 18:58:42 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=810</guid>
		<description><![CDATA[AJAX methods can be way over used but at the same time can provide a great way to consolidate related content into a confined space. JQuery provides an easy way to use their AJAX functionality with some simple code and, of course, the JQuery library. Here&#8217;s a simple example.First we have to understand the way [...]]]></description>
			<content:encoded><![CDATA[<p>AJAX methods can be way over used but at the same time can provide a great way to consolidate related content into a confined space. JQuery provides an easy way to use their AJAX functionality with some simple code and, of course, the JQuery library. Here&#8217;s a simple example.<span id="more-810"></span>First we have to understand the way JQuery works. Once we&#8217;ve done that then modifying this code becomes much simpler.JQuery is a library of functions that you can call upon to perform various tasks. The ones we will be working with today are the &#8216;load&#8217; and &#8216;onClick&#8217; functions. Our goal is to summon an external file ( .txt, .html, etc.) into an element in our page, preferably a div element. The functions will be called when someone clicks on a hyperlink (or, an image could be used or even a button). Here&#8217;s the basic code:</p>
<pre class="[brush:javascript]">
$(document).ready(function(){
  $("#link1").click(function() {
  $('#text').load('latin.txt');
});
  $("#link2").click(function() {
  $('#text').load('latin2.txt');
});
  $("link3").click(function() {
  $('text').load('latin3.txt');
  });
});
</pre>
<p>Ok, what we&#8217;ve created here is a series of functions that specify the id&#8217;s of 3 hyperlinks (shown below) that, when clicked, will &#8216;load&#8217; the external pages referenced (latin.txt, latin2.txt and latin3.txt) into the same div element with the id of &#8216;text&#8217;. Here&#8217;s the HTML:</p>
<pre class="[brush:html]">
<html>
<head>
<script src="jquery.js" type="text/javascript"></script>
</head>
<body>
<div id="text">This text will be replaced when you click the hyperlinks below</div>

<a href="#" id="link1">Link One</a>
<a href="#" id="link2">Link Two</a>
<a href="#" id="link3">Link Three</a>

</body>
</html>
</pre>
<h3>Explaining The Code</h3>
<p>JQuery is pretty easy to learn once you get the hang of how the functions flow. Here&#8217;s some tidbits about this simple AJAX call:</p>
<dl>
<dt>$(document).ready(function(){</dt>
<dd>JQuery uses the $(document).ready(function() { to ensure that the document is fully loaded and ready to provide you with the ability to execute your code</dd>
<dt>$(&#8220;#link1&#8243;).click(function(){</dt>
<dd>We are stating here that the hyperlink with the #id of link1 should perform a function when it is clicked. So, basically, if you read it like a sentence it states &#8220;when someone clicks on the #link1 do the following&#8221;.</dd>
<dt>$(&#8216;#text&#8217;).load(&#8216;latin.txt&#8217;);</dt>
<dd>The function we want to perform is to insert content into a specific div element in our page. The first part, $(&#8216;#text&#8217;) identifies the element by using it&#8217;s id tag #text, the id of our target div. The second part, .load(&#8216;latin.txt&#8217;);,  tells what content to load into that location. So, reading it like a sentence it says: &#8220;find the div with the id of &#8216;text&#8217; and load this file into that location&#8221;.</dd>
</dl>
<p>I&#8217;ve repeated the process three times in order to identify the 3 different links. The hyperlinks can be placed anywhere on your page and point to your target div. The content you summon can be a wide variety of formats including txt, html, images, etc..</p>
<p>For our external files they reside in my public folder and contain the standard Lorem Ipsum text for this demo. Here is the &#8216;live&#8217; example of how this would look when arriving at your page. </p>
<p>
<a href="#" id="link1">Link One</a> | <a href="#" id="link2">Link Two</a> | <a href="#" id="link3">Link Three</a>
</p>
<div id="text" style="width: 500px; padding: 10px; border: 1px #ccc solid;">This text will be replaced when you click the hyperlinks below</div>
<p>Clicking on the links will summon the different content without having to refresh the page. This saves on load time and at the same time allows you to designate a specific area for as much content as you&#8217;d like to cycle through instead of having a new page for each one.</p>
<h3>Live Demo</h3>
<p>To see this work <a href="http://www.simcomedia.com/simple-ajax.html" target="_blank">Click Here</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/using-jquerys-ajax-functions" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/using-jquerys-ajax-functions" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions&amp;title=Using%20JQuery%27s%20Ajax%20Functions&amp;bodytext=AJAX%20methods%20can%20be%20way%20over%20used%20but%20at%20the%20same%20time%20can%20provide%20a%20great%20way%20to%20consolidate%20related%20content%20into%20a%20confined%20space.%20JQuery%20provides%20an%20easy%20way%20to%20use%20their%20AJAX%20functionality%20with%20some%20simple%20code%20and%2C%20of%20course%2C%20the%20JQuery%20library." ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions&amp;t=Using%20JQuery%27s%20Ajax%20Functions" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions&amp;title=Using%20JQuery%27s%20Ajax%20Functions&amp;notes=AJAX%20methods%20can%20be%20way%20over%20used%20but%20at%20the%20same%20time%20can%20provide%20a%20great%20way%20to%20consolidate%20related%20content%20into%20a%20confined%20space.%20JQuery%20provides%20an%20easy%20way%20to%20use%20their%20AJAX%20functionality%20with%20some%20simple%20code%20and%2C%20of%20course%2C%20the%20JQuery%20library." ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions&amp;title=Using%20JQuery%27s%20Ajax%20Functions" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions&amp;title=Using%20JQuery%27s%20Ajax%20Functions&amp;annotation=AJAX%20methods%20can%20be%20way%20over%20used%20but%20at%20the%20same%20time%20can%20provide%20a%20great%20way%20to%20consolidate%20related%20content%20into%20a%20confined%20space.%20JQuery%20provides%20an%20easy%20way%20to%20use%20their%20AJAX%20functionality%20with%20some%20simple%20code%20and%2C%20of%20course%2C%20the%20JQuery%20library." ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Using%20JQuery%27s%20Ajax%20Functions%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fusing-jquerys-ajax-functions" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/using-jquerys-ajax-functions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Rollover Images</title>
		<link>http://www.simcomedia.com/css-rollover-images</link>
		<comments>http://www.simcomedia.com/css-rollover-images#comments</comments>
		<pubDate>Tue, 09 Mar 2010 21:52:19 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=784</guid>
		<description><![CDATA[Image rollovers are fun and can add both life and functionality to a web page. Most often they are used in menus but we find they are useful for hyperlinked images as well. This is a simple tutorial on how you can create fast loading rollovers throughout your website giving it that slick look. Methods [...]]]></description>
			<content:encoded><![CDATA[<p>Image rollovers are fun and can add both life and functionality to a web page. Most often they are used in menus but we find they are useful for hyperlinked images as well. This is a simple tutorial on how you can create fast loading rollovers throughout your website giving it that slick look.<span id="more-784"></span></p>
<h3>Methods</h3>
<p>There&#8217;s 3 basic ways you can create a rollover effect:</p>
<p style="text-align: left;">Flash animation</p>
<p style="text-align: left;">Javascript</p>
<p style="text-align: left;">CSS</p>
<p style="text-align: left;"> </p>
<p style="text-align: left;">For our purposes we&#8217;re going to skip the first two and use strictly CSS and a tad bit of HTML to make it all work. We&#8217;re going to be using a sprite in order to accomplish this. If you don&#8217;t know what a sprite is it&#8217;s basically a single image with all of your different colored effects self contained. The fact we use a single image means that there&#8217;s no additional preloading that has to be done which, when using multiple images, can cause a flicker or pause in the initial display of the mouseover event. Here&#8217;s an example of a sprite image which consists of two identical designs but with different colored backgrounds:</p>
<p style="text-align: left;"><a href="http://www.simcomedia.com/wp-content/uploads/2010/03/compare-sprite.jpg"><img class="aligncenter size-full wp-image-785" title="compare-sprite" src="http://www.simcomedia.com/wp-content/uploads/2010/03/compare-sprite.jpg" alt="" width="200" height="80" /></a>The goal here is to use this image in a rollover event for a hyperlink.</p>
<h3 style="text-align: left;">CSS</h3>
<p>Here&#8217;s the CSS Code we&#8217;ll be working with:</p>
<p><br class="spacer_" /></p>
<pre class="[brush:css]">#imageLink
{
  display: block;
  width: 200px;
  height: 40px;
  background: url("compare-sprite.jpg") no-repeat 0 0;

}

#imageLink:hover
{
  background-position: 0 -40px;
}

#imageLink span
{
  display: none;
}
</pre>
<p>First, keep in mind that we are creating a hyperlink. Therefore we are going to utilize this code when we create our link by assigning the id to the hyperlink like you would a class. We&#8217;re going to explain the code just a bit.</p>
<ul>
<li>the height and width represent the single button, not the entire image. So, if the entire image is 80px tall and divided perfectly  between the two versions then we set our height at 40px.</li>
<li>On the :hover we want the background position to move down 40px. Therefore we set the position to -40px to make the effect. Same image, just showing a different portion of it.</li>
<li>The use of the span tag is to complete our hyperlink since the background image isn&#8217;t really creating a link. Therefore, something tangible has to be there. But, the trick is, we set the display to none which makes it invisible to the viewer and all they see is the image</li>
</ul>
<h3>The HTML</h3>
<p>Here&#8217;s the HTML:</p>
<pre class="[brush:html]"><a id="imageLink" href="#"><span>Some text here</span></a>
</pre>
<p>You can have as many rollovers on one page or throughout your site as you wish using this code. But, you have to copy the code and assign each one its own unique ID. And, of course, their own images if applicable.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-rollover-images" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-rollover-images" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images&amp;title=CSS%20Rollover%20Images&amp;bodytext=Image%20rollovers%20are%20fun%20and%20can%20add%20both%20life%20and%20functionality%20to%20a%20web%20page.%20Most%20often%20they%20are%20used%20in%20menus%20but%20we%20find%20they%20are%20useful%20for%20hyperlinked%20images%20as%20well.%20This%20is%20a%20simple%20tutorial%20on%20how%20you%20can%20create%20fast%20loading%20rollovers%20throug" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images&amp;t=CSS%20Rollover%20Images" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images&amp;title=CSS%20Rollover%20Images&amp;notes=Image%20rollovers%20are%20fun%20and%20can%20add%20both%20life%20and%20functionality%20to%20a%20web%20page.%20Most%20often%20they%20are%20used%20in%20menus%20but%20we%20find%20they%20are%20useful%20for%20hyperlinked%20images%20as%20well.%20This%20is%20a%20simple%20tutorial%20on%20how%20you%20can%20create%20fast%20loading%20rollovers%20throug" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images&amp;title=CSS%20Rollover%20Images" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images&amp;title=CSS%20Rollover%20Images&amp;annotation=Image%20rollovers%20are%20fun%20and%20can%20add%20both%20life%20and%20functionality%20to%20a%20web%20page.%20Most%20often%20they%20are%20used%20in%20menus%20but%20we%20find%20they%20are%20useful%20for%20hyperlinked%20images%20as%20well.%20This%20is%20a%20simple%20tutorial%20on%20how%20you%20can%20create%20fast%20loading%20rollovers%20throug" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=CSS%20Rollover%20Images%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fcss-rollover-images" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/css-rollover-images/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Hyperlinks With Icons</title>
		<link>http://www.simcomedia.com/css-hyperlinks-with-icons</link>
		<comments>http://www.simcomedia.com/css-hyperlinks-with-icons#comments</comments>
		<pubDate>Wed, 17 Feb 2010 00:30:40 +0000</pubDate>
		<dc:creator>SimcoMedia Design</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.simcomedia.com/?p=736</guid>
		<description><![CDATA[A neat way to spice up your pages and provide very precise navigation help is to use the little known &#8220;attributes&#8221; capabilities of CSS. What this does is provide a way for you to attach certain effects to specific types of elements. For instance, say you&#8217;d like to place the Adobe PDF  icon next to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">A neat way to spice up your pages and provide very precise navigation help is to use the little known &#8220;attributes&#8221; capabilities of CSS. What this does is provide a way for you to attach certain effects to specific types of elements. <span id="more-736"></span>For instance, say you&#8217;d like to place the Adobe PDF  icon next to every link that ends with .pdf:</p>
<pre class="[brush:css]">/* For PDFs */
a[href $= '.pdf']{
    padding-left:20px;
    background: transparent url(pdf.gif) no-repeat scroll left top;
}
</pre>
<p style="text-align: left;">Let&#8217;s take a look at this to see how it works:</p>
<ul>
<li>The a[href $='.pdf'] aspect is stating that all &#8216;a href&#8217; tags where the suffix is .pdf to attach the following formatting to it</li>
<li>The padding-left: 20px; allows for the room needed to place the icon (you can pad left or right depending on where you want the icon displayed)</li>
<li>The background: tag outlines the parameters for how and where and location of the icon using standard CSS</li>
</ul>
<p style="text-align: left;">You’ll notice the $ before the =, this is specifying that we want what is at the end of the href.  There are more tags like this to specify different locations.</p>
<ul>
<li>$=   End of String </li>
<li>^=   Beginning of String </li>
<li>~=  String contains the word and is separated from other words by spaces. </li>
<li>*=   String contains the word. (doesn’t have to be separated by spaces) </li>
</ul>
<p><br class="spacer_" /></p>
<p style="text-align: left;">So, armed with this you can make one modification to your CSS file and affect many elements of your pages. Another example of this would be to add an icon to all &#8216;mailto&#8217; links. Like this:</p>
<pre class="[brush:css]">/* For Emails */
a[href ^= 'mailto']{
    padding-left:20px;
    background: transparent url(mail.gif) no-repeat scroll left top;
}
</pre>
<p style="text-align: left;">Here, the ^ symbol means to search for the &#8216;mailto&#8217; at the beginning of the href string. Then, attach the icon to all the links that qualify only.</p>
<p style="text-align: left;">Let&#8217;s say you want to add an icon to all links that are scheduled to open in a new window:</p>
<pre class="[brush:css]">/* For external links */
a[target = '_blank']{
    padding-left:20px;
    background: transparent url(external.gif) no-repeat scroll left top;
}
</pre>
<p style="text-align: left;">Notice that instead of &#8216;href&#8217; it states &#8216;target&#8217; which is the method used for determining if a hyperlink is going to open in a new window or in the same window, etc. This CSS command applies just to those hyperlinks that state target=&#8221;_blank&#8221;.</p>
<p style="text-align: left;">You can also specify a certain class in the event that you have different styles set up for your various hyperlinks. This method lets you do the following:</p>
<pre class="[brush:css]">/* For popups */
a[class ~= 'popup']{
    padding-left:20px;
    background: transparent url(popup.gif) no-repeat scroll left top;
}
</pre>
<p style="text-align: left;">Even if you don&#8217;t create different classes for your hyperlinks but would like to have icons next to some of them you can simply assign the class tag to the hyperlink and it will merely add the icon without changing any of the other formatting.</p>
<p style="text-align: left;">For best results we recommend you use very small icons of 16 x 16 or less. Otherwise they could cause messy looking text lines if your hyperlinks are located within paragraphs.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-hyperlinks-with-icons" target="_blank"><img src="http://www.simcomedia.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.simcomedia.com/css-hyperlinks-with-icons" target="_blank" title="Share on Facebook">Share on Facebook</a></p><div class='sociable'><div><span class='sociable-tagline'>Share and Enjoy:</span></div><ul><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons&amp;title=CSS%20Hyperlinks%20With%20Icons&amp;bodytext=A%20neat%20way%20to%20spice%20up%20your%20pages%20and%20provide%20very%20precise%20navigation%20help%20is%20to%20use%20the%20little%20known%20%22attributes%22%20capabilities%20of%20CSS.%20What%20this%20does%20is%20provide%20a%20way%20for%20you%20to%20attach%20certain%20effects%20to%20specific%20types%20of%20elements.%20For%20instance%2C%20say" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons&amp;t=CSS%20Hyperlinks%20With%20Icons" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a></li><li><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons&amp;title=CSS%20Hyperlinks%20With%20Icons&amp;notes=A%20neat%20way%20to%20spice%20up%20your%20pages%20and%20provide%20very%20precise%20navigation%20help%20is%20to%20use%20the%20little%20known%20%22attributes%22%20capabilities%20of%20CSS.%20What%20this%20does%20is%20provide%20a%20way%20for%20you%20to%20attach%20certain%20effects%20to%20specific%20types%20of%20elements.%20For%20instance%2C%20say" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons&amp;title=CSS%20Hyperlinks%20With%20Icons" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons&amp;title=CSS%20Hyperlinks%20With%20Icons&amp;annotation=A%20neat%20way%20to%20spice%20up%20your%20pages%20and%20provide%20very%20precise%20navigation%20help%20is%20to%20use%20the%20little%20known%20%22attributes%22%20capabilities%20of%20CSS.%20What%20this%20does%20is%20provide%20a%20way%20for%20you%20to%20attach%20certain%20effects%20to%20specific%20types%20of%20elements.%20For%20instance%2C%20say" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=CSS%20Hyperlinks%20With%20Icons%20-%20http%3A%2F%2Fwww.simcomedia.com%2Fcss-hyperlinks-with-icons" ><img src="http://www.simcomedia.com/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.simcomedia.com/css-hyperlinks-with-icons/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

