디자인만 아는 사람입니다.
4일째 고생하고 있습니다.
저의 수고를 다른 분에게 전가하는 것같아 죄송한 마음이 크지만
문외한으로서 도움이 꼭 필요하여 질문드립니다.
*내용 : 아래에서 위로 슬라이딩되는 메뉴
위의 그림 1, 2 와 같이 1에서 누르면 2처럼 펼쳐졌다가 2버튼을 다시 누르면 1번 처럼 접히는 형태입니다.
슬라이드 업 소스는 거의 없어 한참을 헤메다가 운좋게 소스를 구했는데 CSS? 부분을 수정해도//특히, 버튼의 위치
를 가운데로// 적용이 잘 되지않아 많이 헤메고 있습니다.
소스는 아래와 같습니다.
--------------------------------------------------------------------------------------
<!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 charset="utf-8" />
<title>toggleSlide Up</title>
<style>
html, body {
height:100%;
}
body {
padding:0;
margin:0;
background:#ffffff;
font-family:돋움, DOTUM,Arial, Helvetica, sans-serif;
font-size:14px
}
#container {
width:1005px;
height:100%;
margin:0 auto;
position:relative;
}
#about_popup {
width:1005px;
height:320px;
padding:20px;
background:#fff;
position:absolute;
left:0;
bottom:0;
display:none;
-moz-border-radius-topleft:0px;
-moz-border-radius-topright:0px;
-webkit-border-top-left-radius:0px;
-webkit-border-top-right-radius:0px;
}
#about_popup h1 {
color:#fff;
margin:0;
font-size:100px;
}
#about_popup p {
margin:0;
color:#fff;
}
#bottom_bar {
width:130px;
height:40px;
background:#cc0000;
background:-moz-linear-gradient(#FE1313,#cc0000);
background:-webkit-gradient(linear, left top, left bottom, from(#FE1313), to(#cc0000));
box-shadow:none;
position:absolute;
bottom:0;
}
#bottom_bar ul {
list-style:none;
width:960px;
margin:0 auto;
}
#bottom_bar ul li {
float:left;
line-height:40px;
}
#bottom_bar ul li a {
color:#fff;
text-decoration:none;
margin-right:20px;
}
/*--- Page styles ---*/
#back {
position:bottom:0;
top:10px;
left:center;
background:#ccc;
width:150px;
height:25px;
-moz-border-radius:0px;
-webkit-border-radius:0px;
border-radius:0px;
text-align:center;
padding-top:0px;
opacity:0.5;
}
#back:hover {
opacity:1;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
$(function () {
$('#bottom_menu a').click(function (e) {
$('#about_popup').slideToggle();
});
});
</script>
</head>
<body>
<div id="container">
<div id="about_popup">
<h1>About</h1>
<p>
<img src="map.jpg" width="1005" height="294">
</p>
</div>
</div>
<table>
<tr>
<td height=100>
<div id="bottom_bar">
<ul id="bottom_menu">
<li><a href="#about"><img src="btn.png"</a></il>
</ul>
</div>
</td>
</tr>
<tr>
<td height=100></td>
</tr>
</table>
</body>
</html>
--------------------------------------------------------------------
읽어주셔서 감사드리고 고수분들의 좋은 답변 기다리겠습니다. 물론, 저도 계속 연구하고 있겠습니다.
감사합니다.
댓글 2개
<input type="hidden" name="tmp_slider_val" value="" />
이런식으로 빈값을 만들곳을 하나 만들어서
$('#bottom_menu a').click(function (e) {
var status = $('[name=tmp_slider_val]').val();
if(status == 1)
{
$('#about_popup').slideUp();
$('[name=tmp_slider_val]').val(0);
$(this).attr('src','바뀌는 아이콘');
}
else
{
$('#about_popup').slideDown();
$('[name=tmp_slider_val]').val(1);
$(this).attr('src','원래 아이콘');
}
});
이런식으로 처리합니다. 약간 길어져도 토글 효과 나옵니다.
저도 이래저래 해보다가 비슷하게 붙여보았습니다.
필요하신 다른 분들을 위해서도 소스원본을 게시하도록 하겠습니다.
다시 한번 감사드립니다.
즐거운 연말연시 되시길 기원합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 630 | 19년 전 | 2363 | ||
| 629 |
|
19년 전 | 2025 | |
| 628 |
|
19년 전 | 3137 | |
| 627 |
|
19년 전 | 2041 | |
| 626 |
|
19년 전 | 2073 | |
| 625 |
|
19년 전 | 1733 | |
| 624 |
|
19년 전 | 2243 | |
| 623 | 19년 전 | 2211 | ||
| 622 |
|
19년 전 | 2519 | |
| 621 |
|
19년 전 | 2927 | |
| 620 |
|
19년 전 | 2421 | |
| 619 | 19년 전 | 2491 | ||
| 618 | 19년 전 | 3520 | ||
| 617 |
|
19년 전 | 3242 | |
| 616 |
|
19년 전 | 3234 | |
| 615 |
|
19년 전 | 3058 | |
| 614 |
|
19년 전 | 2055 | |
| 613 |
|
19년 전 | 2404 | |
| 612 |
|
19년 전 | 2249 | |
| 611 |
|
19년 전 | 2093 | |
| 610 |
|
19년 전 | 2529 | |
| 609 |
|
19년 전 | 2439 | |
| 608 |
|
19년 전 | 2827 | |
| 607 | 19년 전 | 2202 | ||
| 606 | 19년 전 | 3545 | ||
| 605 | 19년 전 | 2005 | ||
| 604 | 19년 전 | 2626 | ||
| 603 | 19년 전 | 1627 | ||
| 602 |
|
19년 전 | 2849 | |
| 601 | 19년 전 | 3082 | ||
| 600 |
|
19년 전 | 2159 | |
| 599 | 19년 전 | 2011 | ||
| 598 | 19년 전 | 2494 | ||
| 597 | 19년 전 | 2402 | ||
| 596 |
|
19년 전 | 3084 | |
| 595 |
|
19년 전 | 6771 | |
| 594 | 19년 전 | 2719 | ||
| 593 | 19년 전 | 3195 | ||
| 592 |
|
19년 전 | 3098 | |
| 591 |
|
19년 전 | 1946 | |
| 590 | 19년 전 | 3373 | ||
| 589 | 19년 전 | 2223 | ||
| 588 |
|
19년 전 | 2708 | |
| 587 | 19년 전 | 2352 | ||
| 586 |
|
19년 전 | 4373 | |
| 585 | 19년 전 | 2507 | ||
| 584 | 19년 전 | 2772 | ||
| 583 |
|
19년 전 | 3539 | |
| 582 |
|
19년 전 | 3729 | |
| 581 |
|
19년 전 | 3265 | |
| 580 | 19년 전 | 2490 | ||
| 579 | 19년 전 | 3099 | ||
| 578 | 19년 전 | 4014 | ||
| 577 | 19년 전 | 3833 | ||
| 576 | 19년 전 | 1781 | ||
| 575 |
|
19년 전 | 2233 | |
| 574 |
|
19년 전 | 5409 | |
| 573 | 19년 전 | 6745 | ||
| 572 | 19년 전 | 2584 | ||
| 571 | 19년 전 | 2119 | ||
| 570 | 19년 전 | 2608 | ||
| 569 | 19년 전 | 3323 | ||
| 568 | 19년 전 | 3548 | ||
| 567 | 19년 전 | 2989 | ||
| 566 | 19년 전 | 2610 | ||
| 565 |
|
19년 전 | 4732 | |
| 564 |
|
19년 전 | 6744 | |
| 563 |
|
19년 전 | 5017 | |
| 562 |
|
19년 전 | 5965 | |
| 561 |
|
19년 전 | 2711 | |
| 560 |
|
19년 전 | 2573 | |
| 559 |
|
19년 전 | 2237 | |
| 558 |
|
19년 전 | 2312 | |
| 557 | 19년 전 | 4599 | ||
| 556 |
|
19년 전 | 4678 | |
| 555 | 19년 전 | 2518 | ||
| 554 | 19년 전 | 2188 | ||
| 553 | 19년 전 | 2532 | ||
| 552 |
|
19년 전 | 3183 | |
| 551 | 19년 전 | 2949 | ||
| 550 |
|
19년 전 | 1907 | |
| 549 |
|
19년 전 | 1976 | |
| 548 |
|
19년 전 | 3160 | |
| 547 |
|
19년 전 | 2361 | |
| 546 |
|
19년 전 | 3634 | |
| 545 |
|
19년 전 | 2571 | |
| 544 |
|
19년 전 | 1866 | |
| 543 |
|
19년 전 | 2465 | |
| 542 |
|
19년 전 | 1738 | |
| 541 |
|
19년 전 | 1420 | |
| 540 |
|
19년 전 | 1561 | |
| 539 |
|
19년 전 | 1813 | |
| 538 |
|
19년 전 | 1600 | |
| 537 |
|
19년 전 | 1804 | |
| 536 |
|
19년 전 | 1572 | |
| 535 |
|
19년 전 | 1965 | |
| 534 |
|
19년 전 | 1854 | |
| 533 |
|
19년 전 | 1464 | |
| 532 |
|
19년 전 | 1454 | |
| 531 |
|
19년 전 | 1374 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기