Re: Incorporating Flash into a Website

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