Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 25th, 2006, 01:05 AM
Viken Karaguesian
Guest
 
Posts: n/a
Default IE and AVI files / code.

Hello everyone,

A friend of mine asked me to insert an AVI file into a web page for him.
Using the <object> tag, I inserted the following code:

<p><object data="name-of-file.avi" type="application/avi" alt="The
Earth"></object></p>

This code validates. The video works in Opera (v. 8.51) and seems to work in
Firefox (it asked me to install a plug-in to make it work). However, it
won't work at all in Intenet Explorer.

So I used FrontPage's "WSYWYG" mode to insert it. It generated this code:

<p>
<img border="0" dynsrc="name-of-file.avi" start="fileopen" width="80"
height="48">
</p>

As you would guess, this worked in IE, but not in Firefox or Opera.

So...how to satisfy both? Obviously, the first bit of code is validated by
the W3C validator and it works in Opera and Firefox. What would be the best
way to make it work across all three platforms? Thanks in advance.

--
Viken K.


  #2  
Old February 25th, 2006, 04:45 AM
IEDesigner
Guest
 
Posts: n/a
Default Re: IE and AVI files / code.

"Viken Karaguesian" <vikenkNO_SPAM@NO_SPAMcomcast.net> wrote in message
news:yrOdnSSmPftnN2LeRVn-rg@comcast.com...[color=blue]
> Hello everyone,
>
> A friend of mine asked me to insert an AVI file into a web page for him.
> Using the <object> tag, I inserted the following code:
>
> <p><object data="name-of-file.avi" type="application/avi" alt="The
> Earth"></object></p>
>
> This code validates. The video works in Opera (v. 8.51) and seems to work[/color]
in[color=blue]
> Firefox (it asked me to install a plug-in to make it work). However, it
> won't work at all in Intenet Explorer.
>
> So I used FrontPage's "WSYWYG" mode to insert it. It generated this code:
>
> <p>
> <img border="0" dynsrc="name-of-file.avi" start="fileopen" width="80"
> height="48">
> </p>
>
> As you would guess, this worked in IE, but not in Firefox or Opera.
>
> So...how to satisfy both? Obviously, the first bit of code is validated by
> the W3C validator and it works in Opera and Firefox. What would be the[/color]
best[color=blue]
> way to make it work across all three platforms? Thanks in advance.
>
> --
> Viken K.[/color]

<embed src="PLANET.AVI" width="200" height="200">
Possibility of validation unknown.
IEDesigner


  #3  
Old February 25th, 2006, 08:35 AM
Spartanicus
Guest
 
Posts: n/a
Default Re: IE and AVI files / code.

"Viken Karaguesian" <vikenkNO_SPAM@NO_SPAMcomcast.net> wrote:
[color=blue]
>A friend of mine asked me to insert an AVI file into a web page for him.[/color]

<a href="video.mpg">Appropriate link text</a>
[color=blue]
>Using the <object> tag[/color]

Embedding video is almost always a poor idea:
http://www.spartanicus.utvinternet.i...htm#audiovideo
[color=blue]
><p><object data="name-of-file.avi" type="application/avi" alt="The
>Earth"></object></p>
>
>This code validates.[/color]

No it didn't, there is no alt attribute on the <object> element.
[color=blue]
>The video works in Opera (v. 8.51) and seems to work in
>Firefox (it asked me to install a plug-in to make it work).[/color]

For some formats Firefox asks the user to install Quicktime when MS
media player is already installed and able to play the format.

--
Spartanicus
  #4  
Old February 25th, 2006, 12:05 PM
Viken Karaguesian
Guest
 
Posts: n/a
Default Re: IE and AVI files / code.

>><p><object data="name-of-file.avi" type="application/avi" alt="The[color=blue][color=green]
>>Earth"></object></p>
>>
>>This code validates.[/color]
>
> No it didn't, there is no alt attribute on the <object> element.[/color]

Oops....you're right. I copy/pasted the wrong code in here. I was working on
several variations and finally found one that validated, but I copied the
wrong one in here.

--
Viken K.
http://home.comcast.net/~vikenk


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles