묻고답하기
송동우님 읽어봐주세요.
2011.07.04 20:18
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript" src="</script '>http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script type="text/javascript">
ddaccordion.init({
headerclass: "expandable", //Shared CSS class name of headers group that are expandable
contentclass: "categoryitems", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})
</script>
<style type="text/css">
.arrowlistmenu{
width: 180px; /*width of accordion menu*/
}
.arrowlistmenu .menuheader{ /*CSS class for menu headers in general (expanding or not!)*/
font: bold 14px Arial;
color: white;
background: black url(titlebar.png) repeat-x center left;
margin-bottom: 10px; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 4px 0 4px 10px; /*header text is indented 10px*/
cursor: hand;
cursor: pointer;
}
.arrowlistmenu .openheader{ /*CSS class to apply to expandable header when it's expanded*/
background-image: url(titlebar-active.png);
}
.arrowlistmenu ul{ /*CSS for UL of each sub menu*/
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
}
.arrowlistmenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}
.arrowlistmenu ul li a{
color: #A70303;
background: url(arrowbullet.png) no-repeat center left; /*custom bullet list image*/
display: block;
padding: 2px 0;
padding-left: 19px; /*link text is indented 19px*/
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #dadada;
font-size: 90%;
}
.arrowlistmenu ul li a:visited{
color: #A70303;
}
.arrowlistmenu ul li a:hover{ /*hover state CSS*/
color: #A70303;
background-color: #F3F3F3;
}
</style>
</head>
<body>
<div class="arrowlistmenu">
<h3 class="menuheader expandable">CSS Library</h3>
<ul class="categoryitems">
<li><a href="Horizontal'>http://www.dynamicdrive.com/style/csslibrary/category/C1/">Horizontal CSS Menus</a></li>
<li><a href="Vertical'>http://www.dynamicdrive.com/style/csslibrary/category/C2/">Vertical CSS Menus</a></li>
<li><a href="Image'>http://www.dynamicdrive.com/style/csslibrary/category/C4/">Image CSS</a></li>
<li><a href="Form'>http://www.dynamicdrive.com/style/csslibrary/category/C6/">Form CSS</a></li>
<li><a href="DIVs'>http://www.dynamicdrive.com/style/csslibrary/category/C5/">DIVs and containers</a></li>
<li><a href="Links'>http://www.dynamicdrive.com/style/csslibrary/category/C7/">Links & Buttons</a></li>
<li><a href="Otherhttp://www.dynamicdrive.com/style/csslibrary/all/">Browse All</a></li>
</ul>
<h3 class="menuheader expandable">CSS Drive</h3>
<ul class="categoryitems">
<li><a href="CSS'>http://www.cssdrive.com">CSS Gallery</a></li>
<li><a href="Menu'>http://www.cssdrive.com/index.php/menudesigns/">Menu Gallery</a></li>
<li><a href="Web'>http://www.cssdrive.com/index.php/news/">Web Design News</a></li>
<li><a href="CSS'>http://www.cssdrive.com/index.php/examples/">CSS Examples</a></li>
<li><a href="CSS'>http://www.cssdrive.com/index.php/main/csscompressor/">CSS Compressor</a></li>
<li><a href="CSS'>http://www.dynamicdrive.com/forums/forumdisplay.php?f=6">CSS Forums</a></li>
</ul>
<h3 class="menuheader expandable">JavaScript Kit</h3>
<ul class="categoryitems">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >Free JavaScripts</a></li>
<li><a href="JavaScript'>http://www.javascriptkit.com/javatutors/">JavaScript tutorials</a></li>
<li><a href="JavaScript'>http://www.javascriptkit.com/jsref/">JavaScript Reference</a></li>
<li><a href="DOM'>http://www.javascriptkit.com/domref/">DOM Reference</a></li>
<li><a href="DHTML'>http://www.javascriptkit.com/dhtmltutors/">DHTML & CSS</a></li>
</ul>
<h3 class="menuheader" style="cursor: default">FeedBack</h3>
<div>
Regular contents here. Header does not expand or contact.
</div>
</div>
<p>Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:</p>
<p>
- <a href="current.htm?expandable=0">Expand 1st header within "expandable" header group</a><br />
- <a href="current.htm?expandable=2">Expand 3rd header within "expandable" header group</a><br />
</p>
<p>Helpful links: </p>
<p>
- <a href="Adding'>http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm">Adding arbitrary links hat expand/ collapse the contents</a><br />
- <a href="Taking'>http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment2.htm">Taking advantage of the oninit() and onopenclose() event handlers</a><br />
</p>
</body>
</html>
위 소스를 제 홈피 서브 메뉴에 적용시킽텨고 하는데 ....적용은됩니다.. 그런데 " 작업을 마쳤으나 페이지에 오류가 있습니다." 이렇게뜨네요. 뭐가 문제인지 수정좀 부탁드립니다. 태그생성기에 넣고 결과보기후 뜨는 메세지 아래에 첨부 합니다. 부탁드릴게요
![0.jpg](/files/attach/images/122/128/849/019/e5371193c6a965e796c735018c7f1d3e.jpg)
댓글 0
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
정하엄마 | 제로보드4에서 글쓰기 후에 이동페이지 설정방법 [1] | 2011.07.05 by ezi |
YuYu_ | XE 설치 시 HTTP 404 에러가 납니다. | |
후르방 | 배너/통합검색/자바 관련 질문입니다!! | |
영구만세 | 카테고리를 선택하면 부메뉴가 깨지는 현상 [1] | 2011.07.05 by 영구만세 |
라펠 | 공식사이트 홈페이지자랑게시판 모바일 사진크기 [1] | 2011.07.05 by 김구고 |
H-BNB | 도움좀 부탁합니다. [1] | 2011.07.04 by 날개! |
나의해 | 초보질문. 제대로 인식을 못해요 [2] | 2011.07.04 by 모조키 |
곰돌이3 | xe 사이트 운영중인데요. 로그인이 되지 않아요. [1] | 2011.07.04 by 김구고 |
배정호310 | 구글 광고넣기...고수분들은 보면아실거같은대..도와주세요 [1] | 2011.07.04 by 김구고 |
토드정 | 썸네일 출력이 안됩니다. [3] | 2011.07.04 by 토드정 |
H-BNB | 송동우님 읽어봐주세요. | |
배정호310 | 제발 아무나 답변좀해주세요 몇일째 이러고잇어요 ㅜㅜㅜㅜㅜㅜㅜㅜ | |
이호상627 | DB 선택창에서 mySql 을 선택할 수 없습니다. | |
H-BNB | 모조키님 읽어봐주세요 [2] | 2011.07.04 by 모조키 |
율리안 | 제로보드 가운데 정렬ㅠㅠ [1] | 2011.07.04 by ForHanbi |
alljoy | 서버요청중.....메세지 [1] | 2011.07.04 by 낮은 자 |
jjjnnn | 회원가입폼이 내용에 박히게?하려면 어떻게 하나요 [1] | 2011.07.04 by 모조키 |
H-BNB | 송동우님 읽어봐주세요.(감사합니다) [1] | 2011.07.04 by 모조키 |
낮은 자 | 레이아웃의 문제입니다. [1] | 2011.07.04 by ForHanbi |
아냐저자랴져여 | [최근글, 인기글, 최근댓글 위젯] 문제 해결해주세요~ [1] | 2011.07.04 by 낮은 자 |