fig19_24.html

来自「Visual Basic 6 大学教程的代码」· HTML 代码 · 共 32 行

HTML
32
字号
<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 + =
减小字号Ctrl + -
显示快捷键?