返回js的第一个事......登陆

js的第一个事件动画

2019-05-03 16:39:42238
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // var b =5,a=6;
        // var c=a+b;
        // document.write(c)
        // alert(c)
        // confirm('请确认')
        // prompt('请输入你的名字')
       function yourname(x) {
           x.style.background="pink";
       }
       function myonblur(y) {
           y.style.height='100px';
           y.style.width='600px'
       }
    </script>
</head>
<body>
    <label for="name">姓名</label>
    <input type="text" onfocus="yourname(this)" onblur="myonblur(this)">
    <div style="width: 100px;height: 100px;background: aqua;"
         onmouseover="yourname(this)"  onmouseout="myonblur(this)">
        test
    </div>

</body>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送