우리는 나는 당신의 유리 효과의 마우스 오버와 마우스를 이동하면 추가 효과
$("#firstpane p.menu_head").click(function()
{
$(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
});
$("#firstpane p.menu_head1").click(function()
{
$(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
});
$("#firstpane p.menu_head").mouseover(function()
{
$(this).css("text-indent","35px");
$(this).css("backgroundImage","url(images/trans.png)").fadeTo("slow",0.33);
});
$("#firstpane p.menu_head").mouseout(function()
{
$(this).css("text-indent","10px");
$(this).css("backgroundImage","url(images/headbot1.png)").fadeTo("slow", 1);
});
의 HTML
<p class="menu_head">first</p>
<div class="menu_body">
<a href="">1</a>
<a href="">2</a>
<a href="">3</a>
<a href="">4</a>
</div>
<p class="menu_head1">Second</p>
<div class="menu_body">
<a href="">1</a>
</div>
jQuery를 필요로 시작합니다. 그냥 흰색 색상 또는 모든 색상으로 배경을 만들거나 .css를 지우면이 방법을 사용할 수 있습니다.
$(this).fadeTo("slow",0.33);
.menu_head {
font-family: arial;font-weight: bold;
font-size:10px;
color: black;
left:3%;
height:7px;
text-indent:10px;
padding: 10px 10px;
cursor: pointer;
position: relative;
margin:1px;
font-weight:bold;
vertical-align: middle;
}
.menu_head1 {
font-family: arial;font-weight: bold;
font-size:10px;
color: black;
left:3%;
height:7px;
text-indent:10px;
padding: 10px 10px;
cursor: pointer;
position: relative;
margin:1px;
font-weight:bold;
vertical-align: middle;
}
.menu_body {
display:none;
}
.menu_body a{
font-family: arial;font-weight: bold;
left:3%;
width: 220px;
height:7px;
text-indent:10px;
position:relative;
padding: 10px 15px;
display:block;
color:#006699;
padding-left:10px;
font-weight:bold;
font-size:10px;
text-decoration:none;
vertical-align: middle;
}
그것이 내 사이트에 적응하려고했습니다의 CSS를 편집 할 수 Example
시도를 참조 CSS. Gudluck
다른 링크. 웹 사이트는 무겁습니다. 로드가 힘들어 – Bert
오우로드되었습니다. 나는이 아픈 코드와 동일한 효과를 내 코드 – Bert