디자인만 아는 사람입니다.
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','원래 아이콘');
}
});
이런식으로 처리합니다. 약간 길어져도 토글 효과 나옵니다.
저도 이래저래 해보다가 비슷하게 붙여보았습니다.
필요하신 다른 분들을 위해서도 소스원본을 게시하도록 하겠습니다.
다시 한번 감사드립니다.
즐거운 연말연시 되시길 기원합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 4012 | ||
| 129 | 20년 전 | 2951 | ||
| 128 | 20년 전 | 3692 | ||
| 127 | 20년 전 | 3533 | ||
| 126 | 20년 전 | 3782 | ||
| 125 | 20년 전 | 8599 | ||
| 124 | 20년 전 | 2606 | ||
| 123 | 20년 전 | 3757 | ||
| 122 | 20년 전 | 3216 | ||
| 121 | 20년 전 | 2618 | ||
| 120 | 20년 전 | 2679 | ||
| 119 | 20년 전 | 2592 | ||
| 118 | 20년 전 | 2867 | ||
| 117 |
|
20년 전 | 3070 | |
| 116 | 20년 전 | 5329 | ||
| 115 | 20년 전 | 3934 | ||
| 114 | 20년 전 | 4980 | ||
| 113 | 20년 전 | 6222 | ||
| 112 | 20년 전 | 7329 | ||
| 111 | 20년 전 | 18439 | ||
| 110 | 20년 전 | 6882 | ||
| 109 | 21년 전 | 2890 | ||
| 108 | 21년 전 | 4146 | ||
| 107 |
prosper
|
21년 전 | 2510 | |
| 106 |
prosper
|
21년 전 | 4327 | |
| 105 |
아우겐나이스
|
21년 전 | 2921 | |
| 104 | 21년 전 | 2273 | ||
| 103 | 21년 전 | 2484 | ||
| 102 | 21년 전 | 2270 | ||
| 101 | 21년 전 | 2586 | ||
| 100 | 21년 전 | 1764 | ||
| 99 | 21년 전 | 1578 | ||
| 98 | 21년 전 | 1624 | ||
| 97 | 21년 전 | 2141 | ||
| 96 | 21년 전 | 1893 | ||
| 95 | 21년 전 | 2389 | ||
| 94 | 21년 전 | 3569 | ||
| 93 | 21년 전 | 1571 | ||
| 92 | 21년 전 | 1767 | ||
| 91 | 21년 전 | 3189 | ||
| 90 | 21년 전 | 2348 | ||
| 89 | 21년 전 | 3186 | ||
| 88 | 21년 전 | 2876 | ||
| 87 | 21년 전 | 3302 | ||
| 86 | 21년 전 | 5149 | ||
| 85 | 21년 전 | 2532 | ||
| 84 | 21년 전 | 4834 | ||
| 83 | 21년 전 | 2513 | ||
| 82 | 21년 전 | 3129 | ||
| 81 | 21년 전 | 7642 | ||
| 80 | 21년 전 | 3839 | ||
| 79 | 21년 전 | 3218 | ||
| 78 | 21년 전 | 4703 | ||
| 77 | 21년 전 | 2911 | ||
| 76 | 21년 전 | 6227 | ||
| 75 | 21년 전 | 4478 | ||
| 74 | 21년 전 | 5792 | ||
| 73 | 21년 전 | 3635 | ||
| 72 | 21년 전 | 5977 | ||
| 71 | 21년 전 | 3126 | ||
| 70 | 21년 전 | 2855 | ||
| 69 | 21년 전 | 2648 | ||
| 68 | 21년 전 | 2454 | ||
| 67 | 21년 전 | 2661 | ||
| 66 | 21년 전 | 2683 | ||
| 65 | 21년 전 | 3794 | ||
| 64 | 21년 전 | 2835 | ||
| 63 | 21년 전 | 2465 | ||
| 62 | 21년 전 | 2275 | ||
| 61 | 21년 전 | 3092 | ||
| 60 | 21년 전 | 3142 | ||
| 59 | 21년 전 | 2527 | ||
| 58 | 21년 전 | 2599 | ||
| 57 | 21년 전 | 2979 | ||
| 56 | 21년 전 | 2340 | ||
| 55 | 21년 전 | 2770 | ||
| 54 | 21년 전 | 2136 | ||
| 53 | 21년 전 | 2362 | ||
| 52 | 21년 전 | 2711 | ||
| 51 |
prosper
|
21년 전 | 2360 | |
| 50 |
prosper
|
21년 전 | 2181 | |
| 49 | 21년 전 | 2193 | ||
| 48 | 21년 전 | 2349 | ||
| 47 | 21년 전 | 1945 | ||
| 46 | 21년 전 | 1934 | ||
| 45 | 21년 전 | 2138 | ||
| 44 | 21년 전 | 2373 | ||
| 43 | 21년 전 | 4587 | ||
| 42 |
prosper
|
21년 전 | 2718 | |
| 41 |
prosper
|
21년 전 | 2118 | |
| 40 | 21년 전 | 2186 | ||
| 39 | 21년 전 | 2157 | ||
| 38 | 21년 전 | 2429 | ||
| 37 | 21년 전 | 2577 | ||
| 36 | 21년 전 | 1785 | ||
| 35 | 21년 전 | 4087 | ||
| 34 | 21년 전 | 3861 | ||
| 33 | 21년 전 | 2999 | ||
| 32 |
prosper
|
21년 전 | 2912 | |
| 31 | 21년 전 | 5299 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기