CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

프리랜서 커뮤니티

    <script>
function toggleD(obj) {
if (obj.style.display == 'none') obj.style.display = ''; else obj.style.display = 'none'; }
</script>

<? $i++ ?>
<a style='cursor:hand' onclick=toggleD(comment_<?=$i?>);>comment</a>

<div id=comment_<?=$i?> style='display:none'>
내용
</div>

추천한 사람

 
  • Profile
    2013 년 08 월 09 일 (01:11)
    <script> 
    function toggleD(obj) { 
    if (obj.style.display == 'none') obj.style.display = ''; else obj.style.display = 'none'; } 
    </script> 


    <a style='cursor:hand' onclick="toggleD(comment);">comment</a>

    <div id="comment" style='display:none'>
    내용
    </div>
    답변 달기