You are here: Re: embed a swf without setting the dimensions? « HTML « IT news, forums, messages
Re: embed a swf without setting the dimensions?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация