디자인만 아는 사람입니다.
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','원래 아이콘');
}
});
이런식으로 처리합니다. 약간 길어져도 토글 효과 나옵니다.
저도 이래저래 해보다가 비슷하게 붙여보았습니다.
필요하신 다른 분들을 위해서도 소스원본을 게시하도록 하겠습니다.
다시 한번 감사드립니다.
즐거운 연말연시 되시길 기원합니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5430 | 13년 전 | 1462 | ||
| 5429 |
phpman
|
13년 전 | 868 | |
| 5428 | 13년 전 | 1257 | ||
| 5427 |
phpman
|
13년 전 | 854 | |
| 5426 |
PHPㅡASP프로그래머
|
13년 전 | 1091 | |
| 5425 | 13년 전 | 799 | ||
| 5424 | 13년 전 | 743 | ||
| 5423 | 13년 전 | 747 | ||
| 5422 | 13년 전 | 1840 | ||
| 5421 |
PHPㅡASP프로그래머
|
13년 전 | 810 | |
| 5420 |
|
13년 전 | 1637 | |
| 5419 | 13년 전 | 830 | ||
| 5418 | 13년 전 | 714 | ||
| 5417 | 13년 전 | 639 | ||
| 5416 | 13년 전 | 998 | ||
| 5415 | 13년 전 | 792 | ||
| 5414 | 13년 전 | 738 | ||
| 5413 | 13년 전 | 819 | ||
| 5412 | 13년 전 | 1379 | ||
| 5411 | 13년 전 | 899 | ||
| 5410 | 13년 전 | 1293 | ||
| 5409 | 13년 전 | 4284 | ||
| 5408 | 13년 전 | 1003 | ||
| 5407 |
ckflower
|
13년 전 | 2452 | |
| 5406 |
ddokkani
|
13년 전 | 1404 | |
| 5405 | 13년 전 | 1606 | ||
| 5404 | 13년 전 | 684 | ||
| 5403 | 13년 전 | 717 | ||
| 5402 |
밤거리빵빵
|
13년 전 | 6033 | |
| 5401 |
PHPㅡASP프로그래머
|
13년 전 | 991 | |
| 5400 |
|
13년 전 | 1224 | |
| 5399 | 13년 전 | 5022 | ||
| 5398 |
부산아무개
|
13년 전 | 1673 | |
| 5397 | 13년 전 | 2468 | ||
| 5396 | 13년 전 | 1861 | ||
| 5395 | 13년 전 | 1070 | ||
| 5394 | 13년 전 | 1152 | ||
| 5393 | 13년 전 | 1059 | ||
| 5392 |
아르toria
|
13년 전 | 777 | |
| 5391 |
|
13년 전 | 1158 | |
| 5390 |
디지털홍익인간
|
13년 전 | 7721 | |
| 5389 | 13년 전 | 3124 | ||
| 5388 | 13년 전 | 880 | ||
| 5387 |
WaaNee
|
13년 전 | 1923 | |
| 5386 | 13년 전 | 2119 | ||
| 5385 | 13년 전 | 4638 | ||
| 5384 | 13년 전 | 955 | ||
| 5383 | 13년 전 | 2149 | ||
| 5382 | 13년 전 | 680 | ||
| 5381 |
JacobJeon
|
13년 전 | 1097 | |
| 5380 | 13년 전 | 1148 | ||
| 5379 | 13년 전 | 689 | ||
| 5378 | 13년 전 | 10483 | ||
| 5377 | 13년 전 | 883 | ||
| 5376 | 13년 전 | 1469 | ||
| 5375 | 13년 전 | 851 | ||
| 5374 | 13년 전 | 856 | ||
| 5373 | 13년 전 | 2073 | ||
| 5372 | 13년 전 | 1703 | ||
| 5371 |
|
13년 전 | 1651 | |
| 5370 | 13년 전 | 2916 | ||
| 5369 |
아자12345
|
13년 전 | 1025 | |
| 5368 | 13년 전 | 719 | ||
| 5367 | 13년 전 | 1098 | ||
| 5366 | 13년 전 | 2159 | ||
| 5365 | 13년 전 | 1577 | ||
| 5364 | 13년 전 | 1107 | ||
| 5363 |
|
13년 전 | 1381 | |
| 5362 | 13년 전 | 838 | ||
| 5361 | 13년 전 | 1410 | ||
| 5360 | 13년 전 | 772 | ||
| 5359 | 13년 전 | 1410 | ||
| 5358 | 13년 전 | 1246 | ||
| 5357 | 13년 전 | 1646 | ||
| 5356 | 13년 전 | 1134 | ||
| 5355 |
techer
|
13년 전 | 1384 | |
| 5354 |
|
13년 전 | 1035 | |
| 5353 | 13년 전 | 752 | ||
| 5352 | 13년 전 | 843 | ||
| 5351 | 13년 전 | 1224 | ||
| 5350 | 13년 전 | 755 | ||
| 5349 |
|
13년 전 | 1445 | |
| 5348 | 13년 전 | 854 | ||
| 5347 | 13년 전 | 760 | ||
| 5346 | 13년 전 | 882 | ||
| 5345 | 13년 전 | 818 | ||
| 5344 |
후라보노보노
|
13년 전 | 1960 | |
| 5343 | 13년 전 | 1165 | ||
| 5342 | 13년 전 | 1130 | ||
| 5341 | 13년 전 | 2076 | ||
| 5340 |
|
13년 전 | 1120 | |
| 5339 |
AMDbest
|
13년 전 | 744 | |
| 5338 | 13년 전 | 739 | ||
| 5337 |
프로프리랜서
|
13년 전 | 1487 | |
| 5336 |
프로프리랜서
|
13년 전 | 933 | |
| 5335 | 13년 전 | 731 | ||
| 5334 |
|
13년 전 | 983 | |
| 5333 | 13년 전 | 2849 | ||
| 5332 | 13년 전 | 1534 | ||
| 5331 | 13년 전 | 1334 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기