首页 > Web开发 > 详细

js_onmouse--

时间:2020-08-15 22:46:18      阅读:48      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
<meta charset="UTF-8">
<!--&lt;!&ndash; <script src="js_file01.js"></script>&ndash;&gt; 尽量放后body前边-->

<style>
div{
width: 200px;
height: 100px;
background-color: #178cfa;
}

</style>

</head>
<body>

<div onmousedown="down1()" onmousemove="move1()" onmouseout="out1()" onmouseover="over1()">hello</div>

<script>

function down1() {
console.log("down")
}

function move1() {
console.log("move1")
}

function out1() {
console.log("out1")
}

function over1() {
console.log("over1")
}

</script>

</body>
</html>

js_onmouse--

原文:https://www.cnblogs.com/zxy01/p/13509820.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!