230、打开链接后显示段信息

230、打开链接后显示段信息

以下代码加入<head>区域

以下代码加入<body>区域

<script language=JavaScript>

 

 

 

function jdk1x() {

 

      var num1 = document.x.jdk.value;

 

      if(num1 == 'three') {

 

        document.x.jdk.value = document.x.jdk.value

 

              }

 

      else {

 

        document.x.jdk.value = "可别急着走呀!"

 

              }

 

location="http://www.7stk.com/"

 

    }

 

    </script>

          <form name=x>

            <input type=button value="新思路网页特效集锦" onClick="jdk1x()" name="button">

            <br>

            <input  type=text name=jdk width="300" onChange="document.x.jdk.value=''; return true">

          </form>

Write a comment

Comments: 0