<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 03:33:28 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) html5 / jQuery innerHTML fix for IE - localhorst</title>
      <link>https://snipplr.com/view/47876/html5--jquery-innerhtml-fix-for-ie</link>
      <description>&lt;p&gt;If you try to access innerHTML of HTML5 elements like &lt;section&gt; or &lt;article&gt; or even just the #foo id then IE returns nothing&#13;
innerShiv solves this.&lt;/p&gt;</description>
      <pubDate>Wed, 26 Jan 2011 06:26:17 UTC</pubDate>
      <guid>https://snipplr.com/view/47876/html5--jquery-innerhtml-fix-for-ie</guid>
    </item>
    <item>
      <title>(jQuery) Switch label class for checkbox - localhorst</title>
      <link>https://snipplr.com/view/16020/switch-label-class-for-checkbox</link>
      <description>&lt;p&gt;Ã¤ndern der Klasse bei checkbox aktion&lt;/p&gt;</description>
      <pubDate>Wed, 17 Jun 2009 10:03:28 UTC</pubDate>
      <guid>https://snipplr.com/view/16020/switch-label-class-for-checkbox</guid>
    </item>
    <item>
      <title>(jQuery) jquery fadeToggle - localhorst</title>
      <link>https://snipplr.com/view/16015/jquery-fadetoggle</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 17 Jun 2009 06:10:31 UTC</pubDate>
      <guid>https://snipplr.com/view/16015/jquery-fadetoggle</guid>
    </item>
    <item>
      <title>(PHP) Create short IDs with PHP - Like Youtube or TinyURL - localhorst</title>
      <link>https://snipplr.com/view/15887/create-short-ids-with-php--like-youtube-or-tinyurl</link>
      <description>&lt;p&gt;Example&#13;
&#13;
Running:&#13;
&#13;
alphaID(9007199254740989);&#13;
&#13;
will return 'PpQXn7COf' and:&#13;
&#13;
alphaID('PpQXn7COf', true);&#13;
&#13;
will return '9007199254740989'&#13;
&#13;
Easy right?&lt;/p&gt;</description>
      <pubDate>Sat, 13 Jun 2009 01:17:09 UTC</pubDate>
      <guid>https://snipplr.com/view/15887/create-short-ids-with-php--like-youtube-or-tinyurl</guid>
    </item>
    <item>
      <title>(CSS) IE  fix for ugly padding on left and right of submit buttons - localhorst</title>
      <link>https://snipplr.com/view/13430/ie--fix-for-ugly-padding-on-left-and-right-of-submit-buttons</link>
      <description>&lt;p&gt;To remove that ugly added padding from submit buttons try this&#13;
width:auto !important; seems to work for IE7&lt;/p&gt;</description>
      <pubDate>Wed, 25 Mar 2009 08:56:16 UTC</pubDate>
      <guid>https://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 - localhorst</title>
      <link>https://snipplr.com/view/13416/deprecated-jquery-browser-detection</link>
      <description>&lt;p&gt;bring back the old browser detection&lt;/p&gt;</description>
      <pubDate>Tue, 24 Mar 2009 17:11:55 UTC</pubDate>
      <guid>https://snipplr.com/view/13416/deprecated-jquery-browser-detection</guid>
    </item>
    <item>
      <title>(JavaScript) No more IE6 background flicker - localhorst</title>
      <link>https://snipplr.com/view/12831/no-more-ie6-background-flicker</link>
      <description>&lt;p&gt;dynamic background images flickers in IE6&#13;
***&#13;
more ressources:&#13;
[here](http://misterpixel.blogspot.com/2006/09/forensic-analysis-of-ie6.html)&#13;
and [here](http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B823727) and &#13;
[here](http://ajaxian.com/archives/no-more-ie6-background-flicker)&lt;/p&gt;</description>
      <pubDate>Thu, 05 Mar 2009 15:09:19 UTC</pubDate>
      <guid>https://snipplr.com/view/12831/no-more-ie6-background-flicker</guid>
    </item>
    <item>
      <title>(PHP) compress CSS files using PHP - localhorst</title>
      <link>https://snipplr.com/view/12666/compress-css-files-using-php</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 12:01:50 UTC</pubDate>
      <guid>https://snipplr.com/view/12666/compress-css-files-using-php</guid>
    </item>
    <item>
      <title>(CSS) CSS Media Targeted JavaScript - localhorst</title>
      <link>https://snipplr.com/view/12429/css-media-targeted-javascript</link>
      <description>&lt;p&gt;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.&#13;
&#13;
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:&lt;/p&gt;</description>
      <pubDate>Sat, 21 Feb 2009 02:23:16 UTC</pubDate>
      <guid>https://snipplr.com/view/12429/css-media-targeted-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) generating color gradient in JS - localhorst</title>
      <link>https://snipplr.com/view/11109/generating-color-gradient-in-js</link>
      <description>&lt;p&gt;see website for all information about that.&#13;
some more theory:&#13;
[color-scaling-function](http://stackoverflow.com/questions/168838/color-scaling-function)&#13;
[generate-color-for-a-power-meter-red-to-green](http://stackoverflow.com/questions/340209/generate-color-for-a-power-meter-red-to-green)&lt;/p&gt;</description>
      <pubDate>Tue, 13 Jan 2009 03:21:16 UTC</pubDate>
      <guid>https://snipplr.com/view/11109/generating-color-gradient-in-js</guid>
    </item>
    <item>
      <title>(JavaScript) [mootools] remove onfocus dotted outline from clicked link images - localhorst</title>
      <link>https://snipplr.com/view/10547/mootools-remove-onfocus-dotted-outline-from-clicked-link-images</link>
      <description>&lt;p&gt;simple if your client wish to remove the dotted outline from images if they are clicked (and if they are links).&lt;/p&gt;</description>
      <pubDate>Wed, 17 Dec 2008 04:11:54 UTC</pubDate>
      <guid>https://snipplr.com/view/10547/mootools-remove-onfocus-dotted-outline-from-clicked-link-images</guid>
    </item>
    <item>
      <title>(PHP) Array Pagination - localhorst</title>
      <link>https://snipplr.com/view/9531/array-pagination</link>
      <description>&lt;p&gt;very easy to use pagination class, see website for comments&lt;/p&gt;</description>
      <pubDate>Thu, 06 Nov 2008 08:54:35 UTC</pubDate>
      <guid>https://snipplr.com/view/9531/array-pagination</guid>
    </item>
    <item>
      <title>(PHP) phpwcms article replacement tags - localhorst</title>
      <link>https://snipplr.com/view/8988/phpwcms-article-replacement-tags</link>
      <description>&lt;p&gt;{ARTICLE_TITLE} {ARTICLE_ID} {ARTICLE_ALIAS}&#13;
{TOPLEVEL}&#13;
{PAGETITLE} = {CATEGORY} (since v1.3.5 )&#13;
{CATEGORY_ID} {CATEGORY_ALIAS}&#13;
&#13;
Filename: rt_cat_article_id.php&#13;
Folder: /template/inc_script/frontend_render/&#13;
Switch: $phpwcms['allow_ext_render'] = 1; (/config/phpwcms/conf.inc.php)&lt;/p&gt;</description>
      <pubDate>Tue, 14 Oct 2008 03:19:33 UTC</pubDate>
      <guid>https://snipplr.com/view/8988/phpwcms-article-replacement-tags</guid>
    </item>
    <item>
      <title>(CSS) Force Specific Content to Print in Landscape Orientation - localhorst</title>
      <link>https://snipplr.com/view/7127/force-specific-content-to-print-in-landscape-orientation</link>
      <description>&lt;p&gt;This handy trick works in IE5.5/Win and newer. It assumes that the default printer orientation is portrait.&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jul 2008 12:06:48 UTC</pubDate>
      <guid>https://snipplr.com/view/7127/force-specific-content-to-print-in-landscape-orientation</guid>
    </item>
    <item>
      <title>(HTML) disable  select or option in IE - localhorst</title>
      <link>https://snipplr.com/view/6262/disable--select-or-option-in-ie</link>
      <description>&lt;p&gt;IE can't handle [ option disabled="disabled" ] tags, so this htc will help&lt;/p&gt;</description>
      <pubDate>Fri, 16 May 2008 07:51:53 UTC</pubDate>
      <guid>https://snipplr.com/view/6262/disable--select-or-option-in-ie</guid>
    </item>
    <item>
      <title>(PHP) Modify HTTP Headers (Examples) - localhorst</title>
      <link>https://snipplr.com/view/5609/modify-http-headers-examples</link>
      <description>&lt;p&gt;Many examples that show how to use the header() function of PHP&lt;/p&gt;</description>
      <pubDate>Sat, 29 Mar 2008 14:37:55 UTC</pubDate>
      <guid>https://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 - localhorst</title>
      <link>https://snipplr.com/view/5544/how-to-set-ie8-in-previous-ie7-ie5-rendering-mode-for-backwards-compatibility</link>
      <description>&lt;p&gt;â€ž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). &#13;
To opt-out of IE8 standards mode, the META tag may be used to obtain IE7 compatibility modeâ€œ&#13;
&#13;
Take a look at http://code.google.com/p/ie7-js/ too.&#13;
This is a tiny JS library to makes IE versions behave like a standard browser.&lt;/p&gt;</description>
      <pubDate>Mon, 24 Mar 2008 14:18:03 UTC</pubDate>
      <guid>https://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 - localhorst</title>
      <link>https://snipplr.com/view/5483/website-copy-protection</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Mar 2008 13:18:00 UTC</pubDate>
      <guid>https://snipplr.com/view/5483/website-copy-protection</guid>
    </item>
    <item>
      <title>(JavaScript) Disable (Text)selection on website - localhorst</title>
      <link>https://snipplr.com/view/5481/disable-textselection-on-website</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:49:18 UTC</pubDate>
      <guid>https://snipplr.com/view/5481/disable-textselection-on-website</guid>
    </item>
    <item>
      <title>(JavaScript) outerHTML in Firefox - localhorst</title>
      <link>https://snipplr.com/view/5460/outerhtml-in-firefox</link>
      <description>&lt;p&gt;This is a little trick I came up with to add outerHTML functionality in Firefox. For those who aren't familiar with outerHTML, it is an IE addition to the DOM that will return the element's HTML PLUS it's innerHTML. Is it really needed? No, but it can help with debugging sometimes.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Mar 2008 12:26:21 UTC</pubDate>
      <guid>https://snipplr.com/view/5460/outerhtml-in-firefox</guid>
    </item>
    <item>
      <title>(CSS) Equidistant Objects with CSS - localhorst</title>
      <link>https://snipplr.com/view/5441/equidistant-objects-with-css</link>
      <description>&lt;p&gt;Creating a horizontal row of objects that are equidistant from each other is another one of those things in web design that is much more difficult than it should be. This can be a very useful thing to do, especially in fluid width layouts when you are trying to make the most of whatever horizontal space you have. Here are the goals we are trying to achieve:&lt;/p&gt;</description>
      <pubDate>Sat, 15 Mar 2008 18:45:01 UTC</pubDate>
      <guid>https://snipplr.com/view/5441/equidistant-objects-with-css</guid>
    </item>
    <item>
      <title>(PHP) Strip punctuation from text. - localhorst</title>
      <link>https://snipplr.com/view/5373/strip-punctuation-from-text</link>
      <description>&lt;p&gt;When processing text for a search engine or analysis tool, code needs to strip out punctuation, formatting, spacing, and control characters to reveal indexable text. In international text there are hundreds of these characters, and some should be removed in one context, but not in another. This tip shows how.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Mar 2008 19:13:31 UTC</pubDate>
      <guid>https://snipplr.com/view/5373/strip-punctuation-from-text</guid>
    </item>
    <item>
      <title>(PHP) File download with speed limit - localhorst</title>
      <link>https://snipplr.com/view/5372/file-download-with-speed-limit</link>
      <description>&lt;p&gt;This snippet shows you how to limit the download rate of a file download.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Mar 2008 18:53:54 UTC</pubDate>
      <guid>https://snipplr.com/view/5372/file-download-with-speed-limit</guid>
    </item>
    <item>
      <title>(JavaScript) detect IE7 with JavaScript - localhorst</title>
      <link>https://snipplr.com/view/5246/detect-ie7-with-javascript</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 29 Feb 2008 04:35:17 UTC</pubDate>
      <guid>https://snipplr.com/view/5246/detect-ie7-with-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) Customize FCKEditor in PHPWCMS - localhorst</title>
      <link>https://snipplr.com/view/5229/customize-fckeditor-in-phpwcms</link>
      <description>&lt;p&gt;make changes in fckeditor_config.js.php&lt;/p&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:22:23 UTC</pubDate>
      <guid>https://snipplr.com/view/5229/customize-fckeditor-in-phpwcms</guid>
    </item>
    <item>
      <title>(PHP) Clean Word HTML using Regular Expressions - localhorst</title>
      <link>https://snipplr.com/view/5217/clean-word-html-using-regular-expressions</link>
      <description>&lt;p&gt;The PHP Code appears in Post Comments&lt;/p&gt;</description>
      <pubDate>Wed, 27 Feb 2008 13:49:45 UTC</pubDate>
      <guid>https://snipplr.com/view/5217/clean-word-html-using-regular-expressions</guid>
    </item>
    <item>
      <title>(PHP) Pagination RT Snippet - localhorst</title>
      <link>https://snipplr.com/view/5098/pagination-rt-snippet</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 17 Feb 2008 12:46:28 UTC</pubDate>
      <guid>https://snipplr.com/view/5098/pagination-rt-snippet</guid>
    </item>
    <item>
      <title>(JavaScript) Test for Firebug console command - localhorst</title>
      <link>https://snipplr.com/view/4969/test-for-firebug-console-command</link>
      <description>&lt;p&gt;prevent errors in other browsers&lt;/p&gt;</description>
      <pubDate>Sat, 09 Feb 2008 23:59:24 UTC</pubDate>
      <guid>https://snipplr.com/view/4969/test-for-firebug-console-command</guid>
    </item>
    <item>
      <title>(PHP) emulate PHP 5 for backwards compatibility - localhorst</title>
      <link>https://snipplr.com/view/4964/emulate-php-5-for-backwards-compatibility</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 09 Feb 2008 05:54:05 UTC</pubDate>
      <guid>https://snipplr.com/view/4964/emulate-php-5-for-backwards-compatibility</guid>
    </item>
    <item>
      <title>(PHP) Extended Breadcrumbnavigation - localhorst</title>
      <link>https://snipplr.com/view/4959/extended-breadcrumbnavigation</link>
      <description>&lt;p&gt;customized breadcrumbnavigation for PHPWCMS.&#13;
Gives more control over styling and display.&#13;
{MYBREADCRUMB:n}&lt;/p&gt;</description>
      <pubDate>Sat, 09 Feb 2008 00:49:43 UTC</pubDate>
      <guid>https://snipplr.com/view/4959/extended-breadcrumbnavigation</guid>
    </item>
  </channel>
</rss>
