<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
.menu {
width: 150px;
height: 50px;
text-align: center;
float: left;
cursor: pointer;
background-color: #74D19D;
}
.menu_on {
background-color: #288C28;
font-weight: bold;
}
</style>
</head>
<body>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".menu").mouseover(function() {
$(this).addClass("menu_on");
});
$(".menu").mouseout(function() {
$(this).removeClass("menu_on");
});
});
</script>
<div class="menu">메뉴1</div>
<div class="menu">메뉴2</div>
<div class="menu">메뉴3</div>
<div class="menu">메뉴4</div>
<div class="menu">메뉴5</div>
</body>
</html>
'JAVA > Jquery' 카테고리의 다른 글
jquery 사용해본 플러그인 (0) | 2015.08.09 |
---|---|
Juery side메뉴 (0) | 2015.08.06 |
jqeury plugin 50개 (0) | 2015.08.05 |
Jqeury innerfade 슬라이드 (0) | 2015.08.05 |
Jquery div안에 페이지 불러오기 (2) | 2015.08.05 |