模板制作使用请注意,关于"Internet Explorer报错,无法打开站点"的解决 Z-Blog 1

管理员 zx.asd 2008-1-15 32851

由yaosansi指出了这个问题的原因及解决方法:

更改TEMPALTE目录里的default.html,single.html,catalog.html文件中的最下边的
try{
        var elScript = document.createElement("script");
        elScript.setAttribute("language", "JavaScript");
        elScript.setAttribute("src", "<#ZC_BLOG_HOST#>function/c_html_js.asp?act=batch"+unescape("%26")+"view=" + escape(strBatchView)+unescape("%26")+"inculde=" + escape(strBatchInculde)+unescape("%26")+"count=" + escape(strBatchCount));
        document.getElementsByTagName("body")[0].appendChild(elScript);
        }
catch(e){};
更换为
try{window.onload=function (){
        var elScript = document.createElement("script");
        elScript.setAttribute("language", "JavaScript");
        elScript.setAttribute("src", "<#ZC_BLOG_HOST#>function/c_html_js.asp?act=batch"+unescape("%26")+"view=" + escape(strBatchView)+unescape("%26")+"inculde=" + escape(strBatchInculde)+unescape("%26")+"count=" + escape(strBatchCount));
        document.getElementsByTagName("body")[0].appendChild(elScript);
}}
catch(e){};
可以有效的避免出现"Internet Explorer报错,无法打开站点"的问题.我们将会在下一次更新中修复这个问题.

短信已禁用,有事发贴。

返回