Skip to content


页面左下角提示网页上有错误的解决方法


在访问很多网站的时候左下角提示网页上有错误,对程序设计者来说,出现这种情况影响用户体验,也显得网站本身不够专业。出现这种情况的原因大都是模板中有些js(javascript)脚本没有被完全用到。如何屏蔽IE浏览器左下角的“网页上有错误”的警告?在网页的<head></head>间加入以下代码即可:

<SCRIPT LANGUAGE=”JavaScript”>
function closeErrors() {
return true;
}
window.onerror=closeErrors;
</SCRIPT>

有些程序并不是所有的机器都会提示网页上有错误,IE出现的比较多一些,这段屏蔽错误代码不会对程序产生任何不利影响。

对于有些机器差不多打开所有网站都提示“网页上有错误”情况解决方案:
    1、点击“开始”菜单,打开“运行”。
  2、输入regsvr32 jscript.dll后选择“确定”。
  出现提示后,点击确定。
  3、再次输入regsvr32 vbscript.dll选择“确定”。
这种情况和机器本身有关,IE7出现的比较多,也可使用批处理解决。将下面的语句复制到记事本中,另存为bat文件,运行即可。

====================================================
  echo 正在修复,这个过程可能需要几分钟,请稍候……
  rundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%/System32/dacui.dll
  rundll32.exe advpack.dll /DelNodeRunDLL32 %systemroot%/Catroot/icatalog.mdb
  regsvr32 /s comcat.dll
  regsvr32 /s asctrls.ocx
  regsvr32 /s oleaut32.dll
  regsvr32 /s shdocvw.dll /I
  regsvr32 /s shdocvw.dll
  regsvr32 /s browseui.dll
  regsvr32 /s browseui.dll /I
  regsvr32 /s msrating.dll
  regsvr32 /s mlang.dll
  regsvr32 /s hlink.dll
  regsvr32 /s mshtml.dll
  regsvr32 /s mshtmled.dll
  regsvr32 /s urlmon.dll
  regsvr32 /s plugin.ocx
  regsvr32 /s sendmail.dll
  regsvr32 /s mshtml.dll /i
  regsvr32 /s scrobj.dll
  regsvr32 /s corpol.dll
  regsvr32 /s jscript.dll
  regsvr32 /s msxml.dll
  regsvr32 /s imgutil.dll
  regsvr32 /s cryptext.dll
  regsvr32 /s inseng.dll
  regsvr32 /s iesetup.dll /i
  regsvr32 /s cryptdlg.dll
  regsvr32 /s actxprxy.dll
  regsvr32 /s dispex.dll
  regsvr32 /s occache.dll
  regsvr32 /s iepeers.dll
  regsvr32 /s urlmon.dll /i
  regsvr32 /s cdfview.dll
  regsvr32 /s webcheck.dll
  regsvr32 /s mobsync.dll
  regsvr32 /s pngfilt.dll
  regsvr32 /s licmgr10.dll
  regsvr32 /s hhctrl.ocx
  regsvr32 /s inetcfg.dll
  regsvr32 /s trialoc.dll
  regsvr32 /s tdc.ocx
  regsvr32 /s MSR2C.DLL
  regsvr32 /s msident.dll
  regsvr32 /s msieftp.dll
  regsvr32 /s xmsconf.ocx
  regsvr32 /s ils.dll
  regsvr32 /s msoeacct.dll
  regsvr32 /s wab32.dll
  regsvr32 /s wabimp.dll
  regsvr32 /s wabfind.dll
  regsvr32 /s oemiglib.dll
  regsvr32 /s directdb.dll
  regsvr32 /s inetcomm.dll
  regsvr32 /s msoe.dll
  regsvr32 /s oeimport.dll
  regsvr32 /s msdxm.ocx
  regsvr32 /s dxmasf.dll
  regsvr32 /s laprxy.dll
  regsvr32 /s l3codecx.ax
  regsvr32 /s acelpdec.ax
  regsvr32 /s mpg4ds32.ax
  regsvr32 /s danim.dll
  regsvr32 /s Daxctle.ocx
  regsvr32 /s lmrt.dll
  regsvr32 /s datime.dll
  regsvr32 /s dxtrans.dll
  regsvr32 /s dxtmsft.dll
  regsvr32 /s wshom.ocx
  regsvr32 /s wshext.dll
  regsvr32 /s vbscript.dll
  regsvr32 /s scrrun.dll mstinit.exe /setup
  regsvr32 /s msnsspc.dll /SspcCreateSspiReg
  regsvr32 /s msapsspc.dll /SspcCreateSspiReg
  echo.
  echo.
  echo 修复成功!任意键退出!
  pause>nul
  =========================================

参考:http://baike.baidu.com/view/2144820.html?fromTaglist

随机文章

所属分类 技术文章.

文章标签 .

原创文章转载请注明,转载自:启光博客[http://www.iewb.net]

原文链接: http://www.iewb.net/index.php/qg/1139.html


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. 无名 评论

    对站长来说,第一个很有用,我测试一个图片站的时候用了

  2. Firm 评论

    我倒没出现过

  3. 雨夜博客 评论

    这个应该顶,不过出现这种提示在IE上出现的比较多,别的浏览器只要程序没大错误就不出现



欢迎点评

or, reply to this post via trackback.