localhorst


Member since 01/31/2008

21 snippets

12 profile views

0 Comment(s) Posted

View their favorites

Profile

All time reputation: 97

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

localhorst's Recent Snippets



« Prev 1 Next »
  1. FAV

    Switch label class for checkbox

    ändern der Klasse bei checkbox aktion
    jQuery saved by 1 person 5 views posted 10 years ago localhorst
  2. FAV

    Create short IDs with PHP - Like Youtube or TinyURL

    Example Running: alphaID(9007199254740989); will return 'PpQXn7COf' and: alphaID('PpQXn7COf', true); will return '9007199254740989' Easy right?
    PHP saved by 1 person 7 views posted 10 years ago localhorst
  3. FAV

    IE fix for ugly padding on left and right of submit buttons

    To remove that ugly added padding from submit buttons try this width:auto !important; seems to work for IE7
    CSS saved by 18 people 7 views posted 10 years ago localhorst
  4. FAV

    deprecated jQuery browser detection

    bring back the old browser detection
    JavaScript saved by 4 people 6 views posted 10 years ago localhorst
  5. FAV

    No more IE6 background flicker

    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://ajaxia...
    JavaScript 2 views posted 10 years ago localhorst
  6. FAV

    compress CSS files using PHP

    PHP saved by 2 people 4 views posted 10 years ago localhorst
  7. FAV

    CSS Media Targeted JavaScript

    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...
    CSS saved by 8 people 6 views posted 11 years ago localhorst
  8. FAV

    generating color gradient in JS

    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/gene...
    JavaScript 6 views posted 11 years ago localhorst
  9. FAV

    Array Pagination

    very easy to use pagination class, see website for comments
    PHP saved by 4 people 8 views posted 11 years ago localhorst
  10. FAV

    Force Specific Content to Print in Landscape Orientation

    This handy trick works in IE5.5/Win and newer. It assumes that the default printer orientation is portrait.
    CSS saved by 4 people 3 views posted 11 years ago localhorst
  11. FAV

    disable select or option in IE

    IE can't handle [ option disabled="disabled" ] tags, so this htc will help
    HTML 3 views posted 11 years ago localhorst
  12. FAV

    Modify HTTP Headers (Examples)

    Many examples that show how to use the header() function of PHP
    PHP saved by 3 people 8 views posted 11 years ago localhorst
  13. FAV

    How to set IE8 in previous (IE7, IE5) rendering mode for backwards compatibility

    „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 mo...
    HTML saved by 3 people 10 views posted 11 years ago localhorst
  14. FAV

    website copy protection

    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.
    JavaScript saved by 2 people 2 views posted 11 years ago localhorst
  15. FAV

    outerHTML in Firefox

    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 ca...
    JavaScript saved by 1 person 7 views posted 11 years ago localhorst
  16. FAV

    Equidistant Objects with CSS

    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 ar...
    CSS saved by 1 person 4 views posted 11 years ago localhorst
  17. FAV

    Strip punctuation from text.

    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 rem...
    PHP saved by 1 person 1 views posted 11 years ago localhorst
  18. FAV

    File download with speed limit

    This snippet shows you how to limit the download rate of a file download.
    PHP saved by 72 people 32 views posted 11 years ago localhorst
  19. FAV

    Clean Word HTML using Regular Expressions

    The PHP Code appears in Post Comments
    PHP saved by 4 people 12 views posted 11 years ago localhorst
  20. FAV

    Test for Firebug console command

    prevent errors in other browsers
    JavaScript 5 views posted 12 years ago localhorst
  21. FAV

    Extended Breadcrumbnavigation

    customized breadcrumbnavigation for PHPWCMS. Gives more control over styling and display. {MYBREADCRUMB:n}
    PHP 0 views posted 12 years ago localhorst
« Prev 1 Next »