今天一同事说他的电脑部分网站打不开,而其他人的电脑确可以打开这些网站,我起初判断是他电脑防火墙或杀毒软件的关系,关闭后发现问题依旧。于是我试着用IE打开其中一个网站,查看网页源代码,发现源代码中含有JavaScript页面跳转代码,我直接复制跳转的页面地址到浏览器地址栏中发现能打开,我判断应该是此电脑的IE浏览器不支持JavaScript,下面给出我在网上找出的解决方法,拿来分享。
网上的方法大致有两种,一种是直接修改IE浏览器的设置:点击IE工具菜单&→Internet选项&→点击【安全】选项卡,在里面设置启用JavaScript,但此方法我试过了,不奏效。后来我使用第二种方法成功了,方法很简单,只需要复制下面代码到记事本中,然后保存为批处理文件,即文件扩展名为.bat,如保存为htmer_ie.bat,双击运行该文件,等待片刻即可。
regsvr32 actxprxy.dll /s regsvr32 shdocvw.dll /s Regsvr32 URLMON.DLL /s Regsvr32 actxprxy.dll /s Regsvr32 shdocvw.dll /s regsvr32 oleaut32.dll /s rundll32.exe advpack.dll /DelNodeRunDLL32 C:\WINNT\System32\dacui.dll rundll32.exe advpack.dll /DelNodeRunDLL32 C:\WINNT\Catroot\icatalog.mdb regsvr32 setupwbv.dll /s regsvr32 wininet.dll /s regsvr32 comcat.dll /s regsvr32 shdoc401.dll /s regsvr32 shdoc401.dll /i /s regsvr32 asctrls.ocx /s regsvr32 oleaut32.dll /s regsvr32 shdocvw.dll /I /s regsvr32 shdocvw.dll /s regsvr32 browseui.dll /s regsvr32 browseui.dll /I /s regsvr32 msrating.dll /s regsvr32 mlang.dll /s regsvr32 hlink.dll /s regsvr32 mshtml.dll /s regsvr32 mshtmled.dll /s regsvr32 urlmon.dll /s regsvr32 plugin.ocx /s regsvr32 sendmail.dll /s regsvr32 comctl32.dll /i /s regsvr32 inetcpl.cpl /i /s regsvr32 mshtml.dll /i /s regsvr32 scrobj.dll /s regsvr32 mmefxe.ocx /s regsvr32 proctexe.ocx mshta.exe /register /s regsvr32 corpol.dll /s regsvr32 jscript.dll /s regsvr32 msxml.dll /s regsvr32 imgutil.dll /s regsvr32 thumbvw.dll /s regsvr32 cryptext.dll /s regsvr32 rsabase.dll /s regsvr32 triedit.dll /s regsvr32 dhtmled.ocx /s regsvr32 inseng.dll /s regsvr32 iesetup.dll /i /s regsvr32 hmmapi.dll /s regsvr32 cryptdlg.dll /s regsvr32 actxprxy.dll /s regsvr32 dispex.dll /s regsvr32 occache.dll /s regsvr32 occache.dll /i /s regsvr32 iepeers.dll /s regsvr32 wininet.dll /i /s regsvr32 urlmon.dll /i /s regsvr32 digest.dll /i /s regsvr32 cdfview.dll /s regsvr32 webcheck.dll /s regsvr32 mobsync.dll /s regsvr32 pngfilt.dll /s regsvr32 licmgr10.dll /s regsvr32 icmfilter.dll /s regsvr32 hhctrl.ocx /s regsvr32 inetcfg.dll /s regsvr32 trialoc.dll /s regsvr32 tdc.ocx /s regsvr32 MSR2C.DLL /s regsvr32 msident.dll /s regsvr32 msieftp.dll /s regsvr32 xmsconf.ocx /s regsvr32 ils.dll /s regsvr32 msoeacct.dll /s regsvr32 wab32.dll /s regsvr32 wabimp.dll /s regsvr32 wabfind.dll /s regsvr32 oemiglib.dll /s regsvr32 directdb.dll /s regsvr32 inetcomm.dll /s regsvr32 msoe.dll /s regsvr32 oeimport.dll /s regsvr32 msdxm.ocx /s regsvr32 dxmasf.dll /s regsvr32 laprxy.dll /s regsvr32 l3codecx.ax /s regsvr32 acelpdec.ax /s regsvr32 mpg4ds32.ax /s regsvr32 voxmsdec.ax /s regsvr32 danim.dll /s regsvr32 Daxctle.ocx /s regsvr32 lmrt.dll /s regsvr32 datime.dll /s regsvr32 dxtrans.dll /s regsvr32 dxtmsft.dll /s regsvr32 vgx.dll /s regsvr32 WEBPOST.DLL /s regsvr32 WPWIZDLL.DLL /s regsvr32 POSTWPP.DLL /s regsvr32 CRSWPP.DLL /s regsvr32 FTPWPP.DLL /s regsvr32 FPWPP.DLL /s regsvr32 FLUPL.OCX /s regsvr32 wshom.ocx /s regsvr32 wshext.dll /s regsvr32 vbscript.dll /s regsvr32 scrrun.dll mstinit.exe /setup /s regsvr32 msnsspc.dll /SspcCreateSspiReg /s regsvr32 msapsspc.dll /SspcCreateSspiReg /s
小小说明:运行批处理过程可能会出现一些错误,不用管他,点确定继续执行即可。