<?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>Mario Edgar&#039;s Blog</title>
	<atom:link href="http://marioedgar.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://marioedgar.com/blog</link>
	<description>Mario Edgar&#039;s personal web blog</description>
	<lastBuildDate>Tue, 09 Feb 2010 00:44:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Image previewer</title>
		<link>http://marioedgar.com/blog/2010/02/image-previewer/</link>
		<comments>http://marioedgar.com/blog/2010/02/image-previewer/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 19:46:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=202</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>
<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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2010/02/image-previewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inline validator</title>
		<link>http://marioedgar.com/blog/2010/01/inline-validator/</link>
		<comments>http://marioedgar.com/blog/2010/01/inline-validator/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:59:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=194</guid>
		<description><![CDATA[<p>
It seems like today forms are getting smaller and more simple. I like this. Inline validation seems to be the direction form validation is heading. I have built a very simple inline form validator that only requires simple html form markup, a couple  script links, and some CSS to make the form pretty. My example is inline validation only, I do not have any onsubmit validation. I chose to only do the inline validation because every form is different. The average person will need to customize the way the form is processed so I left it up to you guys for the submit action.
</p>
<p>
<a href="http://marioedgar.com/source_files/inlineValidator/">click to see demo</a>
</p>
<p><b>The following is how to implement</b></p>
<h3>
1: Link your JS.<br />
</h3>
<pre class="brush: js;">
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.color.js" type="text/javascript"></script>
<script src="inlineValidator.js" type="text/javascript"></script>
</pre>
<p>
<a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery">jQuery</a><br /><a href="http://plugins.jquery.com/files/jquery.color.js.txt">jquery.color.js</a><br /><a href="http://www.marioedgar.com/js/inlineValidator.js">inlineValidator.js</a>
</p>
<h3>
2: Set up your HTML form.<br />
</h3>
<p></p>
<pre class="brush: xml;">
<form class="jQueryValidate">

        <label>Name<span class="red">*</span> </label>
<input class="input required" type="text" / >

        <label>Phone<span class="red">*</span></label>
<input class="input required phone" type="text" />

        <label>Email<span class="red">*</span></label>
<input class="input required email" type="text" />

        <label>Address</label>
<input class="input" type="text" name="address" />

        <label>Zip<span class="red">*</span></label>
<input class="input required zip" type="text" />

        <label>Comments</label>
        <textArea class="input"></textArea></form>
</pre>
<p>
Every input needs the class &#8220;input&#8221;. To make an input required it needs the class &#8220;required&#8221;. To make an input validate a phone number it needs the class &#8220;phone&#8221;, for email address &#8220;email&#8221; and for zip code &#8220;zip&#8221;.
</p>
<h3>
2: Give it a little style.<br />
</h3>
<p></p>
<pre class="brush: css;">
input, textArea {
	padding: 5px;
	margin-bottom: 1em;
	border: 2px solid #ddd;
	display: block;
	background-image: url('error.jpg') no-repeat;
	background-position: 500px 2px;
}

textArea {
	height: 100px;
	overflow: hidden;
}

label {
	font-weight: bold;
	color: #666;
}
</pre>
<p>
You will need two images error.jpg and valid.jpg, these are the two I used:<br />
<br />
<img src="http://marioedgar.com/source_files/inlineValidator/error.jpg" alt=""><img src="http://marioedgar.com/source_files/inlineValidator/valid.jpg" alt="">
</p>
<h3>
3. That should do it<br />
</h3>
<p>
If you would like to change some things like the width of inputs, the id of the form or the border colors, I have made it very easy to update the variables at the top of inlineValidator.js
</p>
<p>
<a href="http://marioedgar.com/source_files/inlineValidator/">click to see demo</a></p>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2010/01/inline-validator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mario&#8217;s Buttons</title>
		<link>http://marioedgar.com/blog/2010/01/marios-buttons/</link>
		<comments>http://marioedgar.com/blog/2010/01/marios-buttons/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 18:57:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=163</guid>
		<description><![CDATA[<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>
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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2010/01/marios-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The worlds easiest centered two column layout</title>
		<link>http://marioedgar.com/blog/2009/12/the-worlds-simplest-centered-two-column-htmlcss-layout/</link>
		<comments>http://marioedgar.com/blog/2009/12/the-worlds-simplest-centered-two-column-htmlcss-layout/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 09:11:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=128</guid>
		<description><![CDATA[<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>
<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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/the-worlds-simplest-centered-two-column-htmlcss-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery html slideshow</title>
		<link>http://marioedgar.com/blog/2009/12/jquery-html-slideshow/</link>
		<comments>http://marioedgar.com/blog/2009/12/jquery-html-slideshow/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 23:32:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=81</guid>
		<description><![CDATA[<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>
<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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/jquery-html-slideshow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery feed reader &#8211; jgfeed</title>
		<link>http://marioedgar.com/blog/2009/12/jquery-feed-reader-jgfeed/</link>
		<comments>http://marioedgar.com/blog/2009/12/jquery-feed-reader-jgfeed/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 00:37:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=71</guid>
		<description><![CDATA[<p>I was trying to find a way to get the latest article posts dynamically on the homepage <a href="http://m2volt.com/" target="_blank">M2Volt.com</a>. I wanted this 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.</p>
<p>Check out this jQuery plugin:</p>
<p><a href="http://plugins.jquery.com/project/jgfeed" target="_blank">http://plugins.jquery.com/project/jgfeed</a></p>
<p>Here is how easy this plugin is to use:</p>
<h3>Step 1: Link to the JS</h3>
<pre class="brush: js;">
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.jgfeed-min.js" type="text/javascript"></script>
</pre>
<h3>Step 2: Configure a snippet of JS</h3>
<pre class="brush: js;">
<script type="text/javascript">
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);
</script>
</pre>
<p>
This will inject 3 entries to the div &#8220;injectRssFeed&#8221;
</p>
<h3>Step 3: Uhh, thats it.</h3>
<p></p>
<p>
Check out the Latest Blog Posts section:
</p>
<p><a href="http://m2volt.com/" target="_blank">http://m2volt.com/</a></p>
<p>Mad props to the guys who developed this plugin.</p>
<p><a href="http://plugins.jquery.com/project/jgfeed" target="_blank">Google Feeds API &#8211; jQuery plugin</a></p>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/jquery-feed-reader-jgfeed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery slide show</title>
		<link>http://marioedgar.com/blog/2009/12/jquery-slide-show/</link>
		<comments>http://marioedgar.com/blog/2009/12/jquery-slide-show/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:34:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=11</guid>
		<description><![CDATA[<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.</p>
<p><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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/jquery-slide-show/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatically add images to links</title>
		<link>http://marioedgar.com/blog/2009/12/automatically-add-images-to-links/</link>
		<comments>http://marioedgar.com/blog/2009/12/automatically-add-images-to-links/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:23:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=44</guid>
		<description><![CDATA[<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>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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/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://marioedgar.com/blog/2009/12/must-have-firefox-plugins-for-web-development/</link>
		<comments>http://marioedgar.com/blog/2009/12/must-have-firefox-plugins-for-web-development/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:22:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=42</guid>
		<description><![CDATA[<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><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>    </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>    </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>   </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>    </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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/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://marioedgar.com/blog/2009/12/css-hacks-and-filters/</link>
		<comments>http://marioedgar.com/blog/2009/12/css-hacks-and-filters/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:20:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://marioedgar.com/blog/?p=38</guid>
		<description><![CDATA[<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>
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>
]]></description>
		<wfw:commentRss>http://marioedgar.com/blog/2009/12/css-hacks-and-filters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
