



Look. I am sick of every people making something, and then making a really sloppy way to use it. If you go to youtube or googlevideo they give you this “embed” code. The Embed tag DOES NOT VALIDATE. I write my code by hand and don’t want it to be sloppy. So when I wrote Rip-Off Theater I didn’t want to have all my players using some clunky Embed crap when there are perfectly good ways to do it using Object instead.
I made the DivX code based on a Quicktime hack I did. Basically I am putting 2 objects on. One for IE and another one for Firefox etc.. To make IE not be stupid you need to use some css to tell it to not display both objects.
I figure If you are reading an article on XHTML I figure you need me to tutor you through the process. You just want the bloody code:
<!-- Start CSS Code -->
<style type="text/css">
/* hides the second object from all versions of IE */
html object.mov {display: none;}
/* displays the second object in all versions of IE apart from 5 on PC */<br/>*
html object.mov {display: inline;}
/* hides the second object from all versions of IE >= 5.5 */
html object.mov {display: none;}
</style>
<!-- End CSS Code -->
<!-- Start XHTML Divx Web Player -->
<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="400" width="600">
<param name="src" value="">
<param name="custommode" value="Stage6">
<object type="video/divx" data="inserturl" class="stupidie" height="400" width="600">
<param name="src" value="">
<param name="custommode" value="Stage6">
No video? Get the DivX Web Player for
<a href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">Windows</a>
or <a href="http://download.divx.com/player/DivXWebPlayer.dmg">Mac</a>
</object>
<!-- End XHTML Divx Web Player -->
<!-- Start XHTML Quicktime -->
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="400" width="600">
<param name="src" value="inserturl">
<param name="controller" value="true">
<param name="autoplay" value="true">
<param name="scale" value="tofit">
<object type="video/quicktime" data="inserturl" class="stupidie" height="400" width="600">
<param name="autoplay" value="true">
<param name="scale" value="tofit">
<param name="controller" value="true">
Sorry, shit happens... download quicktime from apple.com/quicktime
</object>
</object>
<!-- End XHTML Quicktime -->
<!-- Start XHTML Flash -->
<object type="application/x-shockwave-flash" data="inserturl" height="400" width="600">
<param name="movie" value="inserturl">
<param name="FlashVars" value="playerMode=embedded">
</object>
<!-- FYI, that super small flash code works on everything
from youtube / swf's / all other movie sites...-->
<!-- End XHTML Flash -->
</object>


More Options ...
Categories
Tag Cloud
Blog RSS
Comments RSS

Void « Default
Life
Earth
Wind
Water
Fire
Light 