A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problems with flash on a xhtml page.

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    3

    Problems with flash on a xhtml page.

    I'm in the process of making a web page that'll successfully checked as XHTML 1.0 Transitional (http://validator.w3.org), but as soon as I place in the fixit.js script under the flash object and view the page in IE, all the flash elements turn white.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
    <link rel="stylesheet" media="screen,projection,tv" href="/common.css" type="text/css" />
    </head>
    <body>
    <!--[if !IE]> -->
    <object type="application/x-shockwave-flash" data="banner.swf" width="100%" height="250">
    <!-- <![endif]-->
    <!--[if IE]>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="250"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
    <param name="movie" value="banner.swf" />
    <!--><!--dgx-->

    <param name="loop" value="true" />
    <param name="menu" value="false" />

    <p>This is <strong>alternative</strong> content.</p>
    </object><script type="text/javascript" src="fixit.js"></script>
    </body>
    </html>
    Anyone knows how to place in flash files in xhtml files on IE without manually controls by clicking on the flash file.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Take a look at swfObject - it's cross-browser compatible, standards compliant, and more or less industry standard.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center