snipt

Ctrl+h for KB shortcuts

JavaScript

SwfObject Embed

<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
var flashvars = {};
var params = {
	'menu':'false',
	'wmode':'transparent',
	'scale':'noscale'
};
var attributes = {};
attributes.name = "nameForChrome";
swfobject.embedSWF("rutaSWF", "IdCapa", "width", "height", "10.0.0", false, flashvars, params, attributes);
https://snipt.net/embed/4fed47b49a40d93dc5947f59fcc429e8/
/raw/4fed47b49a40d93dc5947f59fcc429e8/
4fed47b49a40d93dc5947f59fcc429e8
js
JavaScript
10
2019-06-25T05:26:11
True
False
False
/api/public/snipt/47162/
swfobject-embed-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1"> 1</a> <a href="#L-2"> 2</a> <a href="#L-3"> 3</a> <a href="#L-4"> 4</a> <a href="#L-5"> 5</a> <a href="#L-6"> 6</a> <a href="#L-7"> 7</a> <a href="#L-8"> 8</a> <a href="#L-9"> 9</a> <a href="#L-10">10</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="o">&lt;</span><span class="nx">script</span> <span class="nx">src</span><span class="o">=</span><span class="s2">&quot;http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js&quot;</span> <span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/javascript&quot;</span><span class="o">&gt;&lt;</span><span class="err">/script&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="kd">var</span> <span class="nx">flashvars</span> <span class="o">=</span> <span class="p">{};</span> </span><span id="L-3"><a name="L-3"></a><span class="kd">var</span> <span class="nx">params</span> <span class="o">=</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="s1">&#39;menu&#39;</span><span class="o">:</span><span class="s1">&#39;false&#39;</span><span class="p">,</span> </span><span id="L-5"><a name="L-5"></a> <span class="s1">&#39;wmode&#39;</span><span class="o">:</span><span class="s1">&#39;transparent&#39;</span><span class="p">,</span> </span><span id="L-6"><a name="L-6"></a> <span class="s1">&#39;scale&#39;</span><span class="o">:</span><span class="s1">&#39;noscale&#39;</span> </span><span id="L-7"><a name="L-7"></a><span class="p">};</span> </span><span id="L-8"><a name="L-8"></a><span class="kd">var</span> <span class="nx">attributes</span> <span class="o">=</span> <span class="p">{};</span> </span><span id="L-9"><a name="L-9"></a><span class="nx">attributes</span><span class="p">.</span><span class="nx">name</span> <span class="o">=</span> <span class="s2">&quot;nameForChrome&quot;</span><span class="p">;</span> </span><span id="L-10"><a name="L-10"></a><span class="nx">swfobject</span><span class="p">.</span><span class="nx">embedSWF</span><span class="p">(</span><span class="s2">&quot;rutaSWF&quot;</span><span class="p">,</span> <span class="s2">&quot;IdCapa&quot;</span><span class="p">,</span> <span class="s2">&quot;width&quot;</span><span class="p">,</span> <span class="s2">&quot;height&quot;</span><span class="p">,</span> <span class="s2">&quot;10.0.0&quot;</span><span class="p">,</span> <span class="kc">false</span><span class="p">,</span> <span class="nx">flashvars</span><span class="p">,</span> <span class="nx">params</span><span class="p">,</span> <span class="nx">attributes</span><span class="p">);</span> </span></pre></div> </td></tr></table>
flash, javascript, js, swfobject