Re: Adding video to my webpage



Daniel Kaplan wrote:
I would like to add video to my webpage, with the file sitting on my server.
....
My question is, what is the best, most generic way to do this?

I guess that it would depend on the video format. Easiest would be Flash as commonly only one object element is needed:

<div>
<object
type="application/x-shockwave-flash"
data="flash.swf"
width="300"
height="200">
<param
name="movie"
value="flash.swf" />
<!-- Fallback content here. -->
</object>
</div>

The seemingly redundant param element is for IE.

Osmo
.



Relevant Pages

  • Re: inserting line breaks in text quoted in javascript
    ... you're using firstChild of the div which is a text node. ... Use the Firefox browser. ... You can look up nodes, and perform methods on them, see the "Object Node" section. ... In the "Object Element" section, are elements which are created from HTML tags. ...
    (comp.lang.javascript)
  • Re: Flash object in HTML; shows in FF, not in IE
    ... a direct link to a swf file on the server show the flash ... the flash object to the browser it doesn't show. ... Just use the object element AND the embed element. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: videos do not show in IE8?
    ... quirks, bugs, leaks, etc.  No missives to upgradeFlashto annoy the ... Anyway, speaking of Flash, I can confirm that the Flash module in My ... the created OBJECT element, ... am using setAttribute with the PARAM elements. ...
    (comp.lang.javascript)
  • Re: inserting line breaks in text quoted in javascript
    ... you're using firstChild of the div which is a text node. ... Use the Firefox browser. ... You can look up nodes, and perform methods on them, see the "Object Node" section. ... In the "Object Element" section, are elements which are created from HTML tags. ...
    (comp.lang.javascript)
  • Re: How can i correct xhtml validation error
    ... Travis Newbury wrote: ... > The fact that they are using flash at all says they are not concerned ... The object element is designed to gracefully degrade. ... Prev by Date: ...
    (alt.html)