자바스크립트 관련 PHP세션 질문입니다...(_ _);;
<scRIPT LANGUAGE="Javascript">
var side_content = function() {
var __sidecontent = document.getElementById('sidecontent');
var __sidebtn = document.getElementById('_sidebtn');
if(__sidecontent.style.display != "none") {
__sidecontent.style.display = "none";
__sidebtn.src="/img/btn_side_open.png";
} else {
__sidecontent.style.display = "block";
__sidebtn.src="/img/btn_side_close.png";
}
}
</scRIPT>
----------------------------------------------------------------------------------------
<style type="text/css">
#sidecontent { position:relative; display:block; width:250px; height:100%; background-color:#f4f4f4;}
#sidecontent .menu-content { margin:5px 0 0 0; border-top:1px solid #D9D9D9; border-bottom:1px solid #D9D9D9; background-color:#EFEFEF; padding:5px; }
#sidecontent .menu-content a { letter-spacing:-1px; color:#484848; padding:0 5px 0 5px; }
#sidecontent .menu-content a:hover { text-decoration:underline; }
#sidecontent .menu-content .menuline { margin:5px 0 5px 0; }
.btn_side { position:fixed; top:50%; bottom:50%; vertical-align: middle; text-align:center; }
</style>
----------------------------------------------------------------------------------------
<table id="left">
<td><div align="left" valign="top" id="sidecontent">
<div class="latest">test</div>
</div></div></td><td>
<a href="#" onclick="side_content();" style="cursor:hand;" class="btn_side"><img id='_sidebtn' src="<?=$g4[path]?>/img/btn_side_close.png" border="0"></a></td>
</table>
----------------------------------------------------------------------------------------
<!-- btn_side_close.png 이미지를 클릭하면 왼쪽에서사이드컨텐츠가 사라지며 btn_side_close.png 이미지가 btn_side_open.png 이미지로 바뀐다. 또한 btn_side_open.png 이미지를 클릭하면 사이드컨텐츠가 나타나며 btn_side_close.png 이미지로 바뀐다. -->
여기서 idecontent.style.display가 block상태로 다른페이지로 넘어가도 유지되도록하고싶습니다. 어떻게 해야 유지되는지에 대해 방법을 질문합니다.
댓글 1개
배우는이군
13년 전
이런문제는 굳이 세션을 넘기시지 않아도 side_content(); 를 실행했을때
document.getElementById("test").value = "block 이나 none" 임의로 값을 넣어서
링크 가져갈때 저 vlaue 값을 가져가서 css자체에서 처리하시는게 좋을듯 한데요
document.getElementById("test").value = "block 이나 none" 임의로 값을 넣어서
링크 가져갈때 저 vlaue 값을 가져가서 css자체에서 처리하시는게 좋을듯 한데요
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7730 | 10년 전 | 1315 | ||
| 7729 | 10년 전 | 1173 | ||
| 7728 |
잘살아보자
|
10년 전 | 614 | |
| 7727 |
잘살아보자
|
10년 전 | 510 | |
| 7726 |
잘살아보자
|
10년 전 | 842 | |
| 7725 |
잘살아보자
|
10년 전 | 569 | |
| 7724 |
잘살아보자
|
10년 전 | 484 | |
| 7723 |
잘살아보자
|
10년 전 | 548 | |
| 7722 |
잘살아보자
|
10년 전 | 488 | |
| 7721 |
잘살아보자
|
10년 전 | 518 | |
| 7720 |
잘살아보자
|
10년 전 | 483 | |
| 7719 |
비긴어게인
|
10년 전 | 701 | |
| 7718 |
|
10년 전 | 2548 | |
| 7717 |
잘살아보자
|
10년 전 | 670 | |
| 7716 |
잘살아보자
|
10년 전 | 414 | |
| 7715 |
잘살아보자
|
10년 전 | 446 | |
| 7714 |
잘살아보자
|
10년 전 | 511 | |
| 7713 | 10년 전 | 1792 | ||
| 7712 | 10년 전 | 1730 | ||
| 7711 | 10년 전 | 1117 | ||
| 7710 | 10년 전 | 1409 | ||
| 7709 | 10년 전 | 1529 | ||
| 7708 | 10년 전 | 1470 | ||
| 7707 | 10년 전 | 866 | ||
| 7706 |
별지기천사
|
10년 전 | 581 | |
| 7705 | 10년 전 | 1085 | ||
| 7704 |
ICONdesignstudio
|
10년 전 | 639 | |
| 7703 | 10년 전 | 605 | ||
| 7702 |
|
10년 전 | 742 | |
| 7701 | 10년 전 | 1430 | ||
| 7700 | 10년 전 | 1116 | ||
| 7699 | 10년 전 | 586 | ||
| 7698 | 10년 전 | 1159 | ||
| 7697 | 10년 전 | 5183 | ||
| 7696 | 10년 전 | 672 | ||
| 7695 | 10년 전 | 1697 | ||
| 7694 | 10년 전 | 1081 | ||
| 7693 | 10년 전 | 1568 | ||
| 7692 | 10년 전 | 1312 | ||
| 7691 | 10년 전 | 836 | ||
| 7690 | 10년 전 | 1398 | ||
| 7689 | 10년 전 | 1028 | ||
| 7688 | 10년 전 | 634 | ||
| 7687 |
파랑새1597
|
10년 전 | 613 | |
| 7686 | 10년 전 | 864 | ||
| 7685 | 10년 전 | 1352 | ||
| 7684 | 10년 전 | 811 | ||
| 7683 | 10년 전 | 1120 | ||
| 7682 | 10년 전 | 1038 | ||
| 7681 | 10년 전 | 681 | ||
| 7680 | 10년 전 | 998 | ||
| 7679 | 10년 전 | 521 | ||
| 7678 | 10년 전 | 751 | ||
| 7677 | 10년 전 | 652 | ||
| 7676 |
|
10년 전 | 958 | |
| 7675 |
|
10년 전 | 1194 | |
| 7674 | 10년 전 | 1058 | ||
| 7673 | 10년 전 | 765 | ||
| 7672 | 10년 전 | 1106 | ||
| 7671 | 10년 전 | 915 | ||
| 7670 | 10년 전 | 684 | ||
| 7669 |
mashmellow
|
10년 전 | 1241 | |
| 7668 | 10년 전 | 729 | ||
| 7667 | 10년 전 | 1026 | ||
| 7666 |
senseme
|
10년 전 | 669 | |
| 7665 | 10년 전 | 523 | ||
| 7664 | 10년 전 | 1907 | ||
| 7663 |
mixx애교
|
10년 전 | 988 | |
| 7662 | 10년 전 | 1058 | ||
| 7661 |
hkhkah
|
10년 전 | 801 | |
| 7660 | 10년 전 | 1076 | ||
| 7659 |
커네드커네드
|
10년 전 | 946 | |
| 7658 |
바람돌이팡
|
10년 전 | 688 | |
| 7657 | 10년 전 | 1176 | ||
| 7656 | 10년 전 | 1587 | ||
| 7655 | 10년 전 | 1006 | ||
| 7654 |
개발짜증나
|
10년 전 | 868 | |
| 7653 |
네이비칼라
|
10년 전 | 893 | |
| 7652 |
밥먹고합시다
|
10년 전 | 819 | |
| 7651 |
플라이SINJI
|
10년 전 | 1523 | |
| 7650 |
개발짜증나
|
10년 전 | 1430 | |
| 7649 | 10년 전 | 461 | ||
| 7648 |
이미영ㅇㅇ
|
10년 전 | 883 | |
| 7647 | 10년 전 | 453 | ||
| 7646 | 10년 전 | 823 | ||
| 7645 | 10년 전 | 2335 | ||
| 7644 | 10년 전 | 829 | ||
| 7643 |
|
10년 전 | 2883 | |
| 7642 | 10년 전 | 1527 | ||
| 7641 | 10년 전 | 1150 | ||
| 7640 |
개발짜증나
|
10년 전 | 479 | |
| 7639 |
|
10년 전 | 823 | |
| 7638 |
개발짜증나
|
10년 전 | 1145 | |
| 7637 | 10년 전 | 1565 | ||
| 7636 | 10년 전 | 2921 | ||
| 7635 | 10년 전 | 1711 | ||
| 7634 | 10년 전 | 1899 | ||
| 7633 | 10년 전 | 2362 | ||
| 7632 | 10년 전 | 3968 | ||
| 7631 |
|
10년 전 | 1554 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기