|
Posted by Benjamin Niemann on 03/24/07 20:36
Greetings,
Ciaran wrote:
> Hi Anyone know how to embed a swf without setting the dimensions width
> & height? I mean is there any way they can be automatically detected?
Not in "pure" HTML. The flash movie would scale to whatever default size the
browser would use, and I don't think any browsers cares to guess the right
size of the movie.
It is possible to extract the suggested size (the one that the movie author
set in the authoring tool) and the set the appropriate WIDTH and HEIGHT
attributes of the OBJECT (or EMBED, if you don't care about validation)
element. But this requires server-side code, e.g. PHP.
If you can use PHP, I could dig up some old code that did this job.
HTH
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Navigation:
[Reply to this message]
|