tags:

views:

40

answers:

3

As the site will be totally in flash, there is no use of JavaScript required. So, what is the best way to embed a SWF file into a web page without using JavaScript. And why do you consider it to be the best one?

+2  A: 

You can use the Satay Method:

 <!--[if IE]>
<object
    type="application/x-shockwave-flash"
    data="movie.swf"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="200"
    height="400">
    <param name="wmode" value="opaque" />
    <param name="movie" value="movie.swf" />
</object><![endif]--><!--[if !IE]><!-->
<object
    type="application/x-shockwave-flash"
    data="movie.swf"
    width="200"
    height="400">
    <param name="wmode" value="opaque" />
    <param name="movie" value="movie.swf" />
</object><!--<![endif]-->
sthg
A: 

Another example here: http://knowhow.dgx.cz/embedding-flash/ Contains hacks for crappy IE.

Ondra Žižka
A: 

I would assume that the embedding code used by SWFObject is tested to be working on as many browsers as possible. Just skip the steps with javascript.

kkyy