<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - rtcrm</title>
<link>http://snipplr.com/users/rtcrm/tags/html</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 21:15:59 GMT</pubDate>
<item>
<title>(HTML) HTML5 Video: Simple Embed</title>
<link>http://snipplr.com/view/53264/html5-video-simple-embed/</link>
<description><![CDATA[ <p>- HTML5 video displayed for those browsers that support it.
- Falls back to Flash video for non-HTML5 browsers (below IE9).
- Placeholder image displays for non-HTML5 and non-Flash browsers.
- Does not rely on JS.
- Does not include download links.  
- If using "ClearOverAll.swf" for Flash controls, make sure it lives on same level as the HTML page!  (Otherwise, the controls won't appear.)
- Make sure MIME types are on the server hosting the HTML5 video files!  (Add to cpanel, not the .htaccess file.)</p> ]]></description>
<pubDate>Tue, 10 May 2011 05:11:49 GMT</pubDate>
<guid>http://snipplr.com/view/53264/html5-video-simple-embed/</guid>
</item>
<item>
<title>(HTML) Video For Everybody</title>
<link>http://snipplr.com/view/16952/video-for-everybody/</link>
<description><![CDATA[ <p>Video for Everybody is very simply a chunk of HTML code that embeds a video into a website using the HTML5 `` element which offers native playback in Firefox 3.5 and Safari 3 &amp; 4.

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. 

In other browsers that do not support ``, it falls back to Adobe Flash:
You can host locally or embed any Flash file, such as a YouTube video.

If Flash is not installed, QuickTime is used which allows playback on the iPhone.

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!

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.</p> ]]></description>
<pubDate>Mon, 13 Jul 2009 10:28:02 GMT</pubDate>
<guid>http://snipplr.com/view/16952/video-for-everybody/</guid>
</item>
<item>
<title>(JavaScript) HTML5 enabling script</title>
<link>http://snipplr.com/view/14380/html5-enabling-script/</link>
<description><![CDATA[ <p>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 ``, is to use the [HTML5 shiv](http://ejohn.org/blog/html5-shiv/), here’s a mini script that enables all the new elements.

###Usage &amp; Download###

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)_.

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:

&amp;lt;!--[if IE]&amp;gt;
&amp;lt;script src="html5.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
</p> ]]></description>
<pubDate>Fri, 24 Apr 2009 10:12:11 GMT</pubDate>
<guid>http://snipplr.com/view/14380/html5-enabling-script/</guid>
</item>
<item>
<title>(HTML) Standard Flash Player Embed - FLV</title>
<link>http://snipplr.com/view/11762/standard-flash-player-embed--flv/</link>
<description><![CDATA[ <p>Needed:
- Video in FLV format.
- video_player.swf (standard player, which resizes for any flv).

Notes:
- SWF and FLV files can live anywhere.
- Location of FLV is relative to the location of video_player.swf.  (see below - only video_player.swf needs the folder name.)</p> ]]></description>
<pubDate>Mon, 02 Feb 2009 15:49:40 GMT</pubDate>
<guid>http://snipplr.com/view/11762/standard-flash-player-embed--flv/</guid>
</item>
<item>
<title>(CSS) Min/Max-Height/Width Workaround for IE</title>
<link>http://snipplr.com/view/9325/minmaxheightwidth-workaround-for-ie/</link>
<description><![CDATA[ <p>rtcrm</p> ]]></description>
<pubDate>Mon, 27 Oct 2008 14:39:18 GMT</pubDate>
<guid>http://snipplr.com/view/9325/minmaxheightwidth-workaround-for-ie/</guid>
</item>
<item>
<title>(CSS) Image / Text Replacement - Clickable</title>
<link>http://snipplr.com/view/9318/image--text-replacement--clickable/</link>
<description><![CDATA[ <p>RTCRM Image/Text replacement for clickable image.  This is useful for logo images.</p> ]]></description>
<pubDate>Mon, 27 Oct 2008 12:41:18 GMT</pubDate>
<guid>http://snipplr.com/view/9318/image--text-replacement--clickable/</guid>
</item>
</channel>
</rss>