亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Javascript核心篇-事件

原創(chuàng) 2019-05-16 15:43:41 200
摘要:<!DOCTYPE html> <html> <head> <title>Javascript核心篇-事件</title> </head> <body> <script type="text/javascript"> function myfovus
<!DOCTYPE html>
<html>
<head>
	<title>Javascript核心篇-事件</title>
</head>
<body>
<script type="text/javascript">
	function myfovus(x){
		x.style.background = 'pink';
	}
	function myclick(y){
		y.style.background = 'blue';
	}
	function myclick2(z){
		z.style.borderRadius = '50%';
	}
</script>
input1:<input type="text" onfocus="myfovus(this)" name="">
<br>
input2:<input type="text" onmouseover="myfovus(this)" name="">
<br>
<div style="width: 200px; height: 200px; border:1px solid #ccc;" onclick="myclick(this)"></div>
<div style="width: 200px; height: 200px; border:1px solid #ccc; background:blue;" onclick="myclick2(this)"></div>

</body>
</html>


批改老師:查無此人批改時間:2019-05-17 09:55:13
老師總結(jié):完成的不錯。js的動畫很難掌握,要堅持。繼續(xù)加油。

發(fā)佈手記

熱門詞條