我们生成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上它显示白屏.根据我的分析,我发现每当我删除第二行的注释(从url =(0021)http://www.domain_name.com保存)它就可以正常工作.
我尝试在html中添加注释但它不起作用.
解决方法
我很确定这与你的//在最后的评论部分中有关联.
替换这个:
<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>