Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Object ID embed and validation??

  • Subject: Re: Object ID embed and validation??
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Tue, 18 Jan 2005 05:54:37 +0000
  • Newsgroups: alt.html
  • References: <CG%Gd.12704$5R.2470@newssvr21.news.prodigy.com>
  • User-agent: KNode/0.7.2
Christopher Richards wrote:

> Is it possible to correctly validate an xhtml page with the object ID and
> embed necessary to implant a windows media player in an html page?
> Here is the code suggested by http://www.streamalot.com/embed.shtml. This
> validator http://validator.w3.org/file-upload.html doesn't like it at all.

================================================================
<!-- BEGIN GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER --> 

<object id="MediaPlayer1" width=180 height=200 
        classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"

codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";
        standby="Loading Microsoft® Windows® Media Player components..." 
        type="application/x-oleobject" align="middle">
    <param name="FileName" value="Server/file">
    <param name="ShowStatusBar" value="True">
    <param name="DefaultFrame" value="mainFrame">
    <embed type="application/x-mplayer2" 
        pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/";
        src="Server/File" align="middle"
        width=176
        height=144
        defaultframe="rightFrame"
        showstatusbar=true>
    </embed> 
  </object> <!-- END GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA
PLAYER --><br>
  <a href="Server/file"><font size="2">Click 
  here for standalone player</font></a><br>
 
  <a
href="http://www.microsoft.com/windows/windowsmedia/en/default.asp";><font
size="1">Download Windows Media Player Here</font></a></p>
================================================================

Without trying the validation, I can already spot some tags that do not
close, e.g. replace <br> with <br />.

The code above was probably intended for HTML, not XHTML.

Roy

-- 
Roy Schestowitz
http://schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index