📄 fig19_24.html
字号:
<HTML>
<HEAD>
<TITLE>Our first VBScript</TITLE>
<SCRIPT LANGUAGE="VBScript">
<!--
Option Explicit
Dim intTotal
Sub Add_OnClick()
Dim intValue
intValue = _
InputBox("Enter an integer", "Input Box", , 1000, 1000)
intTotal = CInt(intTotal) + CInt(intValue)
Call MsgBox("You entered " & intValue & _
"; total so far is " & intTotal, , "Results")
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
Click the button to add an integer to the total.
<HR>
<FORM>
<INPUT NAME="Add"
TYPE="BUTTON"
VALUE="Click Here to Add to the Total">
</FORM>
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -