<?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>TLS Web Solutions &#187; XHTML</title> <atom:link href="http://www.tlswebsolutions.com/category/xhtml/feed/" rel="self" type="application/rss+xml" /><link>http://www.tlswebsolutions.com</link> <description></description> <lastBuildDate>Thu, 02 Jun 2011 20:41:14 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.3</generator> <item><title>HTML Elements Testing Template</title><link>http://www.tlswebsolutions.com/html-elements-testing-template/</link> <comments>http://www.tlswebsolutions.com/html-elements-testing-template/#comments</comments> <pubDate>Sat, 05 Feb 2011 02:55:30 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[HTML5]]></category> <category><![CDATA[Templates]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Typography]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[cross browser testing]]></category> <category><![CDATA[default form content]]></category> <category><![CDATA[development html]]></category> <category><![CDATA[editable html text]]></category> <category><![CDATA[html basic elements]]></category> <category><![CDATA[html demo page]]></category> <category><![CDATA[html elements]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[html5 boilerplate]]></category> <category><![CDATA[testing html]]></category> <category><![CDATA[xhtml basic elements]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=745</guid> <description><![CDATA[When you hand off a HTML template to a developer for integration into a content management system, is it ready for all the variable content HTML has to offer? There's one way to be sure templates are up to the snuff, and that's making sure you've tested as many basic HTML elements that can be fit into  editable content regions.]]></description> <content:encoded><![CDATA[<p><a href="http://www.tlswebsolutions.com/wp-content/uploads/2011/02/savetime.png"><img class="alignnone size-full wp-image-746" title="savetime" src="http://www.tlswebsolutions.com/wp-content/uploads/2011/02/savetime.png" alt="" width="636" height="97" /></a></p><h2>Testing HTML elements is a web designer must</h2><p>Let&#8217;s say you&#8217;ve got a brand new HTML template you&#8217;ve just chopped up from a Photoshop document. You&#8217;ve styled the body content&#8217;s footer, headers, paragraphs, and maybe some pseudo lipsum text that match the Photoshop document. But when you hand it off to a developer to integrate into a content management system, is it ready for all the variable content HTML has to offer?</p><p>There&#8217;s one way to be sure templates are up to the snuff, and that&#8217;s making sure you&#8217;ve tested as many basic HTML elements that can be fit into  editable content regions. <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> is a &#8220;professional badass&#8217;s base HTML/CSS/JS template for a fast, robust and future-proof site&#8221; and gives quite a few documents for HTML designers to work with when building templates.</p><p>One of the files HTML5 Boilerplate provides is a demo HTML page of various HTML elements including: form labels and inputs, paragraphs and headings, tables, strong and em, captions, lists, and much more.</p><p>I&#8217;ve stripped down the demo page HTML5 Boilerplate provides down to just the elements and none of the head, body, and other stuff. You can view the DEMO PAGE or download it below.<br /> <em>Be sure to leave the commented credit to HTML5 Boilerplate where credit is due.</em></p><h3><a href="http://www.tlswebsolutions.com/examples/html-elements/elements.html">VIEW THE ELEMENTS TESTING TEMPLATE (13kb)</a></h3><h3><a href="http://www.tlswebsolutions.com/downloads/html-elements-template">DOWNLOAD THE TEMPLATE (4kb)</a></h3><p><em>Downloaded 283 times.</em></p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/html-elements-testing-template/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Modernizr, how to detect HTML5 and NEWT with Javascript</title><link>http://www.tlswebsolutions.com/modernizr-how-to-detect-html5-and-newt-with-javascript/</link> <comments>http://www.tlswebsolutions.com/modernizr-how-to-detect-html5-and-newt-with-javascript/#comments</comments> <pubDate>Sat, 08 Jan 2011 19:18:06 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[HTML5]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[browser hacks]]></category> <category><![CDATA[cross-browser html5]]></category> <category><![CDATA[detecting html5]]></category> <category><![CDATA[dialog element]]></category> <category><![CDATA[header element]]></category> <category><![CDATA[how to detect html5]]></category> <category><![CDATA[html and javascript]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[html5 border radius]]></category> <category><![CDATA[ie if statement]]></category> <category><![CDATA[modernizr]]></category> <category><![CDATA[NEWT]]></category> <category><![CDATA[section element]]></category> <category><![CDATA[specific browser css]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=737</guid> <description><![CDATA[Original Site: http://www.modernizr.com/ Reblogged by Tim Selaty, Jan 8th, 2011 What is Modernizr? Modernizr adds classes to the [...]]]></description> <content:encoded><![CDATA[<pre>Original Site: <a href="http://www.modernizr.com/">http://www.modernizr.com/</a>
Reblogged by Tim Selaty, Jan 8th, 2011
</pre><h2>What is Modernizr?</h2><p><a href="http://www.modernizr.com/">Modernizr</a> adds classes to the <code>&lt;html&gt;</code> element which allow you to target specific browser functionality in your stylesheet. You don&#8217;t actually <em>need</em> to write any Javascript to use it.</p><p>Have you ever wanted to do if-statements in your CSS for the availability of cool features like <code>border-radius</code>? Well, with <strong>Modernizr</strong> you can accomplish just that! The syntax is very intuitive, too:</p><pre><strong>.multiplebgs</strong> div p {
  <em>/* properties for browsers that
     support multiple backgrounds */</em>
}
<strong>.no-multiplebgs</strong> div p {
  <em>/* optional fallback properties
     for browsers that don't */</em>
}</pre><p>Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.</p><p>Modernizr uses feature detection to test the current browser against upcoming features like rgba(), border-radius, CSS Transitions and many more. These are currently being implemented across browsers and with Modernizr you can start using them right now, with an easy way to control the fallbacks for browsers that don’t yet support them.</p><p>Additionally, Modernizr creates a self-titled global JavaScript object which contains properties for each feature; if a browser supports it, the property will evaluate <code>true</code> and if not, it will be <code>false</code>.</p><p>Lastly, Modernizr also adds support for styling and printing HTML5 elements. This allows you to use more semantic, forward-looking elements such as <code>&lt;section&gt;</code>, <code>&lt;header&gt;</code> and <code>&lt;dialog&gt;</code> without having to worry about them not working in Internet Explorer.</p><h2>What Modernizr <em>doesn&#8217;t</em> do</h2><p>Modernizr does <strong>not</strong> add missing functionality to browsers; instead, it detects native availability of features and offers you a way to maintain a fine level of control over your site regardless of a browser’s capabilities.</p><p>However if you&#8217;re interested in that, you&#8217;ll probably want to look here: <a href="http://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills">HTML5 Cross browser Polyfills</a>.</p><h2 id="who">Who uses Modernizr?</h2><p><a href="http://twitter.com">Twitter</a>,<br /> <a href="http://www.ae.com/">American Eagle</a>,<br /> <a href="http://www.bk.com/">Burger King</a>,<br /> <a href="http://www.theknot.com/">The Knot</a>,<br /> <a href="http://www.capitaloneventure.com/">Capital One</a>,<br /> <a href="https://posterous.com/">Posterous</a>,<br /> <a href="http://www.nfl.com/">NFL</a>,<br /> <a href="http://www.texas.gov/">The State of Texas</a>,</p><p><a href="http://good.is">Good Magazine</a>,<br /> <a href="http://ucsc.edu">UC Santa Cruz</a>,<br /> <a href="http://madebymany.com/">Made By Many</a>,<br /> <a href="http://hardboiledwebdesign.com/">Hardboiled Web Design</a>,<br /> <a href="http://lostworldsfairs.com/">Lost World’s Fairs</a>,<br /> <a href="http://clusterr.com/">Clusterr</a>,<br /> <a href="http://littleipsum.com/">LittleIpsum</a>,<br /> and<br /> <a href="http://strategy.co.nz/">Strategy Design &amp; Advertising</a></p><p>Find out more about <a href="http://www.modernizr.com/">Modernizr</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/modernizr-how-to-detect-html5-and-newt-with-javascript/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Google AJAX API and jQuery integration, bandwidth free!</title><link>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/</link> <comments>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/#comments</comments> <pubDate>Sat, 22 Aug 2009 19:45:29 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[Google]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[google ajax]]></category> <category><![CDATA[google ajax api]]></category> <category><![CDATA[google and jquery]]></category> <category><![CDATA[google api]]></category> <category><![CDATA[google.load()]]></category> <category><![CDATA[jquery bandwidth]]></category> <category><![CDATA[jquery integration]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=222</guid> <description><![CDATA[As we all know Google has released some pretty nifty things in the past. Today, we&#8217;re going to [...]]]></description> <content:encoded><![CDATA[<p>As we all know Google has released some pretty nifty things in the past. Today, we&#8217;re going to look at one of its most delightful additions for web developers. Google AJAX API.</p><h3>What is Google AJAX API?</h3><p>Google&#8217;s AJAX APIs let you implement rich, dynamic web sites entirely in JavaScript and HTML. You can add a map to your site, a dynamic search box, or download feeds with just a few lines of JavaScript.<span id="more-222"></span></p><p>In human terms, it loads common JavaScript frameworks such as MooTools, jQuery, Prototype, jQuery UI and of course even Google Maps without having to have the (.js) files on your server.</p><h3>That&#8217;s great, but what does that mean for me?</h3><p>Bandwidth, bandwidth, bandwidth, cache headers, and bandwidth.</p><p>Because jQuery, like images, must be downloaded onto the users computer before it can be used. If you have a slow server this can be a painful process especially if you use multiple JavaScript libraries.</p><p>Google is lightning fast, always. To have one, maybe two less items to download from your server not only saves bandwidth, but it saves you time. You don&#8217;t have to go to jQuery and download the latest version, upload it to your server, and type in the path to the (.js) file. You also don&#8217;t have to worry about having relative or absolute URLs due because of pretty URLs (seo friendly URLs).</p><p>You just add a two lines of code to the head of your template, sometimes even one, and you&#8217;re done. Google automatically sends a request to their server to download all of the JavaScript you&#8217;re requesting, cache the headers, and return it back to you.</p><p>Even better yet, the code is cleaner. You only need one line of code to load in multiple JavaScript libraries instead of your usual 3-5 lines of code.</p><h3>Enough already, just show me how</h3><p>Glad you asked. Below is the example XHTML page used to load in jQuery and execute a test function to ensure that it works.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">src</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;http://www.google.com/jsapi&quot;</span>&gt;&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>$(document).ready(function(){$(&quot;.expanded&quot;).hide();$(&quot;a&quot;).click(function(){$(&quot;.expanded&quot;).fadeIn(600);});})<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">p</span> <span style="color: #000066;color: #FF0000;">class</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;expanded&quot;</span>&gt;</span>Who uses paragraphs anymore?<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">a</span> <span style="color: #000066;color: #FF0000;">href</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;#&quot;</span>&gt;</span>Expand!?<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">a</span>&gt;</span></pre></div></div><p>Now, we&#8217;ve loaded in jQuery and are able to get cracking away. However, what if we want to add more than one library? Simple. All we do is add another instance of google.load();. Below is an example with both jQuery and jQuery UI.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>
google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);
google.load(&quot;jqueryui&quot;, &quot;1.7.2&quot;);
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div><p>Want to use the latest version of jQuery so you never have to update the code to match the latest version? No problem use this instead.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>google.load(&quot;jquery&quot;, &quot;1.3&quot;);<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div><p>What this says is: &#8220;Find the latest stable release that starts with 1.3.x&#8221;. In our case it automatically found v1.3.2.</p><p>Pretty nifty eh? What&#8217;s even better is that jQuery THEMSELVES are using Google&#8217;s server to call their own JavaScript library. If you view the source code of http://www.jquery.com/ you&#8217;ll see on Line 9 the following code.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">src</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div><p>This is also another way of calling jQuery from Google&#8217;s servers.</p><p>That&#8217;s it! Enjoy one less heavy server request.</p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>BlueEarth 001 Free XHTML / CSS Template</title><link>http://www.tlswebsolutions.com/blueearth-001/</link> <comments>http://www.tlswebsolutions.com/blueearth-001/#comments</comments> <pubDate>Mon, 10 Aug 2009 10:36:32 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[Templates]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[blue]]></category> <category><![CDATA[blue earth]]></category> <category><![CDATA[blueearth]]></category> <category><![CDATA[css]]></category> <category><![CDATA[fixed]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[light]]></category> <category><![CDATA[silver]]></category> <category><![CDATA[slider]]></category> <category><![CDATA[two column]]></category> <category><![CDATA[XHTML / CSS]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=182</guid> <description><![CDATA[BlueEarth is a XHTML / CSS template that utilizes various JavaScript effects using the jQuery framework. The template [...]]]></description> <content:encoded><![CDATA[<p><strong>BlueEarth is a XHTML / CSS template that utilizes various JavaScript effects using the jQuery framework.</strong></p><p style="text-align: center;"><img class="aligncenter" src="http://www.tlswebsolutions.com/stream/001/001-big.jpg" alt="BlueEarth 001 Large Preview" /></p><p>The template is tailored towards a company providing a service such as hosting. The logo is raw text inside of an H1 tag and can be changed. The layout uses a fixed width of 950px, but the design can be adapted to any fixed width size. It was created to be fluid, however, the coda slider doesn&#8217;t support a CSS width percentage.</p><p>The theme comes with 2 HTML files</p><ul><li> index.html</li><li> examples.html</li></ul><p>The index.html is the screenshot you see above, while examples.html has numerous predefined styles showcased. The predefined styles range from alerts, dialogs, lists, and emphasis blocks.</p><p><strong>Other features:</strong></p><ul><li> To navigation list items have example background (aka, perfect rounded corners no matter how big)</li><li> Rounded outer container (adjusts to users width preference)</li><li> Text-based logo and slogan</li><li> jQuery Coda Slider (click Solution by industry for example)</li><li>Valid XHTML 1.0 Strict</li><li> Valid CSS 2.1</li><li> Works in every major browser (Firefox 2+3,  IE 7, 8, Safari, Opera, Chrome)</li></ul><p><span class="download"><a href="http://www.tlswebsolutions.com/downloads/blue-earth-001">Download BlueEarth 001 Free XHTML / CSS Template</a> <br />Downloaded 534 times.</span></p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/blueearth-001/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Favicon &#8211; Do It Yourself, The Right Way</title><link>http://www.tlswebsolutions.com/favicon-do-it-yourself-the-right-way/</link> <comments>http://www.tlswebsolutions.com/favicon-do-it-yourself-the-right-way/#comments</comments> <pubDate>Mon, 06 Jul 2009 01:41:36 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[Miscellaneous]]></category> <category><![CDATA[Photoshop]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[16x16]]></category> <category><![CDATA[browser icon]]></category> <category><![CDATA[favicon]]></category> <category><![CDATA[favorite icon]]></category> <category><![CDATA[tutorial]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=98</guid> <description><![CDATA[Don&#8217;t you love it when you&#8217;re browsing the internet and all of a sudden you come across the [...]]]></description> <content:encoded><![CDATA[<p>Don&#8217;t you love it when you&#8217;re browsing the internet and all of a sudden you come across the most slick website imaginable&#8230; and the one thing that stands out above everything is a kickass favicon?</p><p>What&#8217;s a favicon you ask? Click the <strong>&#8220;Faviwhat?&#8221;</strong> tab below.</p><div id="tabs"><ul><li><a href="#tabs-1">Creating the Favicon</a></li><li><a href="#tabs-2">Show it off!</a></li><li><a href="#tabs-3">Faviwhat?</a></li></ul><div id="tabs-1"><h2>The creation:</h2><p>You have a snazzy logo and want the icon next to the URL bar to match it. How you ask? Sit back, read, enjoy the ride. Oh, and I&#8217;ll throw in a couple snapshots too.</p><p>In this example, I&#8217;ll be using a quickly created logo for demonstrative purposes.</p><p class="aligncenter"><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/nukleeur.png" alt="nukleeur" title="nukleeur" width="250" height="50" class="no-border" /></p><p>Open the image in Photoshop and select the crop tool.</p><p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop1.png" alt="crop1" title="crop1" width="190" height="180" class="aligncenter size-full wp-image-115" /></p><p>Then, type &#8220;16px&#8221; in both the height and width fields in the top part of the screen. This will allow whatever you select with the crop tool in the next step, to automatically be adjusted and resized to 16&#215;16. The reason why it&#8217;s 16&#215;16 is because that is the standard Favicon size most widely accepted by all browsers.</p><p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop2.png" alt="crop2" title="crop2" width="483" height="157" class="aligncenter size-full wp-image-117" /></p><p>Select the following area, this EXACT area will be your favicon upon accepting the changes.<br /> <strong>Note:</strong> Make sure that at the top of your screen you have the &#8216;delete&#8217; radio button clicked, and that after selecting the area you click the &#8216;Approve&#8217; check mark on the top right part of Photoshop.</p><p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop3.png" alt="crop3" title="crop3" width="309" height="87" class="aligncenter size-full wp-image-118" /></p><p>Now, export it into a web readable format. This is the important part. All favicon&#8217;s use a bit depth of 32 colors. Aka, if your cropped image has 60 colors, it&#8217;ll actually REMOVE any of those extra colors creating an undesirable effect. Let&#8217;s use a promised result by first clicking &#8220;Save for Web and Devices&#8221; or ALT+CTR+SHIFT+S for short.</p><p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop4.png" alt="crop4" title="crop4" width="370" height="566" class="aligncenter size-full wp-image-122" /></p><p>Now, use the following settings and save the file as &#8220;favicon.gif&#8221;. After you have it saved, rename it to &#8220;favicon.ico&#8221; and that&#8217;s it! You officially created your own favicon using Photoshop from a logo. Not so bad, is it? What do you do with it you ask? Click the <strong>&#8220;Show it off!&#8221;</strong> tab above to see and grab the snippets of code that make this shining piece of work display next to the site&#8217;s URL.</p></div><div id="tabs-2"><h2>The snippet, the problem, and the solution</h2><p>So, we&#8217;ve got the icon, but what do we do with it? We insert it into the header of our HTML page.</p><p>First, using your favorite FTP Client (we recommend <a href="http://filezilla-project.org/" title="FileZilla Project">FileZilla</a>) to upload the favicon to the ROOT of your site. Generally, this is the same place as your index.html is stored.</p><p>After the icon has been uploaded, we can now tell the webpage that when loaded, to look for this icon and display it in the browser. To do this, we need a snippet of code.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">link</span> <span style="color: #000066;color: #FF0000;">rel</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;shortcut icon&quot;</span> <span style="color: #000066;color: #FF0000;">href</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;/favicon.ico&quot;</span> <span style="color: #66cc66;color: #000080;">/</span>&gt;</span></pre></td></tr></table></div><p>What this does is allows the browser to say &#8220;Find this particular file starting at the root of the site, check its bit depth&#8230; and if all is well.. set this image to be the shortcut and default URL icon for the site&#8221;.</p><p>Add the snippet above inside the HEAD tag and your site will now use the Favorite Icon (Favicon).</p><h3>I did all that, why is it not showing?</h3><p>One answer. Cache.</p><p>Most browsers (like FireFox) stores a website&#8217;s data, icons, etc in a caching system. When revisiting that site during the current session state it will try to use as many previous resources as possible. This includes CSS, JavaScript.. and as you guessed it.. images. Since your Favicon is indeed an image and your site didn&#8217;t have an image about ten minutes ago, it used a blank clear one instead and stored it for later use.</p><p>In order to see the updated version go to &#8220;Tools -> Clear Private Data&#8221; and ONLY check the &#8220;Cache&#8221; and &#8220;Offline Website Data&#8221; checkboxes. Then clear it and close FireFox. If it asks you to restore your previous session, start a new one.</p><p><em>Viola!</em></p><p>Enjoy adding that final touch to your already amazing website.</p><p><span class="validatedMsg"><a href="/examples/favicon-example.zip">&rarr; Download Source / Examples &larr;</a></span></p><p>Source ZIP Includes:</p><ul><li>Nukleeur Logo</li><li>Favicon</li><li>HTML file with Favicon Snippet</li></ul></div><div id="tabs-3"><h2>What exactly is a Favicon and why don&#8217;t I have one already?</h2><p>Favicon stands for &#8220;Favorites Icon&#8221;. It&#8217;s the little icon beside your site&#8217;s name in the favorites list, before the URL in the address bar, as a bookmarked website on the desktop, in the &#8220;Links&#8221; bar and on the windows taskbar.</p><p>If you don&#8217;t have one, this is because you have not specified in the HEAD element of your HTML pages to look for a favicon.</p><p>Still scratching at your head?</p><p>Here is Google&#8217;s favicon.</p><p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop5.png" alt="crop5" title="crop5" width="300" height="86" class="aligncenter size-full wp-image-126" /></p></div></div><p><script type="text/javascript">$(function(){$('#tabs').tabs();});</script></p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/favicon-do-it-yourself-the-right-way/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Search Input Form Forecast &#8211; Blurry With A Chance of Rain</title><link>http://www.tlswebsolutions.com/search-input-form-forecast-blurry-with-a-chance-of-rain/</link> <comments>http://www.tlswebsolutions.com/search-input-form-forecast-blurry-with-a-chance-of-rain/#comments</comments> <pubDate>Sun, 05 Jul 2009 23:39:55 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[XHTML]]></category> <category><![CDATA[code snippet]]></category> <category><![CDATA[elements]]></category> <category><![CDATA[form]]></category> <category><![CDATA[html]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[onblur]]></category> <category><![CDATA[onfocus]]></category> <category><![CDATA[search box]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=79</guid> <description><![CDATA[For the longest time, I&#8217;ve always had to search far and wide for a single small snippet of [...]]]></description> <content:encoded><![CDATA[<p>For the longest time, I&#8217;ve always had to search far and wide for a single small snippet of code that allows the following in a text input box:</p><ul><li>Default text that is displayed</li><li>When the user clicks in the text box, the text is cleared out only leave the precursor</li><li>If the user does not type anything and clicks away, it resets back to the default value</li></ul><p>This technique uses two simple html attributes. &#8216;onblur&#8217; and &#8216;onfocus&#8217;. This is most commonly associated with a search box and adds that final spice to a website. Here is the code, free of charge.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">form</span> <span style="color: #000066;color: #FF0000;">method</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;post&quot;</span> <span style="color: #000066;color: #FF0000;">id</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;searchform&quot;</span> <span style="color: #000066;color: #FF0000;">action</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;/&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">fieldset</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">label</span>&gt;</span>Search:<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">input</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text&quot;</span> <span style="color: #000066;color: #FF0000;">onblur</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;if (this.value == '') {this.value = 'Search...';}&quot;</span> </span>
<span style="color: #009900;"><span style="color: #000066;color: #FF0000;">onfocus</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;if (this.value == 'Search...') {this.value = '';}&quot;</span> </span>
<span style="color: #009900;"><span style="color: #000066;color: #FF0000;">value</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;Search...&quot;</span> <span style="color: #000066;color: #FF0000;">name</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;s&quot;</span> <span style="color: #66cc66;color: #000080;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">fieldset</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">form</span>&gt;</span></pre></td></tr></table></div><p>So what exactly IS onblur and onfocus? Javascript, default browser actions, and some super cool tricks. Let me explain&#8230;</p><p>The definition of &#8220;onblur&#8221; is <em>&#8220;The onblur event occurs when an object loses focus&#8221;</em>. An object is focused when you have it selected. For example, on the right hand of the screen near the top is our search box. If you click INSIDE of that box, your cursor is now placed inside and will have SELECTED that box. Upon SELECTING that box, it will activate the opposite of &#8220;onblur&#8221; which is &#8220;onfocus&#8221;. The event that is fired off when clicking or &#8220;focusing&#8221; in an object on the page is called &#8220;onfocus&#8221; and when clicking on any other object, which will deselect the currently selected object in favor for another is called &#8220;onblur&#8221;. Just think of a microscope zooming in and out of a 3-D page.</p><p>&#8220;I get how and why, but why is there a &lt;fieldset&gt; and &lt;label&gt; in there&#8221; you say? It&#8217;s for XHTML validation purposes. Always remember to have a Label for a form, and to wrap it in a fieldset if there are multiple forms on a page for maximum compatibility for different browsers and mobile devices.</p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/search-input-form-forecast-blurry-with-a-chance-of-rain/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic

Served from: www.tlswebsolutions.com @ 2012-02-06 02:37:25 -->
