Page 1 of 1

All there is to the EMBED tag.

Posted: Thu Jan 04, 2007 3:24 am
by JellyFish
Well not all, just the src attribute. What files can it play? Just mp3, avi, etc? Media files? Is there a .js hack where I could use that file type in the embed?

(This is going to sound nuts) Could I write a javascript/html file and save it with the extention of .mp3 and use embed with that file?! (I'll try it)

So you know what I'm trying to get at right? These are my questions.

Re: All there is to the EMBED tag.

Posted: Thu Jan 04, 2007 5:48 am
by aaronhall
JellyFish wrote:Well not all, just the src attribute. What files can it play? Just mp3, avi, etc? Media files? Is there a .js hack where I could use that file type in the embed?
The embed tag forwards your file to the appropriate browser plugin (determined by the browser) to 'execute' the file.
(This is going to sound nuts) Could I write a javascript/html file and save it with the extention of .mp3 and use embed with that file?! (I'll try it)
The browser would forward the file to whichever plugin handles '.mp3' files, which would try to blast your javascript through the speakers (or not). Note that EMBED isn't present in any modern html/xhtml standard, though still widely supported.

Posted: Thu Jan 04, 2007 6:37 pm
by JellyFish
What's XHTML using? <object> ?

Posted: Thu Jan 04, 2007 11:15 pm
by aaronhall
Right, deprecated in favor of OBJECT