0

I am using the swfobject.js script file to embed an SWF dynamically to my aspx page.

From this site, I followed the code and shows up as:

<!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 dynamic embed - step 3</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">
    swfobject.embedSWF("myContent.swf", "myContent", "100%", "95%", "9.0.0");
    </script>

  </head>
  <body>
    <div id="myContent">
      <p>Alternative content</p>
    </div>
  </body>
</html>

If I browse the page in IE, the whole flash swf is displayed, while on Chrome, it only displays partially (seems like the height of 95% is not being used).

I viewed the source from both IE and Chrome implementation and they are exactly the same. Any advise?

Batuta
  • 1,684
  • 17
  • 48
  • 62

0 Answers0