⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 3.html

📁 用户可随意选择两个数
💻 HTML
字号:
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title> m~n累加和 </title>
    <script language="vbScript">
      <!--
        function abc()
          m=document.form1.text1.value
          n=document.form1.text2.value
          sum=0 
		  if m<n then
            for i= m to n
              sum=sum+i	
			  next
              document.form1.text3.value = sum
			else
			  for i= m to n step -1
			  sum=sum+i
            next
            document.form1.text3.value = sum
	      end if
        end function
      -->
    </script>
  </head>

  <body background="b11.jpg">
    <font size="12" color="#FFFF99"><b><center>m~n累加和</center></b></font>
    <form name="form1">
      <center>
        m值<input type="text" name="text1">
        n值<input type="text" name="text2">
		<input type="text" name="text3">
        <input type="button" name="button1" value="确定" onclick="abc()"><br><br>

      </center>

    </form>

</body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -