3 Replies Latest reply on Mar 16, 2007 11:32 AM by kglad

    Centering published movie

    flashForum
      Hello all.

      I'm using the Flash player detection and it publishes the .html file in a way that I'm not familiar. I used to align the movies with <td> tags, but I'm no .html guru and this is much different that my previous way of publishing. How do I center the movie? As it stands now with the below .html file, the movie is placed on the left - which doesn't make sense since I have it set to - align=middle. I don't want to center the movie vertically, I just want to keep the movie at the top of the browser, but centered. How do I do this? Thanks.

      // -->
      </script>
      </head>
      <body bgcolor="#ffffff">
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <script language="JavaScript" type="text/javascript">
      <!--
      <td valign="middle" align="center" width="100%">
      var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
      if(hasRightVersion) { // if we've detected an acceptable version
      var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
      + 'width="780" height="550"'
      + 'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
      + '<param name="movie" value="test.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" />'
      + '<embed src="test.swf" quality="high" scale="noscale" bgcolor="#ffffff" '
      + 'width="780" height="550" name="test" align="middle"'
      + 'play="true"'
      + 'loop="false"'
      + 'quality="high"'
      + 'allowScriptAccess="sameDomain"'
      + 'type="application/x-shockwave-flash"'
      + 'pluginspage=" http://www.macromedia.com/go/getflashplayer">'
      + '<\/embed>'
      + '<\/object>';
      document.write(oeTags); // embed the flash movie
      } else { // flash is too old or we can't detect the plugin
      var alternateContent = 'Alternate HTML content should be placed here.'
      + 'This content requires the Macromedia Flash Player.'
      + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
      document.write(alternateContent); // insert non-flash content
      }
      // -->
      </script>
      <script src="fm$!.js" type="text/javascript"></script>
      <noscript>
      // Provide alternate content for browsers that do not support scripting
      // or for those that have scripting disabled.
      Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
      <a href=" http://www.macromedia.com/go/getflash/">Get Flash</a>
      </noscript>
      </td>
      </body>
      </html>