1

私はフラッシュオブジェクト(ビデオ)を持っています。そして、クリック中にページを開きたいです。私はそれをdiv内に取り、divをクリックしてページを開きます。しかし、クロムとIEでは機能しません。Firefox では問題なく動作します。私のコードは以下の通りです:

<div class="HouseImage" onclick="window.open('Contact','_self')" style="height: 300px;
                overflow: hidden;">
                <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="351"
                    height="332">
                    <param name="movie" value="Flash/Banner.swf" />
                    <param name="quality" value="high" />
                    <param name="wmode" value="opaque" />
                    <param name="swfversion" value="6.0.65.0" />
                    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                    <param name="expressinstall" value="Scripts/expressInstall.swf" />
                    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="Flash/Banner.swf" width="351"
                        height="332">
                        <!--<![endif]-->
                        <param name="quality" value="high" />
                        <param name="wmode" value="opaque" />
                        <param name="swfversion" value="6.0.65.0" />
                        <param name="expressinstall" value="Scripts/expressInstall.swf" />
                        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                        <div>
                            <h4>
                                Content on this page requires a newer version of Adobe Flash Player.</h4>
                            <p>
                                <a href="http://www.adobe.com/go/getflashplayer">
                                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                                        alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                        </div>
                        <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

できるだけ早く私を助けてください。前もって感謝します。

4

1 に答える 1

0

最良の方法は、フラッシュ経由でリンクを開くことです。コードにアクセスできない場合は、Flash/Banner.swf をロードする「特別な」フラッシュ ローダーを作成し、ページをロードする onclick イベントを使用できます。

フラッシュ アニメーションの上に透明な div または gif を配置することもできますが、これは絶対的な配置を含む混乱であり、おそらくすべてのブラウザーで機能するとは限りません。

于 2012-05-17T07:12:24.600 に答える