<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Programming, Traffic Exchanges, and More</title>
	
	<link>http://austinhallock.com</link>
	<description>From the view of an 18-year-old</description>
	<lastBuildDate>Mon, 08 Mar 2010 02:37:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ProgrammingLifeAndMore" /><feedburner:info uri="programminglifeandmore" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Site Design: CSS Positioning</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/tbiU8db6has/</link>
		<comments>http://austinhallock.com/2010/03/06/site-design-css-positioning/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 20:37:43 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=217</guid>
		<description><![CDATA[With CSS, one of the big things you&#8217;ll need to do is position your elements. You may have used something like &#60;table width=&#8217;100&#8242; height=&#8217;100&#8242;&#62; in the past, problem with that is it&#8217;s not valid. I&#8217;m trying to teach people valid code  
If you don&#8217;t understand anything in this article, either leave a comment with [...]]]></description>
			<content:encoded><![CDATA[<p>With CSS, one of the big things you&#8217;ll need to do is position your elements. You may have used something like &lt;table width=&#8217;100&#8242; height=&#8217;100&#8242;&gt; in the past, problem with that is it&#8217;s not valid. I&#8217;m trying to teach people valid code <img src='http://austinhallock.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you don&#8217;t understand anything in this article, either leave a comment with a question, or refer to the previous post (the one before my apartment vid). This ended up being pretty lengthy, so grab a glass of water and get comfortable <img src='http://austinhallock.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p>The best element to use for positioning/padding/margins etc is the &lt;div&gt; tag. Next easiest is the &lt;p&gt;, and tags like &lt;span&gt;&#8217;s and &lt;a&gt;&#8217;s can be moved around and have the height changed with a bit of extra work.</p>
<p>We&#8217;ll start with what you do for &lt;div&gt;&#8217;s and &lt;p&gt;&#8217;s:</p>
<p><strong>Width and Height:</strong></p>
<div style='padding-left: 20px;'>
Pretty self-explanatory &#8212; You can use pixels, percentages and it looks like centimeters (never used that)<br />
<strong>CSS: </strong></p>
<pre class="brush: css;">
.pixels
{
	width: 400px;
	height: 400px;
}
.percentages
{
	width: 70%;
	height: 50%; /*Though % heights don't always work as expected */
}
</pre>
<p><strong>Examples</strong></p>
<pre class="brush: xml;">
&lt;div style='width: 400px; height: 300px;'&gt;Test&lt;/div&gt;
</pre>
<p><strong>Tips</strong><br />
In general, most people have a resolution of <em>at least</em> 1024px by 768px. This means you probably don&#8217;t want a width greater than about 950px.
</div>
<p><strong>Padding</strong></p>
<div style='padding-left: 20px;'>
Padding is just that, it&#8217;s extra space that pads the outside of your element, meaning more space between the edge and your content. You can use &#8220;padding:&#8221; or &#8220;padding-left&#8221;, &#8220;padding-top&#8221;, etc.<br />
<img alt="" src="http://www.austinhallock.com/ss/0d3f44c55ef100e74dcae73e7be3d351.png" title="Purple = Padding" class="aligncenter" width="555" height="131" /><br />
<strong>CSS</strong></p>
<pre class="brush: css;">
.all_around
{
	padding: 20px;
}
.left_right
{
	padding: 20px 0;
}
.top_right
{
	padding: 20px 20px 0 0;
}
.left_pad
{
	padding-left: 20px;
}
</pre>
<p><strong>Examples</strong></p>
<pre class="brush: xml;">
&lt;style type='text/css'&gt;
.mydiv
{
	padding: 2px 10px;
}
&lt;/style&gt;
&lt;div class='mydiv'&gt;Test&lt;/div&gt;
</pre>
<p><strong>Tips</strong><br />
If you just enter one value, ie the <em>all_around class</em> above, it will pad all four sides.<br />
If you specify two numbers like the <em>left_right class</em>, it will pad the top and bottom with the first number, and left and right with the second.<br />
If you specify all four numbers like the <em>top_right class</em>, it will put the padding in clockwise order. So top, right, bottom, left.
</div>
<p><strong>Margin</strong></p>
<div style='padding-left: 20px;'>
Margin is very similar to padding. The difference is margin is the amount of space <em>between</em> each element, while padding is extra space <em>inside</em> the element. This makes a big difference when you start adding background colors and borders. Like padding, you can use &#8220;margin&#8221;, &#8220;margin-right&#8221;, &#8220;margin-bottom&#8221;, etc<br />
<img alt="" src="http://www.austinhallock.com/ss/62565bd898d6a8df872c2df569e3ba4c.png" title="Yellow = Margin" class="aligncenter" width="566" height="67" /><br />
<strong>CSS</strong></p>
<pre class="brush: css;">
.all_around
{
	margin: 20px;
}
.left_right
{
	margin: 20px 0;
}
.top_right
{
	margin: 20px 20px 0 0;
}
.left_pad
{
	margin-left: 20px;
}
</pre>
<p><strong>Examples</strong></p>
<pre class="brush: xml;">
&lt;style type='text/css'&gt;
.mydiv
{
	margin: 10px 0;
}
&lt;/style&gt;
&lt;div class='mydiv'&gt;Test&lt;/div&gt;
</pre>
<p><strong>Tips</strong><br />
The order of top, right, left, bottom is the same for this. And again, use padding when you have a background color for your element and you want some space so the text isn&#8217;t smushed up against the edge, use margin when you want space between elements.
</div>
<p><strong>Centering an element</strong></p>
<div style='padding-left: 20px;'>
If you want to center an element in the page, most people probably use &lt;center&gt;. Again, not really valid. So what I do is something like this:</p>
<pre class="brush: xml;">
&lt;style type='text/css'&gt;
.container
{
width: 800px;
margin: 0 auto;
}
&lt;/style&gt;
&lt;div class='container'&gt;Whatever&lt;/div&gt;
</pre>
<p>Aligning your element in the exact center of the page (what&#8217;s above just centers horizontally), you want to do something like <a href="http://www.timlinden.com/blog/traffic-exchanges/orange-burst-splash-page/">this</a> or use some javascript.
</div>
<p>Just a random tip that I can&#8217;t really write a full blog post for, there&#8217;s an order to which elements can be inside which. Basically, don&#8217;t put a &lt;div&gt;, &lt;p&gt;, &lt;h1&gt; (h2, h3 etc) inside of a &lt;span&gt; or &lt;a&gt;</p>
<p>Well that was a lot of text, hopefully you&#8217;ll find some use out of some of it. Funny thing about me doing these tutorials/posts on CSS is CSS was the last thing I became fluent in, learned HTML -> PHP -> Javascript -> CSS.</p>
<p>Next up is more advanced positioning/padding for stuff like links and spans. </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Site+Design%3A+CSS+Positioning+-+http://b2l.me/h9s59+(via+@austinhallock)" 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://austinhallock.com/2010/03/06/site-design-css-positioning/&amp;t=Site+Design%3A+CSS+Positioning" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Site%20Design%3A%20CSS%20Positioning%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22With%20CSS%2C%20one%20of%20the%20big%20things%20you%27ll%20need%20to%20do%20is%20position%20your%20elements.%20You%20may%20have%20used%20something%20like%20%26lt%3Btable%20width%3D%27100%27%20height%3D%27100%27%26gt%3B%20in%20the%20past%2C%20problem%20with%20that%20is%20it%27s%20not%20valid.%20I%27m%20trying%20to%20teach%20people%20valid%20code%20%3B%29%0D%0A%0D%0AIf%20you%20don%27t%20understand%20anything%20in%20this%20article%2C%20either%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/03/06/site-design-css-positioning/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/03/06/site-design-css-positioning/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/03/06/site-design-css-positioning/&amp;title=Site+Design%3A+CSS+Positioning" 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://austinhallock.com/2010/03/06/site-design-css-positioning/&amp;title=Site+Design%3A+CSS+Positioning" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/03/06/site-design-css-positioning/&amp;title=Site+Design%3A+CSS+Positioning" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/03/06/site-design-css-positioning/&amp;title=Site+Design%3A+CSS+Positioning" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/03/06/site-design-css-positioning/&amp;t=Site+Design%3A+CSS+Positioning" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/tbiU8db6has" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/03/06/site-design-css-positioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/03/06/site-design-css-positioning/</feedburner:origLink></item>
		<item>
		<title>Some updates</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/ly6_vCIvi40/</link>
		<comments>http://austinhallock.com/2010/03/02/some-updates/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 02:09:28 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=211</guid>
		<description><![CDATA[Ignore the bad quality and mismatched audio. Apparently iPhones were designed to be phones not cameras&#8230;Weird, I know.

Walk-through from Austin Hallock on Vimeo.





		
			Tweet This!
		
		
			Share this on Facebook
		
		
			Email this to a friend?
		
		
			Subscribe to the comments for this post?
		
		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Post this to MySpace
		





]]></description>
			<content:encoded><![CDATA[<p>Ignore the bad quality and mismatched audio. Apparently iPhones were designed to be phones not cameras&#8230;Weird, I know.</p>
<p><object width="400" height="600"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9871143&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9871143&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="600"></embed></object>
<p><a href="http://vimeo.com/9871143">Walk-through</a> from <a href="http://vimeo.com/user3297257">Austin Hallock</a> on <a href="http://vimeo.com">Vimeo</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Some+updates+-+http://b2l.me/hvqtp+(via+@austinhallock)" 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://austinhallock.com/2010/03/02/some-updates/&amp;t=Some+updates" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Some%20updates%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Ignore%20the%20bad%20quality%20and%20mismatched%20audio.%20Apparently%20iPhones%20were%20designed%20to%20be%20phones%20not%20cameras...Weird%2C%20I%20know.%0D%0A%0D%0AWalk-through%20from%20Austin%20Hallock%20on%20Vimeo.%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/03/02/some-updates/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/03/02/some-updates/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/03/02/some-updates/&amp;title=Some+updates" 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://austinhallock.com/2010/03/02/some-updates/&amp;title=Some+updates" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/03/02/some-updates/&amp;title=Some+updates" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/03/02/some-updates/&amp;title=Some+updates" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/03/02/some-updates/&amp;t=Some+updates" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/ly6_vCIvi40" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/03/02/some-updates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/03/02/some-updates/</feedburner:origLink></item>
		<item>
		<title>Site Design: The Basics</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/v_UFQCVZ2Og/</link>
		<comments>http://austinhallock.com/2010/02/24/the-basics/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 02:02:29 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=193</guid>
		<description><![CDATA[So, to start, I&#8217;m going to say that this all might be confusing, if you need help with something, post it in the comments and I&#8217;ll get things worked out for you.
When coding, I don&#8217;t use tables or tags like &#60;font&#62; (which most people tend to use). Why? Because the code can get really jumbled [...]]]></description>
			<content:encoded><![CDATA[<p>So, to start, I&#8217;m going to say that this all might be confusing, if you need help with something, post it in the comments and I&#8217;ll get things worked out for you.</p>
<p>When coding, I don&#8217;t use tables or tags like &lt;font&gt; (which most people tend to use). Why? Because the code can get really jumbled with that (you should see some of the stuff I have to deal with working on ILoveHits).</p>
<p>Not only that, but all the &lt;font&gt;, border=&#8221;0&#8243;, a ton of stuff that can be done with CSS is considered deprecated.</p>
<p><strong>But most importantly</strong> in the new version of HTML (HTML5), the following WONT WORK:</p>
<p><img class="alignnone" title="Absent" src="http://www.austinhallock.com/ss/86a22781ced9a93a72f33b72129e724d.png" alt="" width="103" height="147" /></p>
<p>With that said, I generally use &lt;div&gt;&#8217;s, &lt;span&gt;&#8217;s, &lt;ul&gt;&#8217;s and &lt;p&gt;&#8217;s the most, and tack on a class=&#8221;whatever&#8221; so it looks like &lt;div class=&#8221;classname&#8221;&gt;Content&lt;/div&gt;</p>
<ul>
<li><a href="http://www.w3schools.com/tags/tag_DIV.asp">&lt;div&gt;</a>&#8217;s are essentially just blocks, or squares, in your webpage.</li>
<li><a href="http://www.w3schools.com/tags/tag_SPAN.asp">&lt;span&gt;</a>&#8217;s are kind of like &lt;div&gt;&#8217;s but they don&#8217;t cause a line break.</li>
<li><a href="http://www.w3schools.com/tags/tag_UL.asp">&lt;ul&gt;</a>&#8217;s are unordered list, so essentially, when used with &lt;li&gt;&#8217;s you can create bullets</li>
<li><a href="http://www.w3schools.com/tags/tag_P.asp">&lt;p&gt;</a>&#8217;s are a paragraph&#8230;basically like a &lt;div&gt; but it adds some margin to the top and bottom.
<p style="margin: 0px;">is the same as &lt;div&gt;</p>
</li>
</ul>
<p>You have a few options for CSS&#8230;One you can have an external .css file and link to it with:</p>
<pre class="brush: xml;">
&lt;link type='text/css' href='mycssfile.css' rel='Stylesheet' /&gt;
</pre>
<p>Or&#8230;You can have it internally in your .html file with:</p>
<pre class="brush: css;">
&lt;style type='text/css'&gt;
	CSS goes here
&lt;/style&gt;
</pre>
<p>And finally you can specify it for certain tags with style=&#8217;whatever&#8217; so:</p>
<pre class="brush: css;">
&lt;div style='font-size:10px;'&gt;&lt;/div&gt;
</pre>
<p>With the first two options, you can use 3 different things to change how your page looks.</p>
<p>The first is using the element type, so if I want all &lt;div&gt;&#8217;s to look the same way I would do:</p>
<pre class="brush: css;">
div
{
	font-size: 14px;
	background-color: #111111;
	color: #ffffff;
}
</pre>
<p>The second option is to style certain classes (where you define &lt;div class=&#8217;whatever&#8217;&gt; To do this, you put a period before the class name in the css:</p>
<pre class="brush: css;">
.whatever
{
	color: #333333;
}
</pre>
<p>Finally, you can style based on <strong>id</strong>&#8217;s. While classes can be used on multiple elements, id&#8217;s can only be used on 1 element. To style something like &lt;div id=&#8217;whatever&#8217;&gt; you would use a octothorpe (or for regular people, a pound sign):</p>
<pre class="brush: css;">
#whatever
{
	font-size: 30px;
}
</pre>
<p>You&#8217;ll notice I use stuff like <strong>#333333</strong> these are hex codes that represent specific colors, you&#8217;ve probably seen them before. To find which color is associate with which hex code, you can use a tool like <a href="http://trkr.me/34">this</a> (also, feel free to take a look at the source of that to get a further look at CSS and HTML).</p>
<p>Let&#8217;s start off with some of the more basic CSS uses. Since you wont be able to use &lt;font color=&#8217;green&#8217;&gt; in HTML5, you&#8217;ll have to use CSS like below.</p>
<p><strong>Fonts</strong></p>
<div style="padding-left: 30px;">
<p>Sure, Times New Roman does just fine for writing a letter, or paper, but when it comes to web design, 99% of the time you want to use a sans-serif font. What does sans-serif mean? Well, no serifs, hard for me to explain but <a href="http://en.wikipedia.org/wiki/Sans-serif" target="_blank">this link</a> should do the trick. The font faces I generally use are Helvetica Neue, Helvetica, Verdana, Lucida Grande and sometimes Arial.</p>
<p>So how do you change your font? That&#8217;s easy &#8230; This series involves the use of CSS, simply because it&#8217;s what&#8217;s considered valid rather than &lt;font _____&gt;Text&lt;/font&gt; (which is what most people tend to use). You can put it in any of the forms I have above.</p>
<p>CSS:</p>
<pre class="brush: css;">
font-family: 'Helvetica Neue', helvetica, verdana, arial;
</pre>
<p>The reason I have 4 listed, is if the person viewing your page doesn&#8217;t have the first font installed, it goes to the 2nd, then the 3rd etc.</p>
<p>As for font sizes and colors, you put those in the same way you do the font face/family. The code for these are:</p>
<pre class="brush: css;">
font-size: 14px;
</pre>
<p>and</p>
<pre class="brush: css;">
color: #111111;
</pre>
<p>To pick a color</p>
<p><strong>To summarize, what I would do for fonts is make a class by doing:</strong></p>
<pre class="brush: xml;">
&lt;style type='text/css'&gt;
.big_green_font
{
	font-size: 40px;
	font-color: green;
	font-family: helvetica, verdana, arial;
}
&lt;/style&gt;
</pre>
<p>Then, in my code I would use something like &lt;span class=&#8217;big_green_font&#8217;&gt;My text&lt;/span&gt; to have big, green font.</p>
</div>
<p><strong>Background Colors</strong></p>
<div style="padding-left: 30px;">Generally, you&#8217;ll want to associate a background color with a &gt;div&lt; (block/box) or &lt;p&gt;. To do this, you&#8217;ll use the CSS:</p>
<pre class="brush: css;">
background-color: #111111;
</pre>
<p>So create a class:</p>
<pre class="brush: xml;">
&lt;style type='text/css'&gt;
.black_box
{
	background-color: #000000;
	color: #ffffff;
	width: 500px;
	height: 200px;
}
&lt;/style&gt;
</pre>
<p>Then make your div: &lt;div class=&#8217;black_box&#8217;&gt;My content&lt;&gt;</p></div>
<p>With each post in this series I&#8217;ll get a bit more advanced, so keep checking back! The next post will probably deal with dimensions, padding and margins. Again, if you have any questions, post them below.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Site+Design%3A+The+Basics+-+http://b2l.me/hawqh+(via+@austinhallock)" 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://austinhallock.com/2010/02/24/the-basics/&amp;t=Site+Design%3A+The+Basics" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Site%20Design%3A%20The%20Basics%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22So%2C%20to%20start%2C%20I%27m%20going%20to%20say%20that%20this%20all%20might%20be%20confusing%2C%20if%20you%20need%20help%20with%20something%2C%20post%20it%20in%20the%20comments%20and%20I%27ll%20get%20things%20worked%20out%20for%20you.%0D%0A%0D%0AWhen%20coding%2C%20I%20don%27t%20use%20tables%20or%20tags%20like%20%26lt%3Bfont%26gt%3B%20%28which%20most%20people%20tend%20to%20use%29.%20Why%3F%20Because%20the%20code%20can%20get%20really%20jumbled%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/24/the-basics/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/24/the-basics/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/24/the-basics/&amp;title=Site+Design%3A+The+Basics" 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://austinhallock.com/2010/02/24/the-basics/&amp;title=Site+Design%3A+The+Basics" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/24/the-basics/&amp;title=Site+Design%3A+The+Basics" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/24/the-basics/&amp;title=Site+Design%3A+The+Basics" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/24/the-basics/&amp;t=Site+Design%3A+The+Basics" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/v_UFQCVZ2Og" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/24/the-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/24/the-basics/</feedburner:origLink></item>
		<item>
		<title>Lookin’ good – Intro</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/dxo9Zp-6UQs/</link>
		<comments>http://austinhallock.com/2010/02/20/lookin-good-intro/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 17:10:12 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=170</guid>
		<description><![CDATA[How to succeed in building a successful website&#8230;The most important part is the site design.
Well, that&#8217;s just my opinion &#8212; based on past experiences (and the reason Mike and I have launched successful sites). And this is coming from a programmer (though I dabble in design).
I&#8217;m going to be starting a series of blog posts [...]]]></description>
			<content:encoded><![CDATA[<p>How to succeed in building a successful website&#8230;The <strong>most important part</strong> is the <strong>site design</strong>.</p>
<p>Well, that&#8217;s just my opinion &#8212; based on past experiences (and the reason <a href="http://www.mikegartner.ca">Mike</a> and I have launched successful sites). And this is coming from a programmer (though I dabble in design).</p>
<p>I&#8217;m going to be starting a series of blog posts that will go into how to make your pages look better using CSS.</p>
<p>So&#8230;what&#8217;s good looking?</p>
<div style="padding: 15px 10px;width:200px;border: 2px solid #111111;font-size:30px;font-family:'Helvetica Neue', helvetica, verdana;background-color:#0A6CFF;color:#ffffff;font-weight:bold;-moz-box-shadow:0 0px 4px #444444;-webkit-box-shadow:0 0px 4px #444444;-moz-border-radius: 3px;-o-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;border-radius: 3px;">This is</div>
<table border='2' style='margin-top:10px;width:224px;font-size:30px;font-weight: bold;font-family:Times, serif;color:red;'>
<tr>
<td>This isn&#8217;t</td>
</table>
<p>Of course, you might already know that, so the next couple posts of mine will go into the various tips and tricks to making something look good! It&#8217;s not just the physical appearance that matters either, the transitions between pages, and effects you have on each page plays a big part as well.</p>
<p><a href='http://mikegartner.ca/secretproject/' target='_BLANK' rel='external'><img alt="" src="http://mikegartner.ca/images/x.gif" title="X" class="aligncenter" width="284" height="272" style='border: 6px solid #4E0D0D;'/></a></p>
<p>Let&#8217;s take a look at a splash page Mike Gartner just put out yesterday: <a href='http://mikegartner.ca/secretproject/' target='_BLANK' rel='external'>Secret X</a>. That page has only been rotating in Thumbvu, yet it&#8217;s gotten over 50 subscribers in 24 hours.</p>
<p>Why? It&#8217;s not because of the content, he doesn&#8217;t mention <em>anything</em> about what his secret project is &#8230; it&#8217;s due to how sexy the page looks. Sure it&#8217;s simple, but it stands out.</p>
<p>By the end of this series you&#8217;ll be able to make a page like that (and more) with ease.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Lookin%27+good+-+Intro+-+http://b2l.me/gwfmm+(via+@austinhallock)" 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://austinhallock.com/2010/02/20/lookin-good-intro/&amp;t=Lookin%27+good+-+Intro" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Lookin%27%20good%20-%20Intro%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22How%20to%20succeed%20in%20building%20a%20successful%20website...The%20most%20important%20part%20is%20the%20site%20design.%0D%0A%0D%0AWell%2C%20that%27s%20just%20my%20opinion%20--%20based%20on%20past%20experiences%20%28and%20the%20reason%20Mike%20and%20I%20have%20launched%20successful%20sites%29.%20And%20this%20is%20coming%20from%20a%20programmer%20%28though%20I%20dabble%20in%20design%29.%0D%0A%0D%0AI%27m%20going%20to%20be%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/20/lookin-good-intro/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/20/lookin-good-intro/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/20/lookin-good-intro/&amp;title=Lookin%27+good+-+Intro" 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://austinhallock.com/2010/02/20/lookin-good-intro/&amp;title=Lookin%27+good+-+Intro" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/20/lookin-good-intro/&amp;title=Lookin%27+good+-+Intro" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/20/lookin-good-intro/&amp;title=Lookin%27+good+-+Intro" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/20/lookin-good-intro/&amp;t=Lookin%27+good+-+Intro" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/dxo9Zp-6UQs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/20/lookin-good-intro/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/20/lookin-good-intro/</feedburner:origLink></item>
		<item>
		<title>Even Shorter URLs</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/ySRRmU0z_mM/</link>
		<comments>http://austinhallock.com/2010/02/17/even-shorter-urls/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 03:40:29 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[tracker]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=145</guid>
		<description><![CDATA[So, I went ahead and bought the domain trkr.com and put up the link shortening/cloaking script from this post.

I&#8217;ve noticed, no one is using the tracker script other than me, and I figured that might be because you have to upload the script and change permissions. That or I don&#8217;t have many readers  
So [...]]]></description>
			<content:encoded><![CDATA[<p>So, I went ahead and bought the domain trkr.com and put up the link shortening/cloaking script from <a href="http://trkr.me/9">this post</a>.</p>
<p><img src="http://www.austinhallock.com/ss/f4c912cadb84b178c495009e49ad98de.png" alt="Screenshot" /></p>
<p>I&#8217;ve noticed, no one is using the tracker script other than me, and I figured that might be because you have to upload the script and change permissions. That or I don&#8217;t have many readers <img src='http://austinhallock.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So if you&#8217;d like to use the URL trkr.com to shorten/cloak your links, you are welcome to! All you have to do is drag the link below into your bookmarks.</p>
<p><a href="javascript:var bkmlt_host='http%3A%2F%2Ftrkr.me%2F';var e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','http%3A%2F%2Fwww.austinhallock.com/shorturl.js');document.body.appendChild(e);void(0);" style='padding: 6px; background-color:#111111;color:#ffffff;float:left;-moz-border-radius: 8px;-o-border-radius: 8px;-webkit-border-radius: 8px;-khtml-border-radius: 8px;border-radius: 8px;border: 3px solid #aaaaaa;'>Shorten</a><br clear='all'/></p>
<p>Each time you want to shorten/cloak a page, just visit the page and click that bookmark. It&#8217;ll display the URL for you to use in the top right corner! The URL will look something like: <a href="http://trkr.me/9">http://trkr.me/9</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Even+Shorter+URLs+-+http://b2l.me/gnx52+(via+@austinhallock)" 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://austinhallock.com/2010/02/17/even-shorter-urls/&amp;t=Even+Shorter+URLs" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Even%20Shorter%20URLs%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22So%2C%20I%20went%20ahead%20and%20bought%20the%20domain%20trkr.com%20and%20put%20up%20the%20link%20shortening%2Fcloaking%20script%20from%20this%20post.%0D%0A%0D%0A%0D%0A%0D%0AI%27ve%20noticed%2C%20no%20one%20is%20using%20the%20tracker%20script%20other%20than%20me%2C%20and%20I%20figured%20that%20might%20be%20because%20you%20have%20to%20upload%20the%20script%20and%20change%20permissions.%20That%20or%20I%20don%27t%20have%20many%20re%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/17/even-shorter-urls/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/17/even-shorter-urls/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/17/even-shorter-urls/&amp;title=Even+Shorter+URLs" 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://austinhallock.com/2010/02/17/even-shorter-urls/&amp;title=Even+Shorter+URLs" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/17/even-shorter-urls/&amp;title=Even+Shorter+URLs" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/17/even-shorter-urls/&amp;title=Even+Shorter+URLs" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/17/even-shorter-urls/&amp;t=Even+Shorter+URLs" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/ySRRmU0z_mM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/17/even-shorter-urls/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/17/even-shorter-urls/</feedburner:origLink></item>
		<item>
		<title>A Simple “Tweet This” Form</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/srZLRCFWihE/</link>
		<comments>http://austinhallock.com/2010/02/17/a-simple-tweet-this/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 04:37:48 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=115</guid>
		<description><![CDATA[Want your readers/members to have the ability to retweet some of your content? It&#8217;s a great way to spread the word and has worked wonders for ThumbVu.
I&#8217;ve made it as EASY as possible for you to do this.
All you have to do is put the below code where you want the Tweet This box to [...]]]></description>
			<content:encoded><![CDATA[<p>Want your readers/members to have the ability to retweet some of your content? It&#8217;s a great way to spread the word and has worked wonders for ThumbVu.</p>
<p>I&#8217;ve made it as EASY as possible for you to do this.</p>
<p>All you have to do is put the below code where you want the Tweet This box to show, and that&#8217;s it! Of course, you&#8217;ll probably want to change the content of the tweet, so just change what&#8217;s in between the quotes after var tweet_content, so <em>var tweet_content = &#8220;Your content&#8221;;</em>. A couple rules for that, DO NOT start a new line, and if you put in quotes <strong>&#8220;</strong> put a backslash <strong>\</strong> before them. Also note that Twitter has a character limit of 140.</p>
<pre class="brush: jscript;">
&lt;script type='text/javascript'&gt;
var tweet_content = &quot;Want an easy way to add a \&quot;Tweet This\&quot; box to your site? http://austinhallock.com/short/16&quot;;
&lt;/script&gt;
&lt;div id='tweet_this' style='display:none;'&gt;&lt;/div&gt;
&lt;script type='text/javascript' src='http://www.austinhallock.com/tweet_this.js'&gt;&lt;/script&gt;
</pre>
<p>You can see an example of this below. (If you&#8217;re in an RSS reader, this probably won&#8217;t show, so <a href="http://austinhallock.com/short/17">click here</a> to see it.<br />
<script type='text/javascript'>
var tweet_content = "Want an easy way to add a \"Tweet This\" box to your site? http://austinhallock.com/short/17";
</script></p>
<div id='tweet_this' style='display:none;'></div>
<p><script type='text/javascript' src='http://www.austinhallock.com/tweet_this.js'></script></p>
<p>Pretty cool huh?</p>
<p>If you want a bit of customization, you can add the following after <em>var tweet_content = &#8216;whatever&#8217;;</em>. The first will change the background color of the box, the second will change the font color.</p>
<pre class="brush: jscript;">
var tweet_bgcolor = '111111';
var tweet_color = 'EEEEEE';
</pre>
<p>You can also allow the users to change what&#8217;s in their tweet by adding:</p>
<pre class="brush: jscript;">
var tweet_textarea = 'T';
</pre>
<p>As always, let me know what you think!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=A+Simple+%22Tweet+This%22+Form+-+http://b2l.me/gj2xt+(via+@austinhallock)" 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://austinhallock.com/2010/02/17/a-simple-tweet-this/&amp;t=A+Simple+%22Tweet+This%22+Form" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22A%20Simple%20%22Tweet%20This%22%20Form%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Want%20your%20readers%2Fmembers%20to%20have%20the%20ability%20to%20retweet%20some%20of%20your%20content%3F%20It%27s%20a%20great%20way%20to%20spread%20the%20word%20and%20has%20worked%20wonders%20for%20ThumbVu.%0D%0A%0D%0AI%27ve%20made%20it%20as%20EASY%20as%20possible%20for%20you%20to%20do%20this.%0D%0A%0D%0AAll%20you%20have%20to%20do%20is%20put%20the%20below%20code%20where%20you%20want%20the%20Tweet%20This%20box%20to%20show%2C%20and%20th%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/17/a-simple-tweet-this/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/17/a-simple-tweet-this/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/17/a-simple-tweet-this/&amp;title=A+Simple+%22Tweet+This%22+Form" 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://austinhallock.com/2010/02/17/a-simple-tweet-this/&amp;title=A+Simple+%22Tweet+This%22+Form" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/17/a-simple-tweet-this/&amp;title=A+Simple+%22Tweet+This%22+Form" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/17/a-simple-tweet-this/&amp;title=A+Simple+%22Tweet+This%22+Form" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/17/a-simple-tweet-this/&amp;t=A+Simple+%22Tweet+This%22+Form" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/srZLRCFWihE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/17/a-simple-tweet-this/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/17/a-simple-tweet-this/</feedburner:origLink></item>
		<item>
		<title>Custom shortened/cloaked URLs</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/zEKgAssehvc/</link>
		<comments>http://austinhallock.com/2010/02/13/custom-shortened-urls/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 00:38:44 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[traffic exchanges]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=98</guid>
		<description><![CDATA[
I&#8217;ve always just used bit.ly for my URL shortening and cloaking, but I figured it was time to create my own service for this.
Of course, with you all in mind, I made it where anyone can use it, and made it dead simple to install. Here&#8217;s what you do (There&#8217;s a video at the end [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://austinhallock.com/wp-content/uploads/yourdomain.gif" alt="OH SO TINY" title="yourdomain" width="571" height="77" class="aligncenter size-full wp-image-107" /></p>
<p>I&#8217;ve always just used bit.ly for my URL shortening and cloaking, but I figured it was time to create my own service for this.</p>
<p>Of course, with you all in mind, I made it where anyone can use it, and made it dead simple to install. Here&#8217;s what you do (There&#8217;s a video at the end of this post if you don&#8217;t like reading).</p>
<p>First, download the zip file below. It&#8217;s just a folder with one file: index.php. Unzip the folder, rename to whatever you want your URLs to look like and upload it to the main directory of your site. If you want your URL to show up as http://domain.com/likes/1234 then rename the folder to &#8220;likes&#8221;.</p>
<p><a href="http://www.austinhallock.com/short.zip">Click here to download</a></p>
<p>Make sure the folder has the permissions 777. You can see how to do this in the video below.</p>
<p>Visit this page (it&#8217;ll be http://www.YOURDOMAIN.com/FOLDERNAME/). It will give you a link that you need to drag into your bookmarks bar.</p>
<p>Every time you want to shorten a page, just click that bookmark and a window will show up giving you the shortened link.</p>
<p>Each time your link it clicked, that&#8217;s logged, so this also works as a tracker to see how many people are clicking your links!</p>
<p><a href="/vid.swf" target='_BLANK' rel='external'>Click here</a> to view a video on how the whole process works.</p>
<p>Let me know what you all think, and any suggestions for how I can improve this.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Custom+shortened%2Fcloaked+URLs+-+http://b2l.me/f7r3j+(via+@austinhallock)" 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://austinhallock.com/2010/02/13/custom-shortened-urls/&amp;t=Custom+shortened%2Fcloaked+URLs" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Custom%20shortened%2Fcloaked%20URLs%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22%0D%0A%0D%0AI%27ve%20always%20just%20used%20bit.ly%20for%20my%20URL%20shortening%20and%20cloaking%2C%20but%20I%20figured%20it%20was%20time%20to%20create%20my%20own%20service%20for%20this.%0D%0A%0D%0AOf%20course%2C%20with%20you%20all%20in%20mind%2C%20I%20made%20it%20where%20anyone%20can%20use%20it%2C%20and%20made%20it%20dead%20simple%20to%20install.%20Here%27s%20what%20you%20do%20%28There%27s%20a%20video%20at%20the%20end%20of%20this%20post%20if%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/13/custom-shortened-urls/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/13/custom-shortened-urls/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/13/custom-shortened-urls/&amp;title=Custom+shortened%2Fcloaked+URLs" 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://austinhallock.com/2010/02/13/custom-shortened-urls/&amp;title=Custom+shortened%2Fcloaked+URLs" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/13/custom-shortened-urls/&amp;title=Custom+shortened%2Fcloaked+URLs" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/13/custom-shortened-urls/&amp;title=Custom+shortened%2Fcloaked+URLs" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/13/custom-shortened-urls/&amp;t=Custom+shortened%2Fcloaked+URLs" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/zEKgAssehvc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/13/custom-shortened-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/13/custom-shortened-urls/</feedburner:origLink></item>
		<item>
		<title>Personalizing a page</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/ObWOu5ZvG2M/</link>
		<comments>http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 00:54:48 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[traffic exchanges]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=81</guid>
		<description><![CDATA[Personalizing pages I&#8217;ve found to be very powerful. &#8220;Hey Austin!&#8221; is more effective than &#8220;Hey You!&#8221;, I think it&#8217;s just because our name naturally stands out to us.

This can be really useful in emails you mail out to your list &#8230; you can have them click a link that brings up a page customized with [...]]]></description>
			<content:encoded><![CDATA[<p>Personalizing pages I&#8217;ve found to be very powerful. &#8220;Hey Austin!&#8221; is more effective than &#8220;Hey You!&#8221;, I think it&#8217;s just because our name naturally stands out to us.</p>
<p><a href="http://www.austinhallock.com/splash/austin"><img class="aligncenter" title="YO" src="http://www.austinhallock.com/ss/d2a3267f18c19351848233a5192a80a8.png" alt="mod_rewrite" width="483" height="64" /></a></p>
<p>This can be really useful in emails you mail out to your list &#8230; you can have them click a link that brings up a page customized with their name.</p>
<p>Here&#8217;s an example of what the code below will do for you (with my name in there): <a href="http://www.austinhallock.com/splash/austin">http://www.austinhallock.com/splash/austin</a></p>
<p>Problem is (well, I guess this is a good thing for you) no one really does it even though it&#8217;s dead simple.</p>
<p>First, name the page mypage<strong>.php</strong> rather than mypage<strong>.html</strong>.</p>
<p>Next, when you send out an email linking to your page (assuming you&#8217;re using some auto-responder), link to http://www.yoursite.com/mypage.php?name={!firstname} &#8212; where I have {!firstname} you would put whatever code your auto-responder uses for the name.</p>
<p>In your page where you want the name to show up put</p>
<pre class="brush: php;">
&lt;?php if(isset($_GET['name']) &amp;&amp; strlen($_GET['name']) &gt; 0) $name = ucfirst($_GET['name']); else $name = &quot;You&quot;; echo $name; ?&gt;
</pre>
<p>This will grab their name if it&#8217;s in the URL, capitalize the first letter of it (ie. austin turns to Austin) and output it. If their name isn&#8217;t in the URL, it will output &#8220;You&#8221; instead. If you want it to say something other than &#8220;You&#8221; just change what&#8217;s in the quotes there.</p>
<p>If you want it to show something other than &#8220;name&#8221; in the URL, for example you want it to look like: <strong>mypage.php?awesomeperson=austin</strong> just change all references of<em> &#8220;name&#8221;</em> in the above code to <em>&#8220;awesomeperson&#8221;</em>.</p>
<p>To get a bit advanced and <strong>have the URL look prettier</strong> like http://www.yoursite.com/mypage/austin you&#8217;ll want to edit the .htaccess file in the folder your file is in. If you already have a .htaccess file in that folder just open it up and edit it in whichever editor you use. Otherwise, create one &#8212; it&#8217;s just named .htaccess nothing else tacked on.</p>
<p>At the top of your .htaccess file you&#8217;ll need to put</p>
<pre class="brush: plain;">
RewriteEngine on
RewriteRule ^mypage(/|$)([^/\.]*)/?$ mypage.php?name=$2 [L]
</pre>
<p>Of course replacing <em>&#8220;mypage&#8221;</em> and <em>&#8220;mypage.php&#8221;</em> with the folder you want it to <em>appear</em> like it&#8217;s in, and the file name. </p>
<p>For example if you want <strong>yoursite.com/splash1.php?awesome=austin</strong> to show up as<strong><em> yoursite.com/splash/austin</em></strong>, you would change the first <em>&#8220;mypage&#8221; </em>to <em>&#8220;splash&#8221;</em>, <em>&#8220;mypage.php&#8221;</em> to <em>&#8220;splash1.php&#8221;</em> and <em>&#8220;name&#8221;</em> to <em>&#8220;awesome&#8221;</em>. You&#8217;d end up with something like this:</p>
<pre class="brush: plain;">
RewriteEngine on
RewriteRule ^splash(/|$)([^/\.]*)/?$ splash1.php?awesome=$2 [L]
</pre>
<p>Hope this helps, and as always if you have any questions post them in the comments!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Personalizing+a+page+-+http://b2l.me/fy2mt+(via+@austinhallock)" 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://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/&amp;t=Personalizing+a+page" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Personalizing%20a%20page%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Personalizing%20pages%20I%27ve%20found%20to%20be%20very%20powerful.%20%22Hey%20Austin%21%22%20is%20more%20effective%20than%20%22Hey%20You%21%22%2C%20I%20think%20it%27s%20just%20because%20our%20name%20naturally%20stands%20out%20to%20us.%0D%0A%0D%0A%0D%0A%0D%0AThis%20can%20be%20really%20useful%20in%20emails%20you%20mail%20out%20to%20your%20list%20...%20you%20can%20have%20them%20click%20a%20link%20that%20brings%20up%20a%20page%20customized%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/&amp;title=Personalizing+a+page" 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://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/&amp;title=Personalizing+a+page" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/&amp;title=Personalizing+a+page" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/&amp;title=Personalizing+a+page" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/&amp;t=Personalizing+a+page" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/ObWOu5ZvG2M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/10/putting-a-custom-name-in-a-page/</feedburner:origLink></item>
		<item>
		<title>Displaying an exchange’s name</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/dT5nK-FutOA/</link>
		<comments>http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 21:27:09 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[traffic exchanges]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=42</guid>
		<description><![CDATA[A great way to grab a surfer&#8217;s attention is to mention the exchange they&#8217;re surfing. Until now, there hasn&#8217;t really been an easy way for &#8220;Average Joe&#8221; to do this, so I went ahead and made some code that makes it easy for you.


The code below will determine the exchange a user is surfing, and [...]]]></description>
			<content:encoded><![CDATA[<p>A great way to grab a surfer&#8217;s attention is to <strong>mention the exchange they&#8217;re surfing</strong>. Until now, there hasn&#8217;t really been an easy way for &#8220;Average Joe&#8221; to do this, so I went ahead and made some code that makes it easy for you.</p>
<p><img alt="" src="http://www.austinhallock.com/ss/e4d0e8be34c3bea579d860f4dfe770d7.png" class="aligncenter" width="623" height="61" /><br />
<img alt="" src="http://www.austinhallock.com/ss/6c9f2623be0d2278e12723789c286be5.png" class="aligncenter" width="637" height="56" /></p>
<p>The code below will determine the exchange a user is surfing, and output the name of the exchange, as well as the logo&#8217;s color. About 25 of the top exchanges are listed, returning the proper name (ie. thumbvu returns <span style='color:#F7931E'>ThumbVu</span>) and color. If they&#8217;re just viewing the page not in an exchange, it will return nothing (so you would get something like &#8220;HEY SURFER&#8221;).</p>
<p>What you&#8217;ll need to do first, is when you create your splash page, instead of having the name be something like splash.<strong>html</strong>, name it splash.<strong>php</strong>.</p>
<p>Where you want to put the exchanges name, put:</p>
<pre class="brush: php;">
&lt;?php echo get_exchange(); ?&gt;
</pre>
<p>If you want the name to be all caps, put:</p>
<pre class="brush: php;">
&lt;?php echo strtoupper(get_exchange()); ?&gt;
</pre>
<p>Here&#8217;s the function (put this at the end of your .php file). All of the exchanges are on my end, so I can update for new exchanges, and it will automatically add them for you (speaking of which, if you&#8217;d like your exchange added, post a comment below).</p>
<pre class="brush: php;">
&lt;?php
function get_exchange()
{
	//Parse the referrer url
	$url = parse_url($_SERVER['HTTP_REFERER']);
	//Grab the host
	$host = $url['host'];
	//Grab the domain from that
	$domain = explode(&quot;.&quot;, $host);
	$domain = $domain[count($domain)-2];
	//Grab the stuff to return
	$contents = file_get_contents(&quot;http://www.austinhallock.com/exchanges.php?domain=$domain&quot;);
	return $contents;
}
?&gt;
</pre>
<p>If you want it all on your end so you can customize it a bit more, use the following function instead:</p>
<pre class="brush: php; collapse: true; light: false; toolbar: true;">
&lt;?php
function get_exchange()
{
	//Parse the referrer url
	$url = parse_url($_SERVER['HTTP_REFERER']);
	//Grab the host
	$host = $url['host'];
	//Grab the domain from that
	$domain = explode(&quot;.&quot;, $host);
	$domain = $domain[count($domain)-2];
	/* Show specific names for hosts
	 * (doing this for proper capitalization and coloring)
	 * To add custom ones, if the domain name is www.thumbvu.com
	 * Do:
	 * $exchanges['thumbvu']['name'] = &quot;ThumbVu&quot;;
	 * $exchanges['thumbvu']['color'] = &quot;#F7931E&quot;;
	 */
	$exchanges['thumbvu']['name'] = &quot;ThumbVu&quot;;
	$exchanges['thumbvu']['color'] = &quot;#F7931E&quot;;

	$exchanges['easyhits4u']['name'] = &quot;EasyHits4U&quot;;
	$exchanges['easyhits4u']['color'] = &quot;#EB8B00&quot;;

	$exchanges['startxchange']['name'] = &quot;StartXchange&quot;;
	$exchanges['startxchange']['color'] = &quot;#FF0000&quot;;

	$exchanges['traffic-splash']['name'] = &quot;Traffic Splash&quot;;
	$exchanges['traffic-splash']['color'] = &quot;#52D652&quot;;

	$exchanges['hit2hit']['name'] = &quot;Hit2Hit&quot;;
	$exchanges['hit2hit']['color'] = &quot;#FB874C&quot;;

	$exchanges['hitsboosterpro']['name'] = &quot;HBPro&quot;;
	$exchanges['hitsboosterpro']['color'] = &quot;#171442&quot;;

	$exchanges['hitsafari']['name'] = &quot;HitSafari&quot;;
	$exchanges['hitsafari']['color'] = &quot;#E96827&quot;;

	$exchanges['tezaktrafficpower']['name'] = &quot;TTP&quot;;
	$exchanges['tezaktrafficpower']['color'] = &quot;#CB0000&quot;;

	$exchanges['ilovehits']['name'] = &quot;ILoveHits&quot;;
	$exchanges['ilovehits']['color'] = &quot;#1668A4&quot;;

	$exchanges['trafficwitch']['name'] = &quot;Traffic Witch&quot;;
	$exchanges['trafficwitch']['color'] = &quot;#D87204&quot;;

	$exchanges['traffictaxis']['name'] = &quot;Traffic Taxis&quot;;
	$exchanges['traffictaxis']['color'] = &quot;#040404&quot;;

	$exchanges['soaring4traffic']['name'] = &quot;Soaring4Traffic&quot;;
	$exchanges['soaring4traffic']['color'] = &quot;#096FB1&quot;;

	$exchanges['trafficera']['name'] = &quot;Traffic Era&quot;;
	$exchanges['trafficera']['color'] = &quot;#84ADD9&quot;;

	$exchanges['high-hits']['name'] = &quot;High Hits&quot;;
	$exchanges['high-hits']['color'] = &quot;#FC9C21&quot;;

	$exchanges['blue-surf']['name'] = &quot;Blue-Surf&quot;;
	$exchanges['blue-surf']['color'] = &quot;#005A9D&quot;;

	$exchanges['majorleaguehits']['name'] = &quot;MLH&quot;;
	$exchanges['majorleaguehits']['color'] = &quot;#013B63&quot;;

	$exchanges['rainbow-traffic']['name'] = &quot;RainbowTraffic&quot;;
	$exchanges['rainbow-traffic']['color'] = &quot;#0092DF&quot;;

	$exchanges['dragonsurf']['name'] = &quot;DragonSurf&quot;;
	$exchanges['dragonsurf']['color'] = &quot;#1F4C23&quot;;

	$exchanges['trafficgoldrush']['name'] = &quot;Traffic Gold Rush&quot;;
	$exchanges['trafficgoldrush']['color'] = &quot;#B18B2A&quot;;

	$exchanges['realhitz4u']['name'] = &quot;RealHitz4u&quot;;
	$exchanges['realhitz4u']['color'] = &quot;#F69800&quot;;

	$exchanges['fasteasytraffic']['name'] = &quot;FastEasyTraffic&quot;;
	$exchanges['fasteasytraffic']['color'] = &quot;#F95307&quot;;

	$exchanges['swattraffic']['name'] = &quot;S.W.A.T.&quot;;
	$exchanges['swattraffic']['color'] = &quot;#00319C&quot;;

	if(!isset($exchanges[$domain]))
	{
		$exchanges[$domain]['name'] = $domain;
		$exchanges[$domain]['color'] = &quot;inherit&quot;;
	}

	return &quot;&lt;span style='color:{$exchanges[$domain]['color']};'&gt;{$exchanges[$domain]['name']}&lt;/span&gt;&quot;;
}
?&gt;
</pre>
<p>Below is the full code for this combined with yesterday&#8217;s post on creating a sexy splash page. You can see it in action <a href='http://austinhallock.com/test.php' target='_BLANK'>here</a> (though it won&#8217;t say the exchange name since you aren&#8217;t surfing).</p>
<pre class="brush: php; collapse: true; html-script: true; light: false; toolbar: true;">
&lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'&gt;
&lt;html xmlns='http://www.w3.org/1999/xhtml' &gt;
	&lt;head&gt;
		&lt;!-- TITLE OF YOUR PAGE --&gt;
		&lt;title&gt;
			YOUR PAGE TITLE
		&lt;/title&gt;
		&lt;!-- END TITLE --&gt;
		&lt;style type='text/css'&gt;
			body
			{
				/* The color you want the page background to be */
				background-color: #111111;
				font-family: 'Helvetica Neue', Helvetica, arial;
				font-weight: bold;
				padding: 0px;
				margin:0px;
			}
			#main
			{
				/* The color you want the box border to be */
				border: 4px solid #FFFFFF;
				/* The color you want the box background to be */
				background-color:#16DE1A;
				/* The color you want the box font to be */
				color: #111111;
				font-size: 28px;
				-moz-border-radius: 10px;
				-o-border-radius: 10px;
				-webkit-border-radius: 10px;
				-khtml-border-radius: 10px;
				border-radius: 10px;
				width: 700px;
				margin: 15px auto 0px auto;
				padding: 10px 20px;
				text-align: center;
			}
			.sub_text
			{
				font-size: 14px;
				font-weight: normal;
				width: 450px;
				margin: 10px auto 0px auto;
			}
			h2
			{
				font-size: 50px;
				/* The color you want the page heading font to be */
				color: #FFFFFF;
				text-shadow:0 2px 0 #111111;
				margin: 5px;
				text-align: center;
			}
			input
			{
				/* The color you want your input boxes to be */
				background-color: #FFFFFF;
				padding: 5px;
				/* The color you want the border of your input boxes to be */
				border: 2px solid #111111;
				font-weight: bold;
				-moz-border-radius: 4px;
				-o-border-radius: 4px;
				-webkit-border-radius: 4px;
				-khtml-border-radius: 4px;
			}
			input:hover
			{
				/* The color you want your input boxes to be when hovered */
				background-color: #C9F5C9;
			}
			input:focus
			{
				/* The color you want your input boxes to be when clicked */
				background-color: #93DB94;
			}
			input[type=submit]
			{
				cursor: pointer;
			}
			a
			{
				/* The color you want your links to be */
				color: #111111;
			}
		&lt;/style&gt;
		&lt;meta http-equiv='Content-Type' content='text/html;charset=utf-8' /&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id='main'&gt;
			&lt;h2&gt;
				&lt;!-- PAGE HEADER --&gt;
				HEY &lt;?php echo strtoupper(get_exchange()); ?&gt; SURFER
				&lt;!-- END PAGE HEADER --&gt;
			&lt;/h2&gt;
			&lt;!-- MAIN CONTENT --&gt;
			YOUR PAGE CONTENT HERE
			&lt;!-- END MAIN CONTENT --&gt;
			&lt;div class='sub_text'&gt;
				&lt;div style='float:left; width:50%;'&gt;
					&lt;!-- FORM DESCRIPTION --&gt;
					You can put a subscription form here.
					For this example, I'm using my blog's subscription form, feel free to subscribe!
					&lt;!-- END FORM DESCRIPTION --&gt;
				&lt;/div&gt;
				&lt;div style='float:right; margin-left: 2%; width:48%;'&gt;
					&lt;!-- FORM --&gt;
					&lt;form action='http://austinhallock.com/about/subscribe/' method='post'&gt;
						&lt;p style='margin-top: 5px;'&gt;&lt;input type='text' name='nn' value='Your name' onclick=&quot;if (this.defaultValue==this.value) this.value=''&quot; onblur=&quot;if (this.value=='') this.value=this.defaultValue&quot;/&gt;&lt;/p&gt;
						&lt;p&gt;&lt;input type='text' name='ne' value='Your email' onclick=&quot;if (this.defaultValue==this.value) this.value=''&quot; onblur=&quot;if (this.value=='') this.value=this.defaultValue&quot;/&gt;&lt;/p&gt;
						&lt;p&gt;&lt;input type='submit' value='Subscribe'/&gt;&lt;/p&gt;
						&lt;input type='hidden' name='na' value='s'/&gt;
					&lt;/form&gt;
					&lt;!-- END FORM --&gt;
				&lt;/div&gt;
				&lt;br clear='all'/&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;
&lt;?php
function get_exchange()
{
	//Parse the referrer url
	$url = parse_url($_SERVER['HTTP_REFERER']);
	//Grab the host
	$host = $url['host'];
	//Grab the domain from that
	$domain = explode(&quot;.&quot;, $host);
	$domain = $domain[count($domain)-2];
	//Grab the stuff to return
	$contents = file_get_contents(&quot;http://www.austinhallock.com/exchanges.php?domain=$domain&quot;);
	return $contents;
}
?&gt;
</pre>
<p>If you have any questions or comments, post them below!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Displaying+an+exchange%27s+name+-+http://b2l.me/ftb3r+(via+@austinhallock)" 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://austinhallock.com/2010/02/07/displaying-an-exchanges-name/&amp;t=Displaying+an+exchange%27s+name" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Displaying%20an%20exchange%27s%20name%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22A%20great%20way%20to%20grab%20a%20surfer%27s%20attention%20is%20to%20mention%20the%20exchange%20they%27re%20surfing.%20Until%20now%2C%20there%20hasn%27t%20really%20been%20an%20easy%20way%20for%20%22Average%20Joe%22%20to%20do%20this%2C%20so%20I%20went%20ahead%20and%20made%20some%20code%20that%20makes%20it%20easy%20for%20you.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AThe%20code%20below%20will%20determine%20the%20exchange%20a%20user%20is%20surfing%2C%20and%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/&amp;title=Displaying+an+exchange%27s+name" 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://austinhallock.com/2010/02/07/displaying-an-exchanges-name/&amp;title=Displaying+an+exchange%27s+name" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/&amp;title=Displaying+an+exchange%27s+name" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/&amp;title=Displaying+an+exchange%27s+name" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/&amp;t=Displaying+an+exchange%27s+name" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/dT5nK-FutOA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/07/displaying-an-exchanges-name/</feedburner:origLink></item>
		<item>
		<title>So you want a better splash page?</title>
		<link>http://feedproxy.google.com/~r/ProgrammingLifeAndMore/~3/_VuQZL7e0gI/</link>
		<comments>http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 21:48:59 +0000</pubDate>
		<dc:creator>Austin Hallock</dc:creator>
				<category><![CDATA[traffic exchanges]]></category>

		<guid isPermaLink="false">http://austinhallock.com/?p=22</guid>
		<description><![CDATA[If you&#8217;re advertising in traffic exchanges, you&#8217;re going to want an awesome splash page. You&#8217;ve got to realize your page will be viewed for a very short amount of time &#8230; Your goal is to grab the attention of the &#8217;surfer&#8217;, and you do this with a splash page.
That much you probably already know. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re advertising in traffic exchanges, you&#8217;re going to want an awesome splash page. You&#8217;ve got to realize your page will be viewed for a <strong>very</strong> short amount of time &#8230; Your goal is to grab the attention of the &#8217;surfer&#8217;, and you do this with a splash page.</p>
<p>That much you probably already know. It&#8217;s a matter of getting that sexy page to peak their interest.</p>
<p><a href="http://austinhallock.com/test.html"><img src="http://austinhallock.com/wp-content/uploads/Screen-shot-2010-02-06-at-3.52.27-PM-300x107.png" alt="" title="Screen shot 2010-02-06 at 3.52.27 PM" width="300" height="107" class="aligncenter size-medium wp-image-39" /></a></p>
<p>Here&#8217;s some code I generally base my splash pages off, feel free to use it yourself, and tweak for your own needs. In the coming weeks I&#8217;ll be posting on how to properly use HTML and CSS to spruce up your pages.</p>
<p>I commented (where you see &lt;!&#8211; &#8230; &#8211;&gt;) certain parts so you can see what text to add where. Additionally, I commented (/* &#8230; */) some of the CSS so you can change up the colors if you&#8217;d like! Colors can be put in like &#8220;red&#8221;, &#8220;yellow&#8221;, &#8220;green&#8221;, etc. (without the quotes), or you can you a hex code (usually I use the campaign adder at <a title="TVU" href="http://www.thumbvu.com/" target="_blank">ThumbVu</a> to get this code, if you&#8217;re not upgraded, you can use <a title="CP" href="http://www.colorpicker.com/" target="_blank">this</a>)</p>
<p>You can see an example of how the code below looks <a href='http://austinhallock.com/test.html' target='_BLANK'>here</a>. Click &#8220;show source&#8221; to view the actual HTML.</p>
<pre class="brush: xml; collapse: true; light: false; toolbar: true; wrap-lines: false;">
&lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'&gt;
&lt;html xmlns='http://www.w3.org/1999/xhtml' &gt;
	&lt;head&gt;
		&lt;!-- TITLE OF YOUR PAGE --&gt;
		&lt;title&gt;
			YOUR PAGE TITLE
		&lt;/title&gt;
		&lt;!-- END TITLE --&gt;
		&lt;style type='text/css'&gt;
			body
			{
				/* The color you want the page background to be */
				background-color: #111111;
				font-family: 'Helvetica Neue', Helvetica, arial;
				font-weight: bold;
				padding: 0px;
				margin:0px;
			}
			#main
			{
				/* The color you want the box border to be */
				border: 4px solid #FFFFFF;
				/* The color you want the box background to be */
				background-color:#16DE1A;
				/* The color you want the box font to be */
				color: #111111;
				font-size: 28px;
				-moz-border-radius: 10px;
				-o-border-radius: 10px;
				-webkit-border-radius: 10px;
				-khtml-border-radius: 10px;
				border-radius: 10px;
				width: 700px;
				margin: 15px auto 0px auto;
				padding: 10px 20px;
				text-align: center;
			}
			.sub_text
			{
				font-size: 14px;
				font-weight: normal;
				width: 450px;
				margin: 10px auto 0px auto;
			}
			h2
			{
				font-size: 50px;
				/* The color you want the page heading font to be */
				color: #FFFFFF;
				text-shadow:0 2px 0 #111111;
				margin: 5px;
				text-align: center;
			}
			input
			{
				/* The color you want your input boxes to be */
				background-color: #FFFFFF;
				padding: 5px;
				/* The color you want the border of your input boxes to be */
				border: 2px solid #111111;
				font-weight: bold;
				-moz-border-radius: 4px;
				-o-border-radius: 4px;
				-webkit-border-radius: 4px;
				-khtml-border-radius: 4px;
			}
			input:hover
			{
				/* The color you want your input boxes to be when hovered */
				background-color: #C9F5C9;
			}
			input:focus
			{
				/* The color you want your input boxes to be when clicked */
				background-color: #93DB94;
			}
			input[type=submit]
			{
				cursor: pointer;
			}
			a
			{
				/* The color you want your links to be */
				color: #111111;
			}
		&lt;/style&gt;
		&lt;meta http-equiv='Content-Type' content='text/html;charset=utf-8' /&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id='main'&gt;
			&lt;h2&gt;
				&lt;!-- PAGE HEADER --&gt;
				PAGE HEADER
				&lt;!-- END PAGE HEADER --&gt;
			&lt;/h2&gt;
			&lt;!-- MAIN CONTENT --&gt;
			YOUR PAGE CONTENT HERE
			&lt;!-- END MAIN CONTENT --&gt;
			&lt;div class='sub_text'&gt;
				&lt;div style='float:left; width:50%;'&gt;
					&lt;!-- FORM DESCRIPTION --&gt;
					You can put a subscription form here.
					For this example, I'm using my blog's subscription form, feel free to subscribe!
					&lt;!-- END FORM DESCRIPTION --&gt;
				&lt;/div&gt;
				&lt;div style='float:right; margin-left: 2%; width:48%;'&gt;
					&lt;!-- FORM --&gt;
					&lt;form action='http://austinhallock.com/about/subscribe/' method='post'&gt;
						&lt;p style='margin-top: 5px;'&gt;&lt;input type='text' name='nn' value='Your name' onclick=&quot;if (this.defaultValue==this.value) this.value=''&quot; onblur=&quot;if (this.value=='') this.value=this.defaultValue&quot;/&gt;&lt;/p&gt;
						&lt;p&gt;&lt;input type='text' name='ne' value='Your email' onclick=&quot;if (this.defaultValue==this.value) this.value=''&quot; onblur=&quot;if (this.value=='') this.value=this.defaultValue&quot;/&gt;&lt;/p&gt;
						&lt;p&gt;&lt;input type='submit' value='Subscribe'/&gt;&lt;/p&gt;
						&lt;input type='hidden' name='na' value='s'/&gt;
					&lt;/form&gt;
					&lt;!-- END FORM --&gt;
				&lt;/div&gt;
				&lt;br clear='all'/&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Just copy and paste that html, edit where it says to, and upload to your server.</p>
<p>If you have any questions, feel free to post them below!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=So+you+want+a+better+splash+page%3F+-+File: /home/vps_useracct/b2l.me/functions.php<br />Line: 66<br />Message: Duplicate entry 'fq379' for key 2+(via+@austinhallock)" 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://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/&amp;t=So+you+want+a+better+splash+page%3F" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22So%20you%20want%20a%20better%20splash%20page%3F%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22If%20you%27re%20advertising%20in%20traffic%20exchanges%2C%20you%27re%20going%20to%20want%20an%20awesome%20splash%20page.%20You%27ve%20got%20to%20realize%20your%20page%20will%20be%20viewed%20for%20a%20very%20short%20amount%20of%20time%20...%20Your%20goal%20is%20to%20grab%20the%20attention%20of%20the%20%27surfer%27%2C%20and%20you%20do%20this%20with%20a%20splash%20page.%0D%0A%0D%0AThat%20much%20you%20probably%20already%20know.%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/&amp;title=So+you+want+a+better+splash+page%3F" 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://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/&amp;title=So+you+want+a+better+splash+page%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/&amp;title=So+you+want+a+better+splash+page%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/&amp;title=So+you+want+a+better+splash+page%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/&amp;t=So+you+want+a+better+splash+page%3F" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<img src="http://feeds.feedburner.com/~r/ProgrammingLifeAndMore/~4/_VuQZL7e0gI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://austinhallock.com/2010/02/06/so-you-want-a-better-splash-page/</feedburner:origLink></item>
	</channel>
</rss>
