嵌入式闪存无法在任何浏览器中运行

时间:2012-03-09 15:14:34

标签: html flash embed

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='165' height='37' id='niftyPlayer1' name='niftyPlayer1'>
    <param name='movie' value='audio/niftyplayer.swf?file=/audio/tarantella.mp3&amp;as=0'>
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed id='niftyPlayer1'
            name='niftyPlayer1'
            src='audio/niftyplayer.swf?file=/audio/tarantella.mp3&amp;as=0'
            width='165'
            height='37'
            allowscriptaccess='always'
            allowfullscreen='false'
    />
  </object>

当我手动转到“audio / niftyplayer.swf?file = / audio / tarantella.mp3&amp; as = 0”时,它工作正常,它只是无法嵌入到页面中。

1 个答案:

答案 0 :(得分:1)

尝试将&amp;替换为&

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="165" height="37" id="niftyPlayer1" name="niftyPlayer1">
            <param name="movie" value="audio/niftyplayer.swf?file=/<?php echo $poem->audio_file_path; ?>&as=0" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#FFFFFF" />
            <param name="allowScriptAccess" value="always" />
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="audio/niftyplayer.swf?file=/<?php echo $poem->audio_file_path; ?>&as=0" width="165" height="37" id="niftyPlayer1" name="niftyPlayer1">
                <param name="movie" value="audio/niftyplayer.swf?file=/<?php echo $poem->audio_file_path; ?>&as=0" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#FFFFFF" />
                <param name="allowScriptAccess" value="always" />
            <!--<![endif]-->
                <a href="http://www.adobe.com/go/getflash">
                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                </a>
            <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
        </object>