鼠标点击和鼠标被移动事件

Original 2019-05-08 23:22:51 240
abstract:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml&quo

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>事件</title>

</head>

<body>

<script type="text/javascript">

function myfovus(x){

x.style.background='#f1f1f1';

}

function myfovus2(x){

x.style.background='#ff0000';

}

function myclic(y){

y.style.borderRadius='50px';

}

</script>

姓名:<input type="text" onfocus="myfovus(this)" /><br />

密码:<input type="text" onmousemove="myfovus2(this)" />

<br />

<br />

<div style="width:100px;height:100px;border:1px solid #ccc; background:#069;" onclick="myclic(this)"></div>


</body>

</html>

Correcting teacher:查无此人Correction time:2019-05-09 14:27:07
Teacher's summary:完成的不错。js功能非常强大,要好好学习。继续加油

Release Notes

Popular Entries