<?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 17:32:06 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) JS Dynamic Year (Copyright) - mennyj</title>
      <link>https://snipplr.com/view/35861/js-dynamic-year-copyright</link>
      <description>&lt;p&gt;JS to dynamically update year -- good for copyright.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 01:01:22 UTC</pubDate>
      <guid>https://snipplr.com/view/35861/js-dynamic-year-copyright</guid>
    </item>
    <item>
      <title>(CSS) Image / Text Replacement - Clickable - mennyj</title>
      <link>https://snipplr.com/view/35860/image--text-replacement--clickable</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
&#13;
Image/Text replacement for clickable image.  This is useful for logo images.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:57:55 UTC</pubDate>
      <guid>https://snipplr.com/view/35860/image--text-replacement--clickable</guid>
    </item>
    <item>
      <title>(CSS) Vertically align within fixed height DIV - mennyj</title>
      <link>https://snipplr.com/view/35858/vertically-align-within-fixed-height-div</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
&#13;
This will vertically align a block-level element inside a fixed-height containing block-level element. Note: you must know the exact pixel height of the containing element!&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:56:27 UTC</pubDate>
      <guid>https://snipplr.com/view/35858/vertically-align-within-fixed-height-div</guid>
    </item>
    <item>
      <title>(JavaScript) Vertically align within browser window - mennyj</title>
      <link>https://snipplr.com/view/35857/vertically-align-within-browser-window</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
&#13;
This will vertically align a block-level element inside the user's browser window and will automatically adjust if the window is resized.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:55:41 UTC</pubDate>
      <guid>https://snipplr.com/view/35857/vertically-align-within-browser-window</guid>
    </item>
    <item>
      <title>(HTML) Simple Flash Embed - mennyj</title>
      <link>https://snipplr.com/view/35855/simple-flash-embed</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
&#13;
This uses *no javascript* and will still render in IE, Safari, Firefox, and Opera.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:54:09 UTC</pubDate>
      <guid>https://snipplr.com/view/35855/simple-flash-embed</guid>
    </item>
    <item>
      <title>(CSS) Min/Max-Height/Width Workaround for IE - mennyj</title>
      <link>https://snipplr.com/view/35854/minmaxheightwidth-workaround-for-ie</link>
      <description>&lt;p&gt;[via rtcrm]&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:53:08 UTC</pubDate>
      <guid>https://snipplr.com/view/35854/minmaxheightwidth-workaround-for-ie</guid>
    </item>
    <item>
      <title>(JavaScript) CSS Browser Selector - mennyj</title>
      <link>https://snipplr.com/view/35853/css-browser-selector</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:52:22 UTC</pubDate>
      <guid>https://snipplr.com/view/35853/css-browser-selector</guid>
    </item>
    <item>
      <title>(HTML) Standard Flash Player Embed - FLV - mennyj</title>
      <link>https://snipplr.com/view/35851/standard-flash-player-embed--flv</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
&lt;b&gt;Needed:&lt;/b&gt;&lt;br&gt;&#13;
- Video in FLV format.&lt;br&gt;&#13;
- video_player.swf (standard player, which resizes for any flv).&lt;br&gt;&lt;br&gt;&#13;
&#13;
&lt;b&gt;Notes:&lt;/b&gt;&lt;br&gt;&#13;
- SWF and FLV files can live anywhere.&lt;br&gt;&#13;
- Location of FLV is relative to the location of video_player.swf.  (see below - only video_player.swf needs the folder name.)&lt;br&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:45:51 UTC</pubDate>
      <guid>https://snipplr.com/view/35851/standard-flash-player-embed--flv</guid>
    </item>
    <item>
      <title>(JavaScript) HTML5 Enabling Script - mennyj</title>
      <link>https://snipplr.com/view/35850/html5-enabling-script</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
&#13;
Since HTML5 is getting [more](http://www.brucelawson.co.uk/tests/html5-elements.html) [attention](http://adactio.com/journal/1540/) by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as `&lt;article&gt;`, is to use the [HTML5 shiv](http://ejohn.org/blog/html5-shiv/), hereâ€™s a mini script that enables all the new elements.&#13;
&#13;
###Usage &amp; Download###&#13;
&#13;
The html5.js and must be inserted in the head element _(this is because IE needs to know about the element before it comes to render them â€” so it canâ€™t sit in the footer of the page, i.e. below the elements in question)_.&#13;
&#13;
Itâ€™s conditional within the code, so Firefox _et al_ wonâ€™t run the code â€” but it doesnâ€™t hurt to wrap it in an IE conditional call to reduce the http pulls for other browsers:&#13;
&#13;
&lt;pre&gt;&lt;code&gt;&amp;lt;!--[if IE]&amp;gt;&#13;
&amp;lt;script src="html5.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&#13;
&amp;lt;![endif]--&amp;gt;&#13;
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:43:53 UTC</pubDate>
      <guid>https://snipplr.com/view/35850/html5-enabling-script</guid>
    </item>
    <item>
      <title>(HTML) Video for Everybody - mennyj</title>
      <link>https://snipplr.com/view/35849/video-for-everybody</link>
      <description>&lt;p&gt;[via rtcrm]&#13;
Video for Everybody is very simply a chunk of HTML code that embeds a video into a website using the HTML5 `&lt;video&gt;` element which offers native playback in Firefox 3.5 and Safari 3 &amp; 4.&#13;
&#13;
This is native OGG video playback in Firefox 3.5 (you get H.264 playback in Safari). No plugins to install. The video is played by the browser itself. It loads quickly and doesnâ€™t threaten to crash your browser. &#13;
&#13;
In other browsers that do not support `&lt;video&gt;`, it falls back to Adobe Flash:&#13;
You can host locally or embed any Flash file, such as a YouTube video.&#13;
&#13;
If Flash is not installed, QuickTime is used which allows playback on the iPhone.&#13;
&#13;
If QuickTime is not installed then Windows Media Player is used in Internet Explorer 8 for Windows 7. This means that it is actually almost impossible for the video to not play in IE8 on Windows 7. Even without Flash and QuickTime, youâ€™d have to disable Windows Media Player or all ActiveX entirely!&#13;
&#13;
Finally, if all else fails, a warning is issued that provides links to download the video, and links to software relevant to getting the video to play within the browser itself. Since this is just HTML, you can put anything here you want.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jun 2010 00:42:12 UTC</pubDate>
      <guid>https://snipplr.com/view/35849/video-for-everybody</guid>
    </item>
  </channel>
</rss>
