How to embed a SWF file in an HTML page? -


how embed swf file in html page?

the best approach embed swf html page use swfobject.

it simple open-source javascript library easy-to-use , standards-friendly method embed flash content.

it offers flash player version detection. if user not have version of flash required or has javascript disabled, see alternate content. can use library trigger flash player upgrade. once user has upgraded, redirected page.

an example documentation:

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">   <head>     <title>swfobject dynamic embed - step 3</title>     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />     <script type="text/javascript" src="swfobject.js"></script>      <script type="text/javascript">         swfobject.embedswf("mycontent.swf", "mycontent", "300", "120", "9.0.0");     </script>    </head>   <body>     <div id="mycontent">       <p>alternative content</p>     </div>   </body> </html> 

a tool use along swfobject html , javascript generator. generates html , javascript need embed flash using swfobject. comes simple ui input parameters.

it highly recommended , simple use.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -