4

我们生成 html 文件以在浏览器上显示 swf。以下是我们的html代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0021)http://www.domain_name.com -->
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Keywords" content="xxxxx">
    <meta name="Description" content="">
    <title>test</title> // Title Of The HTML
    <link rel="image_src" href="edge05_thumb.png"> 
    <link rel="viewlet" href="edge05.swf"> // SWF 
    <script language="javascript" type="text/javascript">
        <!--
            document.onhelp=new Function("return false");
            window.onhelp=new Function("return false");
        // -->
    </script>
...
</html>

此代码适用于所有其他浏览器,但在 Edge 上显示白屏。根据我的分析,我发现每当我删除第二行的评论时,(saved from url=(0021)http://www.domain_name.com)它都可以正常工作。

我尝试在 html 中添加评论,但没有奏效。

4

1 回答 1

0

我很确定这与您最后评论部分中的//有关。

替换这个:

<script language="javascript" type="text/javascript">
    <!--
        document.onhelp=new Function("return false");
        window.onhelp=new Function("return false");
    // -->
</script>

这样 :

<script language="javascript" type="text/javascript">
     <!--
          document.onhelp=new Function("return false");
           window.onhelp=new Function("return false");
     -->
</script>
于 2015-12-22T10:42:39.820 回答