W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2006

Re: Incorporating Flash into a Website

From: Laboo <info@laboo.it>
Date: Thu, 5 Oct 2006 15:22:04 +0200
Message-ID: <004801c6e881$473552e0$c801a8c0@laboox>
To: <w3c-wai-ig@w3.org>
Here is a valid method, useful also for new issues in ie7 about swf embedding.

1) create a js called (for ex) foo.js

in the js write:

function RunIntro()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="680" height="670">\n');
    document.write('  <param name="movie" value="intro.swf">\n');
    document.write('  <param name="quality" value="high">\n');
document.write('  <param name="FlashVars" value="lingua=ita" >\n');
document.write('      <embed src="intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="680" height="670"></embed>\n');
document.write('  </object>\n');
}

this are common code for a flash

2) import js in html doc: <script src="foo.js" type="text/javascript"></script>

3) insert this code where the flash must appear: <script type="text/javascript">RunIntro();</script>

i hope it is all clear


Laboo
Roberto Federico
info@laboo.it  
- | http://www.laboo.it
- | http://www.laboo.biz/pa/
- | http://www.laboo.biz/infogatto/
Received on Thursday, 5 October 2006 13:24:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:31 UTC