Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorcooper
    • CommentTimeApr 7th 2008 edited
     
    Hi all,

    I'm using this code to place my flash in the html page

    Everything works fine apart from the flash is not centered in the browser window.

    How can I center the flash content in thr browser window.

    Before using SWFObject I was simply using using a table which was centered.



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {};
    var params = {};
    var attributes = {};
    swfobject.embedSWF("site.swf", "myAlternativeContent", "1000", "670", "9.0.0", false, flashvars, params, attributes);
    </script>
    <style type="text/css">
    <!--
    #myAlternativeContent{
    margin-left:200;
    margin-top:100;
    }
    body{
    background-color:#e7e7e7;
    }
    -->
    </style>
    </head>
    <body>
    <div id="myAlternativeContent">
    <img src="Flash-missing.gif" width="389" height="286" border="0" usemap="#Map">
    <map name="Map">
    <area shape="rect" coords="38,198,338,241" href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">
    </map>
    </div>
    </body>
    </html>
    • CommentAuthorphilip
    • CommentTimeApr 7th 2008
     
    If you're looking for SWFObject 2.0 support, please post in the SWFObject Google Group: http://groups.google.com/group/swfobject