【发布时间】:2014-05-13 06:40:16
【问题描述】:
我在我的项目中编写了 VBScript,但这仅适用于 IE,不适用于 chrome/firefox。我的代码需要一个 VBScript 库。此代码将如何在 chrome 和 firefox 上运行。我的代码是
<SCRIPT LANGUAGE="VBScript">
Sub clickHandler()
sP = Window.Event.SrcElement.ID
If Left(sP, 1) = "M" Then
Set oC = Document.All("C" & Mid(sP, 2))
If oC.Style.Display = "none" Then
oC.Style.Display = ""
Else
oC.Style.Display = "none"
End If
Set oC = Nothing
End If
End Sub
</SCRIPT>
【问题讨论】:
标签: google-chrome internet-explorer firefox vbscript