묻고답하기



http://dolphinu.ivyro.net/hj.htm


↑ 다른 홈페이지에서 자바스크립트 강좌를 보고 적용시킨 것입니다.

소스는

<head> </head> 사이에





<style type="text/css">
.link {position:absolute;left:0;width:100%;height:0;background:efefef;overflow:hidden;visibility:hidden;}
.title {position:relative;cursor:pointer;width:100%;background:c0c0c0;font-family:tahoma;font-size:11px;left:2;height:15;overflow:hidden;}
.title_o {position:relative;cursor:pointer;width:100%;background:c0c0c0;font-family:tahoma;font-size:11px;left:2;height:15;overflow:hidden;}
.text {position:relative;text-align:justify;margin:10px;font-family:tahoma;font-size:11px;color:#000000;overflow:hidden;height:90%}

</style>

<script type="text/javascript">
<!--
var object = new Array();

function Slide(N,oCont){
this.N = N;
this.S = 1.1;
this.object = new Array();

this.CObj = function (parent,N){

this.parent = parent;
this.N = N;
this.obj = parent.frm[N];
this.tit = this.obj.firstChild;
this.div = this.obj.getElementsByTagName("div")[1];
this.div.style.visibility = "hidden";
this.y0 = N * 18;
this.Y1 = this.y0;
this.obj.style.top = this.y0;
this.obj.style.height = parent.H - (parent.NF-1) * 18 - 3;
this.obj.style.visibility = "visible";
this.obj.parent = this;
this.run = false;

this.move = function(){
with(this){
dy = (y1-y0)/parent.S;
if(Math.abs(dy)>.1){
y0+=dy;
obj.style.top = Math.round(y0);
setTimeout("object["+parent.N+"].object["+N+"].move();", 16);
} else {
run = false;
if(dy>0)div.style.visibility="hidden";
else if(N>0)parent.object[N-1].div.style.visibility="hidden";
}
}
}

this.obj.onmouseover = function(){
with(this.parent){
if(!run){
run = true;
div.style.visibility="visible";
for(i=0;i<parent.NF;i++)parent.object[i].tit.className = "title";
tit.className = "title_o";
for(i=0;i<=N;i++){
parent.object[i].y1 = i*18;
parent.object[i].move();
}
for(i=N+1;i<parent.NF;i++){
parent.object[i].y1 = parent.H-(parent.NF-i)*18;
parent.object[i].move();
}
}
}
}
}

this.frm = document.getElementById(oCont);
this.H = parseInt(this.frm.style.height);
this.frm = this.frm.getElementsByTagName("span");
this.NF = this.frm.length;
for(i=0;i<this.NF;i++) this.object[i] = new this.CObj(this, i);
this.object[0].obj.onmouseover();
this.S = 10;
}

onload = function() {
object[0] = new Slide(0, "frames");
}

//-->
</script>










<body> </body>사이에





<div id="frames" style="width:160; height:200; position:absolute; left:256px; top:74px; z-index:1; overflow:hidden">

<span class="link"><div class="title">Main MENU 01</div>
<div class="text">
- <a href="http://yoonmi.net" target="_blank">SUB MENU 01</a><br>
- SUB MENU 01<br>
- SUB MENU 01<br>
- SUB MENU 01<br>
</div>
</span>
<span class="link"><div class="title">Main MENU 02</div>
<div class="text">
- SUB MENU 02<br>
- SUB MENU 02<br>
- SUB MENU 02<br>
- SUB MENU 02<br>
</div>
</span>
<span class="link"><div class="title">Main MENU 03</div>
<div class="text">
- SUB MENU 03<br>
- SUB MENU 03<br>
- SUB MENU 03<br>
- SUB MENU 03<br>
</div>
</span>
<span class="link"><div class="title">Main MENU 04</div>
<div class="text">
- SUB MENU 04<br>
- SUB MENU 04<br>
- SUB MENU 04<br>
- SUB MENU 04<br>
</div>
</span>
<span class="link"><div class="title">Main MENU 05</div>
<div class="text">
- SUB MENU 05<br>
- SUB MENU 05<br>
- SUB MENU 05<br>
- SUB MENU 05<br>
</div>
</span>
<span class="link"><div class="title">Main MENU 06</div>
<div class="text">
- SUB MENU 06<br>
- SUB MENU 06<br>
- SUB MENU 06<br>
- SUB MENU 06<br>
</div>
</span>
<span class="link"><div class="title">Main MENU 07</div>
<div class="text">
- SUB MENU 07<br>
- SUB MENU 07<br>
- SUB MENU 07<br>
- SUB MENU 07<br>
</div>
</span>
</div>



소스의 내용은 ↑와 같습니다.
그런데 제가 90(가로)X35(세로)<픽셀단위>의 이미지를 Main Menu와 Sub Menu에 넣어서 사용하고 싶거든요...
그러면 어떤 부분을 수정해야 하나요?
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
연시랑 멤버의 정보의 몇개를 공개/비공개 설정을 주고 싶습니다. [2] 2013.08.31 by 연시랑
스밀걸 모바일에서는 위젯 사용이 안되나요?  
samsick92 포트포워딩에 대하여 질문드립니다. [2] 2013.08.31 by 미디안
레비어스 회원 닉네임 누르면 나오는 팝업 창 [1] 2013.08.31 by 컴퓨터매니아
하늘384 관리자 로그인 문제 [1] 2013.08.31 by 컴퓨터매니아
레비어스 조회수 아예 없애기 [2] 2013.08.31 by 딸꾹질
믕수 아이디/비밀번호 찾기 오류납니다 ㅠㅠ [1] 2013.08.31 by 컴퓨터매니아
samsick92 xe 설치후 127.0.0.1 화면이 바뀌지 않습니다. [1] file 2013.08.31 by 컴퓨터매니아
moonsoo77 어드민 페이지 에러 및 일반페이지 메세지 [1] 2013.08.30 by 컴퓨터매니아
마이꿈이 새창과 현재창이 동시에 새창링크로 바껴버립니다 [1] 2013.08.30 by 딸꾹질
손자 도메인 고정 질문합니다~~ [2] 2013.08.30 by 꿈섬
사이트지원 추천글 이동시 카테고리 제목에 표기  
소아라 게시판 관련 질문 좀 올리겠습니다. [1] 2013.08.30 by Fidelity
레비어스 주소 고정하는 법 [3] 2013.08.30 by Fidelity
연시랑 회원정보 비공개 설정에 관하여  
tariy 트윗 버튼의 크기가 길쭉하게 나와요.ㅠㅠ file  
차린 게시판 사진 첨부시 세로사진 가로사진 출력 질문입니다.  
전경국 플래쉬 밑으로 로그인창이 내려가는 현상 [2] file 2013.08.30 by 전경국
연시랑 조건문에 대한 가벼운 질문// [2] 2013.08.30 by Summer
Arisae 1.7.3.4에서 결제 모듈 생성 시 '이름 값은 필수입니다.' 오류 [1] file 2013.08.30 by Arisae
PodongS2 비회원 댓글 스팸.. [2] file 2013.08.30 by 쿡래빗
아어렵다 도메인 질문 [2] 2013.08.30 by 느낌아니까
느낌아니까 게시판에 특정 도메인 접근 금지 시킬 수 있나요??  
아싸로또1등맞고싶어 아이콘샵 아이콘 대표이미지 적용시 이상해요  
본체 팝업관리에서 생성한 팝업을 삭제하면 잘못된 요청이라고 나옵니다.  
상큼하게 댓글 작성 시 랜덤으로 추가 포인트 증정하는 방법?? [2] 2013.08.30 by 귀머거리하늘
아오e소라 폰이나 탭으로 작성하면 엔터가 안먹힙니다. [1] 2013.08.30 by mindflow
현재를 즐겨라 관리자페이지오류 [1] file 2013.08.30 by 컴퓨터매니아
소아라 목록설정 급히 질문 있습니다. [1] file 2013.08.30 by 소아라
열린냐하 XE 2010 Gallery 사용자정의 리스트로 출력 질문입니다. file