Jquery로 탐색 막대를 만들려고합니다. 아이디어는 네비게이션 버튼을 클릭하면 몇 개의 링크 (div 형태로)가 사라지게됩니다. 그러나 초기 클릭 동작을 수행 할 수 없습니다. 현재 #clickme 버튼을 클릭 한 후 #Home 버튼을 왼쪽으로 100px 이동하려고합니다.Jquery에서 애니메이션 탐색 막대를 만들려고합니다.
<!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>Untitled Document</title>
<script src = "jquery-2.0.1.js"></script>
<script>
$("#clickme").click(function(){
$("#Home").animate({left: 100} , "fast");
});
</script>
<style type="text/css">
#Nav {
position:absolute;
width:200px;
height:115px;
z-index:1;
top: 268px;
left: 530px;
background-color: blue;
}
.Button{
position:absolute;
width:200px;
height:115px;
z-index:0;
background-color:#693;
}
</style>
</head>
<body>
<div id="Nav">
<div id="Home" Class = "Button">Home</div>
<div id="About" Class = "Button">About The Internship</div>
<div id="Meet" Class = "Button">Meet the Interns</div>
<div id="Request" Class = "Button">Request an Intern</div>
<div id="clickme" Class = "Button">Navigation</div>
</div>
</body>
</html>
가 왜 바퀴를 개혁하고 있습니다. 액세스 할 수있는 많은 메뉴 플러그인이 있습니다. [모두가 마우스를 사용하지 않습니다.] – epascarello