Jump to content

embed flash object, width height refer to windowsize


chopficaro

Recommended Posts

embedi want to embed an object (a flash object) and i want its width and height attributes to refer to the window size

actually, what would be even better, would be if the height referred to the window size, and the width referred to the height of the object

Link to comment
Share on other sites

this isnt working, as soon as i change width and height to percents instead of pixels nothing appears

 

 

<!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>SWFObject - step 1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  </head>
  <body>
    <div>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
        <param name="movie" value="myContent.swf" />
<param name="quality" value="autohigh" />
<param name="menu" value="false" /> 
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="yankeeScreenMenu.swf" width="100%" height="100%">
<param name="quality" value="autohigh" />
<param name="menu" value="false" /> 
        <!--<![endif]-->
          <p>Alternative content</p>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>

    </div>
  </body>
</html>

Link to comment
Share on other sites

i got it working in firefox but not IE, it just pretends to load forever

<!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>SWFObject - step 1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
html, body, #containerA, #containerB { width="100%"; height:100%; }
body { margin:0; padding:0; overflow:hidden; }
</style>
  </head>
  <body>
    <div id="containerA">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
        <param name="movie" value="myContent.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="yankeeScreenMenu.swf" width="100%" height="100%">
<param name="quality" value="autohigh" />
<param name="menu" value="false" /> 
        <!--<![endif]-->
          <p>Alternative content</p>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>
  </body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.