스크립트관련 질문입니다.

Capture3.gif
http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&page=2&wr_id=6341&ca_id= 에 포함했던 소스입니다../

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
?>

<style>
<!--
.dragging{position:relative;cursor:hand
}

#divbar{
cursor:hand;
position:absolute;
border:1px solid #E5E6E0;
background-color:#ffffff;
height:20;
width:150;
top:0;
}
#divsub{
width:150;
position:absolute;
top:22;
background-color:#ffffff;
border-right-width:1; border-bottom-width:1; border-left-width:1; border-right-color:rgb(229,230,224); border-bottom-color:rgb(229,230,224); border-left-color:rgb(229,230,224); border-right-style:solid; border-bottom-style:solid; border-left-style:solid;
padding:3px;
}
-->
</style>
<!------------------------------------------------------------->

<script language="JavaScript1.1">
function open_close(){
if (divsub.style.display=='')
divsub.style.display='none'
else
divsub.style.display=''
}
</script>

<!------------------------------------------------------------->

<div id="staticbuttons" valign="top" style="width:150px; height:90px; position:absolute; left:50px; top:50px; z-index:102; visibility:visible;">
<table id="divbar" valign="top" cellpadding="0" cellspacing="0" width="150" height="1" style="border-collapse:collapse"><tr bgcolor="#FFFFFF">
<td width="116" height="10"><p align="left">&nbsp;</td>
<td width="28" height="10"> <p>&nbsp;</p>

</td>
<td width="31" height="10">
</td>
<td width="10%" height="10"> <img align="right" src="./image/barbutton.gif" onClick="open_close()" width="25" height="13"></td>
</tr>
</table>
<table id="divsub" style="border-collapse:collapse;" valign="top" width='150' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td align=left width="150" valign="top">
<p>&nbsp;</p>
</td>
</table>
</div>

이것을 반대로 윈도우 오픈시에 닫혀있고 클릭시 열리게 만들려고 하는데...좀..버벅대고 있습니다../..
도움리플을 기다랍니다../

첨부파일

Capture3.gif (2 KB)
0회 2005-03-20 11:57
|

댓글 4개

^^;;..완두콩님..감사합니다.
맞는거 같습니다..
이제보니 제가..셀에 메치되는 스타일을 안정했더군요..
table id="divsub" style="border-collapse:collapse;display:none"

(원글이 없으니... 더이상은 어찌해 볼 방법이 없네요...
자세한 에러내용이나, 에러나는 주소가 없는 글에 답글다는 느낌만이... )
^^~@....
그렇게 간단하지만은 않네요..
사실은..레이어가 움직이는 것이 아니라..레이어 안에서 셀이움직이는거거든요..
아무래도..완전한레이어 형태로 스크립트부터 다시짜야할 듯....
있는것 그대로 쓸려니..묘안이 없네요.....
divsub.style.display='none'
else
divsub.style.display=''
부분과
<div id="staticbuttons" valign="top" style="width:150px; height:90px; position:absolute; left:50px; top:50px; z-index:102; visibility:visible;">
부분을 수정해주시면 될꺼 같은데요..

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고