0
VB腳本在IE10中不工作我在.html文件中使用了下面的代碼複製。當我雙擊下面的.html文件時,文件在IE8中完全打開,但不在IE 10中打開。請幫助在jsp/HTML中的VB腳本在IE10中不工作,但在以下版本中工作
<STRONG>New version of <SPAN STYLE="background-color:yellow"> v 2.10.12 </SPAN>,
released on <SPAN STYLE="background-color:yellow"> 7th Mar 2008.</span>. </STRONG>
<BR><BR>
<DIV ID="jwsReady">
</DIV>
<BR>
<SCRIPT Language="VBScript">
<!--
Sub JWS
ReadyHTML = ReadyHTML & "<br>Please remember to set up the"
ReadyHTML = ReadyHTML & "<SPAN STYLE=""background-color:yellow"">Proxy</SPAN> for Java Web Start©(JWS) as"
ReadyHTML = ReadyHTML & "<SPAN STYLE=""background-color:yellow"">None</SPAN>, either: -"
ReadyHTML = ReadyHTML & "<UL>"
ReadyHTML = ReadyHTML & "<LI>during first access, when JWS prompts for proxy set up, or,</LI>"
ReadyHTML = ReadyHTML & "<LI>by accessing the JWS program, either through the Start Menu"
ReadyHTML = ReadyHTML & "[Start->Programs->Java Web Start->Java Web Start], or "
ReadyHTML = ReadyHTML & "its shortcut on the desktop.<BR>"
ReadyHTML = ReadyHTML & "In the menu File->Preferences, General tab, select the Proxy as"
ReadyHTML = ReadyHTML & " <SPAN STYLE=""background-color:yellow"">None</SPAN>.</LI>"
ReadyHTML = ReadyHTML & "</UL>"
ReadyHTML = ReadyHTML & "If you have any questions during setup, please contact the <a href=""mailto:[email protected]?subject=Install Support"">dev group</a>."
NotReadyHTML = NotReadyHTML & "<BR>"
NotReadyHTML = NotReadyHTML & "<EM>Before Installation, please make sure you have closed all other programs.</EM><BR>"
NotReadyHTML = NotReadyHTML & "Please choose default options all throughout<BR>"
NotReadyHTML = NotReadyHTML & "After installing the runtime environment, you may be required to restart the machine."
NotReadyHTML = NotReadyHTML & "If you have restarted, please visit this page again. If you have not restarted,"
NotReadyHTML = NotReadyHTML & "please refresh this page."
NotReadyHTML = NotReadyHTML & "If you have any questions during install, please contact the <a href=""mailto:[email protected]?subject=Install Support"">dev group</a>."
BothJREJNLP = "JWS installed, but version not detectable. Try <A HREF=""/rca/rca.jnlp"" STYLE=""color:blue;"">Client</A>. If you get any error(s), try <a href=""http://mpts.ctc.chrysler.com/jre/j2re-1_4_2_07-windows-i586-p.exe"">JRE v 1.4.2_06</a>." & NotReadyHTML & ReadyHTML
On Error Resume Next
Document.All.jwsReady.innerHTML = BothJREJNLP
End Sub
Call JWS
-->
</SCRIPT>
</DIV>
工作就像魅力:) *它究竟是「不工作」?當您刪除「On Error Resume Next」時會發生什麼? –
嘗試將代碼複製到文本文件並將其命名爲html,並嘗試在IE8和IE 10中雙擊它。它不會在IE10中顯示內容,並且會顯示在IE8中。 – user2936008
爲什麼還有人會在網頁開發中使用VBScript? – developerwjk