Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The best approach to embed a SWF into an HTML page is to use <a href="https://github.com/swfobject/swfobject/" rel="noreferrer">SWFObject</a>.</p> <p>It is a simple open-source JavaScript library that is easy-to-use and standards-friendly method to embed Flash content.</p> <p>It also offers Flash player version detection. If the user does not have the version of Flash required or has JavaScript disabled, they will see an alternate content. You can also use this library to trigger a Flash player upgrade. Once the user has upgraded, they will be redirected back to the page.</p> <p>An example from the documentation:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt; &lt;head&gt; &lt;title&gt;SWFObject dynamic embed - step 3&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt; &lt;script type="text/javascript" src="swfobject.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0"); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="myContent"&gt; &lt;p&gt;Alternative content&lt;/p&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>A good tool to use along with this is the SWFObject HTML and JavaScript <a href="https://github.com/swfobject/swfobject/wiki/SWFObject-Generator" rel="noreferrer">generator</a>. It basically generates the HTML and JavaScript you need to embed the Flash using SWFObject. Comes with a very simple UI for you to input your parameters.</p> <p>It Is highly recommended and very simple to use.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload