자바스크립트 관련 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자체에서 처리하시는게 좋을듯 한데요
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 3966 | ||
| 129 | 20년 전 | 2905 | ||
| 128 | 20년 전 | 3631 | ||
| 127 | 20년 전 | 3429 | ||
| 126 | 20년 전 | 3723 | ||
| 125 | 20년 전 | 8559 | ||
| 124 | 20년 전 | 2583 | ||
| 123 | 20년 전 | 3733 | ||
| 122 | 20년 전 | 3189 | ||
| 121 | 20년 전 | 2588 | ||
| 120 | 20년 전 | 2649 | ||
| 119 | 20년 전 | 2563 | ||
| 118 | 20년 전 | 2850 | ||
| 117 |
|
20년 전 | 3027 | |
| 116 | 20년 전 | 5289 | ||
| 115 | 20년 전 | 3890 | ||
| 114 | 20년 전 | 4940 | ||
| 113 | 20년 전 | 6194 | ||
| 112 | 20년 전 | 7316 | ||
| 111 | 20년 전 | 18418 | ||
| 110 | 20년 전 | 6867 | ||
| 109 | 20년 전 | 2866 | ||
| 108 | 20년 전 | 4122 | ||
| 107 |
prosper
|
20년 전 | 2467 | |
| 106 |
prosper
|
20년 전 | 4292 | |
| 105 |
아우겐나이스
|
20년 전 | 2885 | |
| 104 | 20년 전 | 2245 | ||
| 103 | 20년 전 | 2462 | ||
| 102 | 20년 전 | 2212 | ||
| 101 | 20년 전 | 2544 | ||
| 100 | 20년 전 | 1723 | ||
| 99 | 20년 전 | 1555 | ||
| 98 | 20년 전 | 1605 | ||
| 97 | 20년 전 | 2101 | ||
| 96 | 20년 전 | 1857 | ||
| 95 | 20년 전 | 2355 | ||
| 94 | 20년 전 | 3548 | ||
| 93 | 20년 전 | 1543 | ||
| 92 | 20년 전 | 1737 | ||
| 91 | 20년 전 | 3154 | ||
| 90 | 20년 전 | 2330 | ||
| 89 | 20년 전 | 3154 | ||
| 88 | 20년 전 | 2858 | ||
| 87 | 20년 전 | 3284 | ||
| 86 | 20년 전 | 5103 | ||
| 85 | 20년 전 | 2505 | ||
| 84 | 20년 전 | 4803 | ||
| 83 | 20년 전 | 2480 | ||
| 82 | 20년 전 | 3094 | ||
| 81 | 20년 전 | 7598 | ||
| 80 | 20년 전 | 3803 | ||
| 79 | 20년 전 | 3193 | ||
| 78 | 20년 전 | 4679 | ||
| 77 | 20년 전 | 2881 | ||
| 76 | 20년 전 | 6204 | ||
| 75 | 20년 전 | 4462 | ||
| 74 | 20년 전 | 5766 | ||
| 73 | 20년 전 | 3615 | ||
| 72 | 20년 전 | 5950 | ||
| 71 | 20년 전 | 3094 | ||
| 70 | 20년 전 | 2821 | ||
| 69 | 20년 전 | 2616 | ||
| 68 | 20년 전 | 2426 | ||
| 67 | 20년 전 | 2637 | ||
| 66 | 20년 전 | 2656 | ||
| 65 | 20년 전 | 3776 | ||
| 64 | 20년 전 | 2802 | ||
| 63 | 20년 전 | 2442 | ||
| 62 | 20년 전 | 2245 | ||
| 61 | 20년 전 | 3046 | ||
| 60 | 20년 전 | 3118 | ||
| 59 | 20년 전 | 2491 | ||
| 58 | 20년 전 | 2576 | ||
| 57 | 20년 전 | 2949 | ||
| 56 | 20년 전 | 2298 | ||
| 55 | 20년 전 | 2738 | ||
| 54 | 20년 전 | 2110 | ||
| 53 | 20년 전 | 2332 | ||
| 52 | 20년 전 | 2680 | ||
| 51 |
prosper
|
20년 전 | 2333 | |
| 50 |
prosper
|
20년 전 | 2151 | |
| 49 | 20년 전 | 2159 | ||
| 48 | 20년 전 | 2313 | ||
| 47 | 20년 전 | 1914 | ||
| 46 | 20년 전 | 1914 | ||
| 45 | 20년 전 | 2122 | ||
| 44 | 20년 전 | 2347 | ||
| 43 | 21년 전 | 4562 | ||
| 42 |
prosper
|
21년 전 | 2696 | |
| 41 |
prosper
|
21년 전 | 2098 | |
| 40 | 21년 전 | 2163 | ||
| 39 | 21년 전 | 2128 | ||
| 38 | 21년 전 | 2397 | ||
| 37 | 21년 전 | 2550 | ||
| 36 | 21년 전 | 1766 | ||
| 35 | 21년 전 | 4058 | ||
| 34 | 21년 전 | 3839 | ||
| 33 | 21년 전 | 2977 | ||
| 32 |
prosper
|
21년 전 | 2883 | |
| 31 | 21년 전 | 5250 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기