<!DOCTYPE html>
<html>
<head>
<title>事件触发</title>
</head>
<body>
<script type="text/javascript">
function myfovus(x){
x.style.background="red"
}
function myclic(y) {
y.style.borderRadius="20PX"
}
</script>
姓名:<input type="text" onmouseenter="myfovus(this)" >
<br>
<br>
<br>
<div style="width:100px;height: 100px;border:2px solid #ccc;background: #3415" onmouseup="myclic(this)">
</div>
</body>
</html>