<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - localhorst</title>
<link>http://snipplr.com/users/localhorst</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 14:18:23 GMT</pubDate>
<item>
<title>(JavaScript) html5 / jQuery innerHTML fix for IE</title>
<link>http://snipplr.com/view/47876/html5--jquery-innerhtml-fix-for-ie/</link>
<description><![CDATA[ <p>If you try to access innerHTML of HTML5 elements like  or  or even just the #foo id then IE returns nothing
innerShiv solves this.</p> ]]></description>
<pubDate>Wed, 26 Jan 2011 06:26:17 GMT</pubDate>
<guid>http://snipplr.com/view/47876/html5--jquery-innerhtml-fix-for-ie/</guid>
</item>
<item>
<title>(jQuery) style/customize fileupload field hack</title>
<link>http://snipplr.com/view/17071/stylecustomize-fileupload-field-hack/</link>
<description><![CDATA[ <p>little enhancement of the jquery verion of this:
http://www.quirksmode.org/dom/inputfile.html</p> ]]></description>
<pubDate>Thu, 16 Jul 2009 11:06:07 GMT</pubDate>
<guid>http://snipplr.com/view/17071/stylecustomize-fileupload-field-hack/</guid>
</item>
<item>
<title>(jQuery) Switch label class for checkbox</title>
<link>http://snipplr.com/view/16020/switch-label-class-for-checkbox/</link>
<description><![CDATA[ <p>ändern der Klasse bei checkbox aktion</p> ]]></description>
<pubDate>Wed, 17 Jun 2009 10:03:28 GMT</pubDate>
<guid>http://snipplr.com/view/16020/switch-label-class-for-checkbox/</guid>
</item>
<item>
<title>(jQuery) jquery fadeToggle</title>
<link>http://snipplr.com/view/16015/jquery-fadetoggle/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 17 Jun 2009 06:10:31 GMT</pubDate>
<guid>http://snipplr.com/view/16015/jquery-fadetoggle/</guid>
</item>
<item>
<title>(PHP) Create short IDs with PHP - Like Youtube or TinyURL</title>
<link>http://snipplr.com/view/15887/create-short-ids-with-php--like-youtube-or-tinyurl/</link>
<description><![CDATA[ <p>Example

Running:

alphaID(9007199254740989);

will return 'PpQXn7COf' and:

alphaID('PpQXn7COf', true);

will return '9007199254740989'

Easy right?</p> ]]></description>
<pubDate>Sat, 13 Jun 2009 01:17:09 GMT</pubDate>
<guid>http://snipplr.com/view/15887/create-short-ids-with-php--like-youtube-or-tinyurl/</guid>
</item>
<item>
<title>(CSS) safari double cellspacings when  is used.</title>
<link>http://snipplr.com/view/14762/safari-double-cellspacings-when--is-used/</link>
<description><![CDATA[ <p>this is a lazy fix for a problem I came across.
safari doubles the border spacing to divide table cells when using tbody
( I cant use borders+collapse, because of rounded tablecells :( )

![doublespace](http://img24.imageshack.us/img24/7837/doublespacing.jpg)</p> ]]></description>
<pubDate>Wed, 06 May 2009 07:16:33 GMT</pubDate>
<guid>http://snipplr.com/view/14762/safari-double-cellspacings-when--is-used/</guid>
</item>
<item>
<title>(CSS) IE  fix for ugly padding on left and right of submit buttons</title>
<link>http://snipplr.com/view/13430/ie--fix-for-ugly-padding-on-left-and-right-of-submit-buttons/</link>
<description><![CDATA[ <p>To remove that ugly added padding from submit buttons try this
width:auto !important; seems to work for IE7</p> ]]></description>
<pubDate>Wed, 25 Mar 2009 08:56:16 GMT</pubDate>
<guid>http://snipplr.com/view/13430/ie--fix-for-ugly-padding-on-left-and-right-of-submit-buttons/</guid>
</item>
<item>
<title>(JavaScript) deprecated jQuery browser detection</title>
<link>http://snipplr.com/view/13416/deprecated-jquery-browser-detection/</link>
<description><![CDATA[ <p>bring back the old browser detection</p> ]]></description>
<pubDate>Tue, 24 Mar 2009 17:11:55 GMT</pubDate>
<guid>http://snipplr.com/view/13416/deprecated-jquery-browser-detection/</guid>
</item>
<item>
<title>(JavaScript) No more IE6 background flicker</title>
<link>http://snipplr.com/view/12831/no-more-ie6-background-flicker/</link>
<description><![CDATA[ <p>dynamic background images flickers in IE6
***
more ressources:
[here](http://misterpixel.blogspot.com/2006/09/forensic-analysis-of-ie6.html)
and [here](http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B823727) and 
[here](http://ajaxian.com/archives/no-more-ie6-background-flicker)</p> ]]></description>
<pubDate>Thu, 05 Mar 2009 15:09:19 GMT</pubDate>
<guid>http://snipplr.com/view/12831/no-more-ie6-background-flicker/</guid>
</item>
<item>
<title>(PHP) compress CSS files using PHP</title>
<link>http://snipplr.com/view/12666/compress-css-files-using-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 28 Feb 2009 12:01:50 GMT</pubDate>
<guid>http://snipplr.com/view/12666/compress-css-files-using-php/</guid>
</item>
<item>
<title>(CSS) CSS Media Targeted JavaScript</title>
<link>http://snipplr.com/view/12429/css-media-targeted-javascript/</link>
<description><![CDATA[ <p>With the ever increasing use of alternate media types I feel there is a need to deliver JavaScript targeted to these types of devices. This would allow alternate and modified content, as well as a customized user experience through the use of modern AJAX techniques.

My goal with this technique is to use CSS to be instructed as to what type of media device is being used, and deliver that information onto the JavaScript which could then in turn run CSS media targeted code. To accomplish this, we will use a div set to display:none with an id of "mediaInspector", to hold a "variable" passed from CSS to JavaScript:</p> ]]></description>
<pubDate>Sat, 21 Feb 2009 02:23:16 GMT</pubDate>
<guid>http://snipplr.com/view/12429/css-media-targeted-javascript/</guid>
</item>
<item>
<title>(JavaScript) generating color gradient in JS</title>
<link>http://snipplr.com/view/11109/generating-color-gradient-in-js/</link>
<description><![CDATA[ <p>see website for all information about that.
some more theory:
[color-scaling-function](http://stackoverflow.com/questions/168838/color-scaling-function)
[generate-color-for-a-power-meter-red-to-green](http://stackoverflow.com/questions/340209/generate-color-for-a-power-meter-red-to-green)</p> ]]></description>
<pubDate>Tue, 13 Jan 2009 03:21:16 GMT</pubDate>
<guid>http://snipplr.com/view/11109/generating-color-gradient-in-js/</guid>
</item>
<item>
<title>(JavaScript) [mootools] remove onfocus dotted outline from clicked link images</title>
<link>http://snipplr.com/view/10547/mootools-remove-onfocus-dotted-outline-from-clicked-link-images/</link>
<description><![CDATA[ <p>simple if your client wish to remove the dotted outline from images if they are clicked (and if they are links).</p> ]]></description>
<pubDate>Wed, 17 Dec 2008 04:11:54 GMT</pubDate>
<guid>http://snipplr.com/view/10547/mootools-remove-onfocus-dotted-outline-from-clicked-link-images/</guid>
</item>
<item>
<title>(PHP) Array Pagination</title>
<link>http://snipplr.com/view/9531/array-pagination/</link>
<description><![CDATA[ <p>very easy to use pagination class, see website for comments</p> ]]></description>
<pubDate>Thu, 06 Nov 2008 08:54:35 GMT</pubDate>
<guid>http://snipplr.com/view/9531/array-pagination/</guid>
</item>
<item>
<title>(PHP) phpwcms article replacement tags</title>
<link>http://snipplr.com/view/8988/phpwcms-article-replacement-tags/</link>
<description><![CDATA[ <p>{ARTICLE_TITLE} {ARTICLE_ID} {ARTICLE_ALIAS}
{TOPLEVEL}
{PAGETITLE} = {CATEGORY} (since v1.3.5 )
{CATEGORY_ID} {CATEGORY_ALIAS}

Filename: rt_cat_article_id.php
Folder: /template/inc_script/frontend_render/
Switch: $phpwcms['allow_ext_render'] = 1; (/config/phpwcms/conf.inc.php)</p> ]]></description>
<pubDate>Tue, 14 Oct 2008 03:19:33 GMT</pubDate>
<guid>http://snipplr.com/view/8988/phpwcms-article-replacement-tags/</guid>
</item>
<item>
<title>(CSS) Force Specific Content to Print in Landscape Orientation</title>
<link>http://snipplr.com/view/7127/force-specific-content-to-print-in-landscape-orientation/</link>
<description><![CDATA[ <p>This handy trick works in IE5.5/Win and newer. It assumes that the default printer orientation is portrait.</p> ]]></description>
<pubDate>Fri, 04 Jul 2008 12:06:48 GMT</pubDate>
<guid>http://snipplr.com/view/7127/force-specific-content-to-print-in-landscape-orientation/</guid>
</item>
<item>
<title>(HTML) disable  select or option in IE</title>
<link>http://snipplr.com/view/6262/disable--select-or-option-in-ie/</link>
<description><![CDATA[ <p>IE can't handle [ option disabled="disabled" ] tags, so this htc will help</p> ]]></description>
<pubDate>Fri, 16 May 2008 07:51:53 GMT</pubDate>
<guid>http://snipplr.com/view/6262/disable--select-or-option-in-ie/</guid>
</item>
<item>
<title>(PHP) Modify HTTP Headers (Examples)</title>
<link>http://snipplr.com/view/5609/modify-http-headers-examples/</link>
<description><![CDATA[ <p>Many examples that show how to use the header() function of PHP</p> ]]></description>
<pubDate>Sat, 29 Mar 2008 14:37:55 GMT</pubDate>
<guid>http://snipplr.com/view/5609/modify-http-headers-examples/</guid>
</item>
<item>
<title>(HTML) How to set IE8 in previous (IE7, IE5) rendering mode for backwards compatibility</title>
<link>http://snipplr.com/view/5544/how-to-set-ie8-in-previous-ie7-ie5-rendering-mode-for-backwards-compatibility/</link>
<description><![CDATA[ <p>„Versioning and Cross-document InteractionInternet Explorer 8 introduces the IE8 standards mode by default—this lets Web designers use the latest rendering features available in Internet Explorer 8. In addition to layout changes, IE8 standards mode will also affect the behavior of scripted APIs (DOM). 
To opt-out of IE8 standards mode, the META tag may be used to obtain IE7 compatibility mode“

Take a look at http://code.google.com/p/ie7-js/ too.
This is a tiny JS library to makes IE versions behave like a standard browser.</p> ]]></description>
<pubDate>Mon, 24 Mar 2008 14:18:03 GMT</pubDate>
<guid>http://snipplr.com/view/5544/how-to-set-ie8-in-previous-ie7-ie5-rendering-mode-for-backwards-compatibility/</guid>
</item>
<item>
<title>(JavaScript) website copy protection</title>
<link>http://snipplr.com/view/5483/website-copy-protection/</link>
<description><![CDATA[ <p>I know what you think - no discussion about this needless piece of code to prevent copying texts/images from websites, but there are customers outside that are advising resistant and so I use this code to scare off their potential clienteles.</p> ]]></description>
<pubDate>Tue, 18 Mar 2008 13:18:00 GMT</pubDate>
<guid>http://snipplr.com/view/5483/website-copy-protection/</guid>
</item>
</channel>
</rss>
