<?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>m2volt's blog &#187; Web Development</title>
	<atom:link href="http://www.m2volt.com/blog/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.m2volt.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 11 Feb 2010 21:37:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>image previewer</title>
		<link>http://www.m2volt.com/blog/2010/02/image-previewer/</link>
		<comments>http://www.m2volt.com/blog/2010/02/image-previewer/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 00:45:49 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/?p=253</guid>
		<description><![CDATA[<p>
Here is a cool jQuery effect which lets you preview an image when you hover over its thumbnail. It pretty much a tooltip that follows your mouse around while having an image rather than text. The image previewer will also adjust itself depending on how large the image is in relation to the x and y coordinates of your mouse.
</p>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F02%2Fimage-previewer%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F02%2Fimage-previewer%2F" height="61" width="51" /></a></div><p>
Here is a cool jQuery effect which lets you preview an image when you hover over its thumbnail. It pretty much a tooltip that follows your mouse around while having an image rather than text. The image previewer will also adjust itself depending on how large the image is in relation to the x and y coordinates of your mouse.
</p>
<p>
<a href="http://marioedgar.com/source_files/img_previewer/">Regular demo</a><br /><a href="http://marioedgar.com/source_files/img_previewer/img_grid.html">Grid demo</a></p>
<p><b>Heres how to implement:</b>
</p>
<h3>
1. Link your JS<br />
</h3>
<pre class="brush: js;">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="img_prev.js"></script>
</pre>
<p>
Sources:
</p>
<p>
<a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery">jQuery</a><br />
<a href="http://www.marioedgar.com/source_files/img_previewer/img_prev.js">img_prev.js</a>
</p>
<h3>
2: Set up your HTML.<br />
</h3>
<p>
Start by adding a class to your image called &#8220;imgPrev&#8221;. You then want to add the src attribute, the src will be the URL to the thumbnail. Finally add your rel attribute, this will be the URL to the full sized image you want to preview.
</p>
<pre class="brush: xml;">
<img class="imgPrev" src="img/THUMBNAIL.jpg" rel="img/FULL SIZE IMAGE.jpg" />
</pre>
<h3>
3: Add your CSS<br />
</h3>
<p>You only need to add css to the imgPrev id, this id is appended to the HTML body via the JS. This is the container that holds the images.</p>
<pre class="brush: css;">
#imgPrev {
	position: absolute;
	background: url('img/trans_bg.png');
	padding: 5px;
	display: none;
}
</pre>
<p>
Background image source:
</p>
<p>
<a href="http://marioedgar.com/source_files/img_previewer/img/trans_bg.png">trans_bg.png</a>
</p>
<p>
<a href="http://marioedgar.com/source_files/img_previewer/">Regular demo</a><br /><a href="http://marioedgar.com/source_files/img_previewer/img_grid.html">Grid demo</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=image+previewer+-+http://b2l.me/fv934+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/02/image-previewer/&amp;t=image+previewer" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/02/image-previewer/&amp;title=image+previewer&amp;summary=%0D%0AHere%20is%20a%20cool%20jQuery%20effect%20which%20lets%20you%20preview%20an%20image%20when%20you%20hover%20over%20its%20thumbnail.%20It%20pretty%20much%20a%20tooltip%20that%20follows%20your%20mouse%20around%20while%20having%20an%20image%20rather%20than%20text.%20The%20image%20previewer%20will%20also%20adjust%20itself%20depending%20on%20how%20large%20the%20image%20is%20in%20relation%20to%20the%20x%20and%20y&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/02/image-previewer/&amp;title=image+previewer" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/02/image-previewer/&amp;title=image+previewer" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/02/image-previewer/&amp;title=image+previewer" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/02/image-previewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mario’s Buttons</title>
		<link>http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/</link>
		<comments>http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:52 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/</guid>
		<description><![CDATA[
As websites move towards the “web 2.0&#8243; look and feel, a glassy rounded corner button or image is pretty standard. There are many websites out there that will generate buttons for you automatically through their design tools such as My Cool Button and As Button Generator .



The tools are nice to use, but I thought [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fmario%25e2%2580%2599s-buttons%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fmario%25e2%2580%2599s-buttons%2F" height="61" width="51" /></a></div><p>
As websites move towards the “web 2.0&#8243; look and feel, a glassy rounded corner button or image is pretty standard. There are many websites out there that will generate buttons for you automatically through their design tools such as <a href=http://www.mycoolbutton.com/>My Cool Button</a> and <a href=http://jirox.net/AsButtonGen/>As Button Generator</a> .
</p>
<p><span id="more-167"></span></p>
<p>
The tools are nice to use, but I thought I would show the technique I always use when designing these buttons. Its very easy to do, its simply just a rounded corner rectangle with a gradient.
</p>
<p>
Open your favorite editor, I personally use FireWorks and sometimes PhotoShop. If you are looking for a open source editor I would suggest <a href=http://www.gimp.org/">GIMP</a>
</p>
<h3>Creating the Image</h3>
<p>
Start with a basic rounded corner rectangle for the first layer of your image.
</p>
<p><center><br />
<img src="http://www.marioedgar.com/images/blog/1.jpg" /><br />
</center></p>
<p>
I then give the image a slight inner glow. This is an option in the filter section of FireWorks.
</p>
<p><center><br />
<img src="http://www.marioedgar.com/images/blog/2.jpg" /><br />
</center></p>
<p>
Use the rounded corner rectangle tool again this time with slightly more roundness to it. Select the fill option, choose gradient and set both the colors to white. A white with 10% opacity to a white with 35%. You can play with these numbers until it looks right. Put this gradient on the top half of your image.
</p>
<p><center><br />
<img src="http://www.marioedgar.com/images/blog/3.jpg" /><br />
</center></p>
<h3>Want to add a hover over effect?</h3>
<p>
Here is a little technique I have picked up. Double the canvase height of your image so you can put a duplicate directly below.
</p>
<p><center><br />
<img src="http://www.marioedgar.com/images/blog/4.jpg" /><br />
</center></p>
<p>
Add some color to the bottom layer of the image on the bottom.
</p>
<p><center><br />
<img src="http://www.marioedgar.com/images/blog/5.jpg" /><br />
</center></p>
<p>Now add some css.</p>
<pre class="brush: css;">

a.myButtonDiv
{
  display:block;
  width: 271px; /* Exact width of image */
  height: 74px; /* Exactly half of the overall image */
  background: url("http://www.marioedgar.com/images/blog/5.jpg") no-repeat top left;
  line-height: 74px;
  text-align:center;
  color: #fff;
  font-weight:bold;
  font-size: 16px;
}

a.myButtonDiv:hover
{
  background-position: 0 -74px;
  text-decoration:none;
}
</pre>
<p>And finally the html</p>
<pre class="brush: xml;">
     <a class="myButtonDiv" href="" >Look at my Button!</a>
</pre>
<p><a class="myButtonDiv" href="" >Look at my Button!</a></p>
<h3>jQuery? Why not?</h3>
<p>Let make this thing stand out a little more by using some animation, start with the CSS tweaked a little bit:</p>
<pre class="brush: css;">
      a.myButton, span.firstBackground, span.secondBackground
      {
          width: 271px;
          height: 74px;
          display:block;
          line-height:74px;
          text-decoration:none;
          font-weight:bold;
          color: #000;
          text-align:center;
          position:absolute;
          top:0;
          color:#fff;
          font-size: 16px;
      }

      .firstBackground
      {
          background: url('http://www.marioedgar.com/images/blog/5.jpg') no-repeat;
          background-position: 0 0;
      }
      .secondBackground
      {
          background: url('http://www.marioedgar.com/images/blog/5.jpg') no-repeat;
          background-position: 0 -74px;
      }
</pre>
<p>HTML markup is the same, but we need a parent container now that we are using absolute positioning.</p>
<pre class="brush: xml;">
<div id="button_container">

         <a class="myButton" href="">Look at my button!</a></div>
</pre>
<p>Any lastly, the jQuery.</p>
<pre class="brush: js;">

jQuery(window).ready(function(){
    jQuery("<span class='firstBackground'></span><span class='secondBackground'></span>").insertBefore("a.myButton");
    jQuery("span.secondBackground").css("opacity","0");
    jQuery("a.myButton").mouseenter(function(){
    jQuery(this).parent().find("span.secondBackground").animate ({
    opacity: 1.0
    }, 500); });
    jQuery("a.myButton").mouseleave(function(){
    jQuery(this).parent().find("span.secondBackground").animate ({
    opacity: 0
    }, 500); });
});
</pre>
<div id="button_container1">
<p>         <a class="myButton1" href="">Look at my button!</a></p></div>
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Mario%E2%80%99s+Buttons+-+http://b2l.me/dkedw+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/&amp;t=Mario%E2%80%99s+Buttons" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/&amp;title=Mario%E2%80%99s+Buttons&amp;summary=%0D%0AAs%20websites%20move%20towards%20the%20%E2%80%9Cweb%202.0%22%20look%20and%20feel%2C%20a%20glassy%20rounded%20corner%20button%20or%20image%20is%20pretty%20standard.%20There%20are%20many%20websites%20out%20there%20that%20will%20generate%20buttons%20for%20you%20automatically%20through%20their%20design%20tools%20such%20as%20My%20Cool%20Button%20and%20As%20Button%20Generator%20.%20%0D%0A%0D%0A%0D%0A%0D%0AThe%20tools%20are%20n&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/&amp;title=Mario%E2%80%99s+Buttons" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/&amp;title=Mario%E2%80%99s+Buttons" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/&amp;title=Mario%E2%80%99s+Buttons" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/mario%e2%80%99s-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The worlds easiest centered two column layout</title>
		<link>http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/</link>
		<comments>http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:50 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/</guid>
		<description><![CDATA[
Here&#8217;s a post for beginner HTML/CSS soon to be ninjas. About 90% of the sites I have built use this same technique for layout. I generally use a 950px wide layout but this can be any size you would like as long as you adjust the width of the columns accordingly.


1: Set up the HTML




 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fthe-worlds-easiest-centered-two-column-layout%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fthe-worlds-easiest-centered-two-column-layout%2F" height="61" width="51" /></a></div><p>
Here&#8217;s a post for beginner HTML/CSS soon to be ninjas. About 90% of the sites I have built use this same technique for layout. I generally use a 950px wide layout but this can be any size you would like as long as you adjust the width of the columns accordingly.
</p>
<p><span id="more-166"></span></p>
<h3>1: Set up the HTML</h3>
<pre class="brush: xml;">
<body>
<div id="myContainer">
<div id="myHeader">
                   <!-- Header content goes here -->
        </div>
<div id="myLeftColumn">
                  <!-- Main content goes here -->
        </div>
<div id="myRightColumn">
                  <!-- Sidebar content goes here -->
        </div>
<div class="clear"></div>
<div id="myFooter">
                 <!-- Footer content goes here -->
        </div>
</div>

</body>
</pre>
<h3>2: Add the CSS</h3>
<p>
The first thing I do before I start coding my CSS is use a CSS reset. I tend to use Erik Meyers <a href="http://meyerweb.com/eric/tools/css/reset/">reset CSS</a> but there are many CSS resets such as <a href="http://developer.yahoo.com/yui/reset/">yahoo&#8217;s</a>.</p>
<pre class="brush: css;">
<style type="text/css">

/* reset css here */

body 
{
	text-align: center;
}
#myContainer
{
	/* This centers all of you content on the page */
	margin: 0 auto;
	text-align: left;
	width: 950px;
}
#myLeftColumn 
{
	width: 700px;
	float: left;
}
#myRightColumn 
{
	width: 225px;
	float: right;
}
.clear 
{
	clear: both;
}
</style>
</pre>
<p>
Believe it or not thats all you have to do for the layout. Just remember if you are adding a border to the left_column or right_column that you are increasing the overall width of each column.
</p>
<p>
Check out a little <a href="http://marioedgar.com/source_files/layout.html">demo page</a> I created.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=The+worlds+easiest+centered+two+column+layout+-+http://b2l.me/dkedz+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/&amp;t=The+worlds+easiest+centered+two+column+layout" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/&amp;title=The+worlds+easiest+centered+two+column+layout&amp;summary=%0D%0A%0D%0AHere%27s%20a%20post%20for%20beginner%20HTML%2FCSS%20soon%20to%20be%20ninjas.%20About%2090%25%20of%20the%20sites%20I%20have%20built%20use%20this%20same%20technique%20for%20layout.%20I%20generally%20use%20a%20950px%20wide%20layout%20but%20this%20can%20be%20any%20size%20you%20would%20like%20as%20long%20as%20you%20adjust%20the%20width%20of%20the%20columns%20accordingly.%0D%0A%0D%0A%0D%0A1%3A%20Set%20up%20the%20HTML%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/&amp;title=The+worlds+easiest+centered+two+column+layout" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/&amp;title=The+worlds+easiest+centered+two+column+layout" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/&amp;title=The+worlds+easiest+centered+two+column+layout" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/the-worlds-easiest-centered-two-column-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery html slideshow</title>
		<link>http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/</link>
		<comments>http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:48 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/</guid>
		<description><![CDATA[
I enjoyed building my image slideshow so much that I had to do another. I have used many open sourced html slideshows in my years, but again I wanted to build one that is very simple and customizable. The html slideshow I have created will fade in and out through any html content of your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fjquery-html-slideshow%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fjquery-html-slideshow%2F" height="61" width="51" /></a></div><p>
I enjoyed building my <a href="http://marioedgar.com/blog/?p=11">image slideshow</a> so much that I had to do another. I have used many open sourced html slideshows in my years, but again I wanted to build one that is very simple and customizable. The html slideshow I have created will fade in and out through any html content of your choice. Here are the steps to create this slideshow.
</p>
<p><span id="more-165"></span></p>
<h3>
1: Link your JS.<br />
</h3>
<p></p>
<p>
Three files will need to be linked in your on your page, the jQuery library, the preloader JS(optional) and my slideshow JS.
</p>
<pre class="brush: js;">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="preloader.js"></script>
<script type="text/javascript" src="mariosSlide.js"></script>
</pre>
<p>
Sources:
</p>
<p>
<a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery">jQuery</a><br /><a href="http://flesler.blogspot.com/2008/01/jquerypreload.html">preloader</a><br /><a href="http://www.marioedgar.com/js/mariosSlide.js">mariosSlide.js</a>
</p>
<h3>
2: Set up your HTML.<br />
</h3>
<p></p>
<p>
Start with a division and give it any id that you would like, just keep in mind you will need to define this name later in the JS.
</p>
<pre class="brush: xml;">
<div id="slideShowDiv">
</div>
</pre>
<p>
Inside of this div will be your containers holding your content, each container will need to have a id starting with id=”slide1”, the next id=”slide2” etc. You will also set each style of these elemts to display:none, you can either do it inline or in your CSS file.
</p>
<pre class="brush: xml;">
<div id="slideShowDiv">
<div id="slide1" style="display:none;" >
          SLIDE 1 CONTENT
      </div>
<div id="slide2" style="display:none;" >
          SLIDE 2 CONTENT
      </div>
<div id="slide3" style="display:none;" >
          SLIDE 3 CONTENT
      </div>
</div>
</pre>
<h3>
3. Edit mariosSlide.js<br />
</h3>
<p></p>
<p>
There are a few variables to set, alter the code as needed save then you should be ready to rock.
</p>
<pre class="brush: js;">

var divName = "slideShowDiv";
var numSlides = 3;
var pauseTime = 6000;
var imagePreLoad = true;
var imagesPath = "http://marioedgar.com/homepage_slide_images/";
var imageType = ".jpg";
var slideShowWidth = 910;
var slideShowHeight = 300;
var loaderName = "loader.gif";
var loaderWidth = 32;
var loaderHeight = 32;
var navigationButtons = true;
</pre>
<p>Click <a href="http://www.marioedgar.com/source_files/htmlSlideShow.zip">here </a> to download source files.</p>
<p>
A working example of this is on my homepage, check it out <a href="http://www.marioedgar.com/">here</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=jQuery+html+slideshow+-+http://b2l.me/dkedu+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/&amp;t=jQuery+html+slideshow" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/&amp;title=jQuery+html+slideshow&amp;summary=%0D%0A%0D%0AI%20enjoyed%20building%20my%20image%20slideshow%20so%20much%20that%20I%20had%20to%20do%20another.%20I%20have%20used%20many%20open%20sourced%20html%20slideshows%20in%20my%20years%2C%20but%20again%20I%20wanted%20to%20build%20one%20that%20is%20very%20simple%20and%20customizable.%20The%20html%20slideshow%20I%20have%20created%20will%20fade%20in%20and%20out%20through%20any%20html%20content%20of%20your%20choice.&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/&amp;title=jQuery+html+slideshow" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/&amp;title=jQuery+html+slideshow" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/&amp;title=jQuery+html+slideshow" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/jquery-html-slideshow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery slide show</title>
		<link>http://www.m2volt.com/blog/2010/01/jquery-slide-show/</link>
		<comments>http://www.m2volt.com/blog/2010/01/jquery-slide-show/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:44 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/jquery-slide-show/</guid>
		<description><![CDATA[There are tons of slideshow options on the web today, many are very well built while others can be very cluttered and hard to use/understand. Now that I am getting fairly comfortable with jQuery I felt as if building a sideshow myself would be very beneficial as well as a good learning experience. I wanted [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fjquery-slide-show%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fjquery-slide-show%2F" height="61" width="51" /></a></div><p>There are tons of slideshow options on the web today, many are very well built while others can be very cluttered and hard to use/understand. Now that I am getting fairly comfortable with jQuery I felt as if building a sideshow myself would be very beneficial as well as a good learning experience. I wanted to build this slideshow for someone who has little knowledge of html css and JavaScript. So what I did was make it so simple that all you have to do is link to jQuery, the slideshow js I created and add a single &lt;div&gt; in the html with an id of whatever you want. There is no need for any css, but of course adding css to spice it up is very very easy.<br />
<span id="more-163"></span><br />
<strong>Steps to implement my slideshow:</strong></p>
<h3>1: Link to the JS</h3>
<pre class="brush: js;">
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.preload-min.js" type="text/javascript"></script>
<script src="mariosSlide.js" type="text/javascript"></script>
</pre>
<p>
Sources:
</p>
<p>
<a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery">jQuery</a><br /><a href="http://flesler.blogspot.com/2008/01/jquerypreload.html">preloader</a><br /><a href="http://marioedgar.com/slideshow/mariosSlide.js">mariosSlide.js</a>
</p>
<h3>2: Edit the variables in mariosSlide.js</h3>
<pre class="brush: js;">
var divName = “slideShowDiv”; // name of the div in html
var numSlides = 10; // Number of slides in the slideshow
var pauseTime = 6000; // Pause time between slides
var imagesPath = "http://marioedgar.com/slideshow/mariosSlide/”; – URL to the directory all your images are located. All images must be names 1, 2, 3, 4… etc
var imageType = ".jpg”; // Type of images
var slideShowWidth = 1000; // width of slideshow
var slideShowHeight = 532; // height of slideshow
var loaderName = "loader.gif"; // name of loader gif (optional)
var loaderWidth = 32; // width of loader
var loaderHeight = 32; // height of loader
var navigationButtons = true; // If you would like to enable navigation buttons
</pre>
<h3>3: Add the html markup </h3>
<pre class="brush: xml;">
<div id="slideShowDiv"></div>
</pre>
<p>4. Your done&#8230; Easy yeah?</p>
<p>Check out my example here (I made the images way large so you can see the image pre-loading in action):  <a title="Mario's slideshow" href="http://marioedgar.com/slideshow/">http://marioedgar.com/slideshow/</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=jQuery+slide+show+-+http://b2l.me/dkedy+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/jquery-slide-show/&amp;t=jQuery+slide+show" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/jquery-slide-show/&amp;title=jQuery+slide+show&amp;summary=%0D%0A%0D%0AThere%20are%20tons%20of%20slideshow%20options%20on%20the%20web%20today%2C%20many%20are%20very%20well%20built%20while%20others%20can%20be%20very%20cluttered%20and%20hard%20to%20use%2Funderstand.%20Now%20that%20I%20am%20getting%20fairly%20comfortable%20with%20jQuery%20I%20felt%20as%20if%20building%20a%20sideshow%20myself%20would%20be%20very%20beneficial%20as%20well%20as%20a%20good%20learning%20experienc&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/jquery-slide-show/&amp;title=jQuery+slide+show" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/jquery-slide-show/&amp;title=jQuery+slide+show" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/jquery-slide-show/&amp;title=jQuery+slide+show" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/jquery-slide-show/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically add images to links</title>
		<link>http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/</link>
		<comments>http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:43 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/</guid>
		<description><![CDATA[Adding images to links on your website can be very useful, it is helpful for the ease of use and also adds attractive visuals to your site.

It is very simple to add images to any link, just add a background image to the anchor tag using CSS right? But what if you want to add [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fautomatically-add-images-to-links%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fautomatically-add-images-to-links%2F" height="61" width="51" /></a></div><p>Adding images to links on your website can be very useful, it is helpful for the ease of use and also adds attractive visuals to your site.</p>
<p><span id="more-162"></span><br />
It is very simple to add images to any link, just add a background image to the anchor tag using CSS right? But what if you want to add images to not only external links but pdf’s, gif’s, png’s, word documents or email links?</p>
<p>You could add a class to every single instance of that type, but this is very tedious and you still have the possibility of forgetting many of them, especially if your site is fairly large.</p>
<p>The answer is to use CSS Attribute selectors.</p>
<p>[href$="end of href path"]</p>
<p>[href^="beginning of href path"]</p>
<p>So If you would like to add a small icon next to your link that downloads a word document you would use this line of code:</p>
<pre class="brush: css;">a[href$=".doc "]{ background:url(’../images/word-icon.gif’) no-repeat left;}
</pre>
<p>PDF:</p>
<pre class="brush: css;">a[href$=".pdf"]{background:url(’../images/pdf-icon.gif’) no-repeat left;}
</pre>
<p>For the external links you would use this line of code:</p>
<pre class="brush: css;">a[href^="http:"]{background:url(’../images/external.gif’) no-repeat left;}
</pre>
<p>Email addres:</p>
<pre class="brush: css;">a[href^="mailto:"]{background:url(’../images/email.gif’) no-repeat left;}
</pre>
<p>The result:</p>
<p><a href="http://www.marioedgar.com/docs/Mario_Edgar.doc">Mario&#8217;s Resume</a> (Word Doc)</p>
<p><a href="http://www.marioedgar.com/docs/Mario_Edgar.pdf">Mario&#8217;s Resume</a> (PDF)</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Automatically+add+images+to+links+-+http://b2l.me/dked6+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/&amp;t=Automatically+add+images+to+links" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/&amp;title=Automatically+add+images+to+links&amp;summary=%0D%0A%0D%0A%0D%0AAdding%20images%20to%20links%20on%20your%20website%20can%20be%20very%20useful%2C%20it%20is%20helpful%20for%20the%20ease%20of%20use%20and%20also%20adds%20attractive%20visuals%20to%20your%20site.%0D%0A%0D%0A%0D%0AIt%20is%20very%20simple%20to%20add%20images%20to%20any%20link%2C%20just%20add%20a%20background%20image%20to%20the%20anchor%20tag%20using%20CSS%20right%3F%20But%20what%20if%20you%20want%20to%20add%20images%20to%20not&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/&amp;title=Automatically+add+images+to+links" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/&amp;title=Automatically+add+images+to+links" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/&amp;title=Automatically+add+images+to+links" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/automatically-add-images-to-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Must have FireFox plugins for web development</title>
		<link>http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/</link>
		<comments>http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:41 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/</guid>
		<description><![CDATA[
Firefox can be one of your most powerful web developing tools. Plugins for FireFox are easy to use and can cut down time coding by hours, check out some of my favorites.


Plugin page
Firebug

Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fmust-have-firefox-plugins-for-web-development%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fmust-have-firefox-plugins-for-web-development%2F" height="61" width="51" /></a></div><p>
Firefox can be one of your most powerful web developing tools. Plugins for FireFox are easy to use and can cut down time coding by hours, check out some of my favorites.
</p>
<p><span id="more-161"></span></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/">Plugin page</a></p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a></h3>
<p>
Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page…
</p>
</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web developer tool bar</a></h3>
<p>
Edit CSS on a page instantly, validate HTML/CSS/XML, clear cache instantly, view stylsheet information and much much more.
</p>
</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/539">MeasureIt</a></h3>
<p>
Measure any area on a page in px with a click and drag of your mouse, comes very much in handy.
</p>
</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/684">FireFTP</a></h3>
<p>
Add an FTP client straight to your FireFox browser.
</p>
</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/966">Tamper Data</a></h3>
<p>
Use tamperdata to view and modify HTTP/HTTPS headers and post parameters. Trace and time http response/requests. Security test web applications by modifying POST parameters
</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/59">User Agent Switcher</a></h3>
<p>
Ever wanted to test a page you built for the iPhone? The User Agent Switcher extension adds a menu and a toolbar button to switch the user agent of the browser.
</p>
<p><b><br />
Other cool plugins<br />
</b></p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/8879">Fox Tab</a></h3>
<p>
FoxTab is a 3D tabbed browsing extension. With 5 attractive layouts to choose from, fliiping between opened tabs becomes easy and enjoyable than ever. Use the grouping and filtering features, and start experiencing tabbed-browsing in a whole new way.
</p>
<p>
Stay tuned for more plugins as I find them</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Must+have+FireFox+plugins+for+web+development+-+http://b2l.me/dked7+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/&amp;t=Must+have+FireFox+plugins+for+web+development" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/&amp;title=Must+have+FireFox+plugins+for+web+development&amp;summary=%0D%0AFirefox%20can%20be%20one%20of%20your%20most%20powerful%20web%20developing%20tools.%20Plugins%20for%20FireFox%20are%20easy%20to%20use%20and%20can%20cut%20down%20time%20coding%20by%20hours%2C%20check%20out%20some%20of%20my%20favorites.%0D%0A%0D%0APlugin%20page%0D%0AFirebug%0D%0A%0D%0AFirebug%20integrates%20with%20Firefox%20to%20put%20a%20wealth%20of%20development%20tools%20at%20your%20fingertips%20while%20you%20bro&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/&amp;title=Must+have+FireFox+plugins+for+web+development" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/&amp;title=Must+have+FireFox+plugins+for+web+development" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/&amp;title=Must+have+FireFox+plugins+for+web+development" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/must-have-firefox-plugins-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS hacks and filters</title>
		<link>http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/</link>
		<comments>http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:38 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/</guid>
		<description><![CDATA[
You should rarely use CSS hacks for different browsers, but sometimes you find yourself in the situation where there is no other choice. Over the years I have come across some CSS hacks and filters that can come in handy when building websites.



As web developers we all know about Internet Explorer and how it can [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fcss-hacks-and-filters%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fcss-hacks-and-filters%2F" height="61" width="51" /></a></div><p>
You should rarely use CSS hacks for different browsers, but sometimes you find yourself in the situation where there is no other choice. Over the years I have come across some CSS hacks and filters that can come in handy when building websites.
</p>
<p><span id="more-160"></span></p>
<p>
As web developers we all know about Internet Explorer and how it can be a pain when developing, especially IE6 and below. Here are some of the hacks I use for Internet Explorer.
</p>
<p>
<b>Conditional Hacks</b>
</p>
<p>
If you would like to target a specific stylesheet to a certain version of Internet Explorer you would use the following:
</p>
<pre class="brush: css;">
<!–[if IE 8]>
<link rel="stylesheet" href="ie8.css" type="text/css">
<![endif]–>
</pre>
<p>
This conditional statement will target IE8 only, to use on any other version just replace the &#8220;8″ with the version you would like. Say your site needs a stylesheet for All browsers below IE7, so IE6 and below, for this you would use:
</p>
<pre class="brush: css;">
<!–[if lt IE 7]>
<link rel="stylesheet" href="ie.css" type="text/css">
<![endif]–>
</pre>
<p>
The &#8220;lt&#8221; stands for less than the version specified. You could also use &#8220;lte&#8221;, this would target the version specified as well as the versions below, so this code would produce the same result as the previous:
</p>
<pre class="brush: css;">
<!–[if lte IE 6]>
<link rel="stylesheet" href="ie.css" type="text/css">
<![endif]–>
</pre>
<p>
<b>Filters</b>
</p>
<p>
Sometimes you find yourself only needing to change a specific style or two, in these cases you would use the same stylesheet, but add a filter below the line of the original. For instance, say you run into the IE6 double margin bug. When you float and element and give it some margin, IE6 will double this margin in some situations. If you run into this, this is what you can do:
</p>
<pre class="brush: css;">
#sidebar
{
  float:left;
  margin-left: 10px;
}
</pre>
<p>
Once you realize that IE6 is adding a 20px margin to the left side, you can add the filter below your original line:
</p>
<pre class="brush: css;">
#sidebar
{
  float:left;
  margin-left: 10px;
}

*html #sidebar
{
  margin-left: 5px;
}
</pre>
<p>
So in this case, *html followed by your CSS id or class will be applied to IE6 and below. This is how all the following filters should be implemented:
</p>
<pre class="brush: css;">
*html #code { your css here}
</pre>
<p>
Applies to IE 6, 5.5, 5 and 4 for windows. IE5 on mac OS X, IE5 on Macintosh and IE4 on Macintosh.
</p>
<pre class="brush: css;">
*+html #code { your css here}
</pre>
<p>
Applies to IE 7 and 5 on Windows.
</p>
<p>
Now that you have an idea of how this works, you can look up the rest in this chart I found. <a href="http://centricle.com/ref/css/filters/">http://centricle.com</a>
</p>
<p>
I want to emphasize that you should never develope using these hacks and filters first, this should be a last resort option. Develope, validate your code and if you find yourself stuck, then use the hacks and filters sparingly.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=CSS+hacks+and+filters+-+http://b2l.me/dkedx+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/&amp;t=CSS+hacks+and+filters" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/&amp;title=CSS+hacks+and+filters&amp;summary=%0D%0A%0D%0AYou%20should%20rarely%20use%20CSS%20hacks%20for%20different%20browsers%2C%20but%20sometimes%20you%20find%20yourself%20in%20the%20situation%20where%20there%20is%20no%20other%20choice.%20Over%20the%20years%20I%20have%20come%20across%20some%20CSS%20hacks%20and%20filters%20that%20can%20come%20in%20handy%20when%20building%20websites.%0D%0A%0D%0A%0D%0A%0D%0AAs%20web%20developers%20we%20all%20know%20about%20Internet&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/&amp;title=CSS+hacks+and+filters" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/&amp;title=CSS+hacks+and+filters" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/&amp;title=CSS+hacks+and+filters" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/css-hacks-and-filters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CSS Frameworks</title>
		<link>http://www.m2volt.com/blog/2010/01/using-css-frameworks/</link>
		<comments>http://www.m2volt.com/blog/2010/01/using-css-frameworks/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:34:35 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/2010/01/using-css-frameworks/</guid>
		<description><![CDATA[Ever spent hours coding HTML and CSS trying to get your layout to look the way you want across all browsers? CSS frameworks can cut your time coding in half as well as look correct in newer and older web browsers. This framework uses the idea of a grid layout so everything will line up [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fusing-css-frameworks%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2010%2F01%2Fusing-css-frameworks%2F" height="61" width="51" /></a></div><p>Ever spent hours coding HTML and CSS trying to get your layout to look the way you want across all browsers? CSS frameworks can cut your time coding in half as well as look correct in newer and older web browsers. This framework uses the idea of a grid layout so everything will line up perfectly, it will also virtually cut all your time coding CSS for layout.</p>
<p><span id="more-159"></span></p>
<p><a href="http://www.blueprintcss.org/" target="_blank">Blueprint CSS</a></p>
<p>Blueprint CSS is the first CSS framework I have used and my favorite. You start by structuring your HTML with a container that holds are of you columns, inside the columns you setup your divisions. If you look at the screen.css and scroll until you see the .span-(x) where x is a number. These are the division widths you will be using. If you look at some of the <a href="http://www.blueprintcss.org/tests/" target="_blank">test pages</a> on the site and view the source you will get an idea just how these divisions work.</p>
<p>So in these examples they use a total width of 950px&#8230; Again if you look at the screen.css you will see a list of widths, the total width of the content area in their example is 950px and they call it with the class .span-24. 24 is the key number here, this is the number you want all your columns to add up to for each row. For example, if you want 3 columns a sidebar, a content area and another side bar you would use: .span-4, .span-16 and .span-4 in that order. Notice how these add up to 24? The 24 in this example will always be 950px. There are many variations you can do with this, you can nest columns inside your span-(x) as long as in the end each row adds up to the outer container.</p>
<p>So I know what you are thinking, hey I dont want it to be set at 950px&#8230; What if I want a width of 1000px or 850px? Well your in luck, <a href="http://kematzy.com/blueprint-generator/" target="_blank">check this page out here</a>, this is a blueprint css framework generator. Mess around with the numbers until you find your goal.</p>
<p><a href="http://960.gs/" target="_blank">960 Grid CSS</a></p>
<p>I downloaded and messed around with 960 grid CSS framework and it seems to be pretty much the same concept as blueprint CSS. <a href="http://marioedgar.com/960/" target="_self">Check out the page I messed with</a>.</p>
<p>For first example the grid has 12 columns and you declare the outermost container like so: container_12, then inside you just declare the divisions such as grid_2, grid_8 and grid_2 to add up to the 12. After each row you must declare a clear class since the columns are being floated.</p>
<p>960 Grid also has a grid generator on there website for your custom applications just like blueprint has theirs.</p>
<p>This is the basic structure of CSS frameworks, my advice to you is go to the one of the sites and check out the source, download the code and mess around with it. Once you get the hang of the setup you wont believe how much faster your coding will flow, and how clean everything will look.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Using+CSS+Frameworks+-+http://b2l.me/dked8+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2010/01/using-css-frameworks/&amp;t=Using+CSS+Frameworks" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2010/01/using-css-frameworks/&amp;title=Using+CSS+Frameworks&amp;summary=%0D%0AEver%20spent%20hours%20coding%20HTML%20and%20CSS%20trying%20to%20get%20your%20layout%20to%20look%20the%20way%20you%20want%20across%20all%20browsers%3F%20CSS%20frameworks%20can%20cut%20your%20time%20coding%20in%20half%20as%20well%20as%20look%20correct%20in%20newer%20and%20older%20web%20browsers.%20This%20framework%20uses%20the%20idea%20of%20a%20grid%20layout%20so%20everything%20will%20line%20up%20perfectly%2C%20&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2010/01/using-css-frameworks/&amp;title=Using+CSS+Frameworks" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2010/01/using-css-frameworks/&amp;title=Using+CSS+Frameworks" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2010/01/using-css-frameworks/&amp;title=Using+CSS+Frameworks" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2010/01/using-css-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery feed reader – jgfeed</title>
		<link>http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/</link>
		<comments>http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 23:29:40 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.m2volt.com/blog/?p=116</guid>
		<description><![CDATA[I was trying to find a way to get the latest article posts dynamically on the homepage M2Volt.com. This needed to be client side since it is outside of the CMS we are using for our blog page. I stumbled upon a plugin on the jQuery site that blew my socks off it was so easy to use, I had to write this one up.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2009%2F12%2Fjquery-feed-reader-%25e2%2580%2593-jgfeed%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.m2volt.com%2Fblog%2F2009%2F12%2Fjquery-feed-reader-%25e2%2580%2593-jgfeed%2F" height="61" width="51" /></a></div><p>
I was trying to find a way to get the latest article posts dynamically on the homepage M2Volt.com. This needed to be client side since it is outside of the CMS we are using for our blog page. I stumbled upon a plugin on the jQuery site, jgfeed, that blew my socks off it was so easy to use and I decided to write this one up.
</p>
<p><span id="more-116"></span></p>
<p>
Check out this jQuery plugin: <a href="http://plugins.jquery.com/project/jgfeed">http://plugins.jquery.com/project/jgfeed<br />
</a></p>
<p>
Here is how easy this plugin is to use:
</p>
<h2>
Step 1: Link to the JS<br />
</h2>
<pre class="brush: js;">
<script src="jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.jgfeed-min.js" type="text/javascript"></script>
</pre>
<h2>
Step 2: Configure a snippet of JS<br />
</h2>
<pre class="brush: js;">
jQuery.jGFeed('http://www.m2volt.com/blog/feed/',
function(feeds){
  // Check for errors
  if(!feeds){
    // there was an error
    return false;
  }
  // do whatever you want with feeds here
  for(var i=0; i<feeds.entries.length; i++){
    var entry = feeds.entries[i];
    // Entry title
    jQuery("#injectRssFeed").append("
<h2 class='rss_heading'><a href='" + entry.link+ " '>"
    + entry.title + "</a></h2>
<p class='rss_date'>" + entry.publishedDate + "
<p class='rss_description'>" + entry.contentSnippet + "

");
  }
}, 3);
</pre>
<p>
This will inject 3 entries to the div with id=&#8221;injectRssFeed&#8221;
</p>
<h2>
Step 3: Uhh, thats it.<br />
</h2>
<p>
Check out the Latest Blog Posts section: <a href="http://m2volt.com/">m2volt.com</a>
</p>
<p>
Mad props to the guys who developed this plugin.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=jQuery+feed+reader+%E2%80%93+jgfeed+-+http://b2l.me/brgq9+(via+@m2volt)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/&amp;t=jQuery+feed+reader+%E2%80%93+jgfeed" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/&amp;title=jQuery+feed+reader+%E2%80%93+jgfeed&amp;summary=%0D%0AI%20was%20trying%20to%20find%20a%20way%20to%20get%20the%20latest%20article%20posts%20dynamically%20on%20the%20homepage%20M2Volt.com.%20This%20needed%20to%20be%20client%20side%20since%20it%20is%20outside%20of%20the%20CMS%20we%20are%20using%20for%20our%20blog%20page.%20I%20stumbled%20upon%20a%20plugin%20on%20the%20jQuery%20site%2C%20jgfeed%2C%20that%20blew%20my%20socks%20off%20it%20was%20so%20easy%20to%20use%20and%20I%20de&amp;source=m2volt's blog" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/&amp;title=jQuery+feed+reader+%E2%80%93+jgfeed" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/&amp;title=jQuery+feed+reader+%E2%80%93+jgfeed" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/&amp;title=jQuery+feed+reader+%E2%80%93+jgfeed" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.m2volt.com/blog/2009/12/jquery-feed-reader-%e2%80%93-jgfeed/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

