Re: Netscape Plug-ins and <OBJECT>

On Tue, 16 Sep 1997, Rick Darnell wrote:

> What would the correct syntax be for including a plug-in with the
> new HTML <OBJECT> tag? I'm assuming that it's similar to adding
> images, by using the _data_ attribute to identify the content and
> _type_ to identify the MIME type. Is _codetype_ or _classid_
> needed to help the browser find the plug-in application on the
> user's machine (such as ActiveX controls)? 

Assuming the browser has a dictionary that binds Content types 
to plugins, then in principle, the following would work:

  <object data=foo>
   a picture of foo
  </object>

The above gets the Content type when it downloads the data.

  <object data=foo type="image/gif">
   a picture of foo
  </object>

This one provides in advance that the data is "image/gif"

  <object data=foo width=100 height=60>
   a picture of foo
  </object>

This specifies the with and height for the image. The image
will be scaled if necessary to this size.

You can also provide parameters via the PARAM element in
basically the same way as for APPLET.

Note that current implementations may not yet be capable
of the above examples.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2521 (office) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)

Received on Wednesday, 17 September 1997 09:40:41 UTC