tree 메뉴

jQuery 2010. 10. 14. 12:54

힘들었다.....

남이 만들어놓은것 찾는것도, 그걸 맞게 고쳐 쓰는것도 참 일이구나..ㅠㅠ

.shuffle_menu ul{list-style-position:outside;}  
.shuffle_menu li{background-position:0 -176px; padding:3px 0 2px 16px; cursor:pointer;}  
.shuffle_menu span.folder {display:block; background:url(../images/folder.gif) no-repeat; padding: 0px 0 0px 20px;}  
.shuffle_menu span.file {display:block; background:url(../images/file.gif) no-repeat 0 1px; padding: 0px 0 0px 20px;}
.treeview, .treeview ul {padding: 0; margin: 0; list-style: none;}
.treeview ul {background-color:white; margin-top: 4px;}  
.expandable-hitarea{background:url(../images/icon_folder_minus.gif) no-repeat 0 2px;}  
.collapsable-hitarea{background:url(../images/icon_folder_plus.gif) no-repeat 0 2px;}
.treeview .hitarea {height: 16px; width: 16px; margin-left: -16px; float: left; cursor: pointer;}

<!-- shuffle_menu:str -->
    <div class="shuffle_menu">
     <ul id="tree">
      <li><span class="folder">Folder 1</span>
       <ul>
        <li><span class="file">File 1.1</span>
         <ul>
          <li><span class="file">File 1.1</span></li>
          <li><span class="file">File 1.2</span></li>
         </ul>
        </li>
        <li><span class="file">File 1.2</span></li>
       </ul>
      </li>
      <li><span class="folder">Folder 1</span>
       <ul>
        <li><span class="file">File 1.1</span></li>
        <li><span class="file">File 1.2</span></li>
       </ul>
      </li>
     </ul>
    </div>
    <!-- shuffle_menu:end -->

'jQuery' 카테고리의 다른 글

텍스트 메뉴 롤오버  (0) 2011.06.01
슬라이드 메뉴  (0) 2011.05.23
JQuery 플러그인  (0) 2011.04.06
택스트 on_off 탭메뉴 1  (0) 2011.01.27
슬라이드 스타일 1  (0) 2010.10.08
: