Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter04 : jQuery_mouse_event 본문

WEB.JQUERY

chapter04 : jQuery_mouse_event

GAWON 2023. 5. 22. 09:20
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="js/jquery-3.4.1.js"></script>
<script type="text/javascript">
	$(function(){
		$("#header").mouseover(function(){
			$("#header").css("background-color", "yellow");
		});
		$("#header").mouseout(function(){
			$("#header").css("background-color", "pink");
		});
	});
</script>
</head>
<body>
	<h2 id="header">MouseOver / MouseOut</h2>
</body>
</html>

'WEB.JQUERY' 카테고리의 다른 글

chapter01 : jQuery_into  (0) 2023.05.22
chapter02 : jQuery_selector  (0) 2023.05.22
chapter03 : jQuery_selector  (0) 2023.05.22
chapter05 : jQuery_keyboard_evnet  (0) 2023.05.22