묻고답하기



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 남기남
B@naNa``* 포토샵 홈페이지 사이즈 질문이요.. [2] 2007.08.10
양지원 꼭 답변 부탁드려요 ^^  
홍기태 매우 기초적인건데 어떻게 하는건지모르겟네요. [1] 2007.08.10
송미루 동영상 소스 질문..  
전성만 메인 페이지에서 최근 게시물 표시에 대해...  
윤민용 완성된 홈페이지 db까지 복원시킬려니 잘안되네요  
하이트라 include 된 파일에서 폼에 포커스 주는 방법 좀 갈켜 주세요.  
하이트라 include 된 파일에서 폼에 포커스 주는 방법 좀 갈켜 주세요.  
김성식 외부로그인 질문 입니다. [5] 2007.08.10
이지혜 asp프로그래밍을 관련인데 서버에서 인식을 못하는건지 그것을 물어보고 싶어서요. [1] 2007.08.10
실시라 CSS 레이아웃으로 작업을 하는데요. [1] 2007.08.10
지쿠 이미지슬라이드 소스를 이미지 랩으로 바꾸고 싶은데요...  
정윤목 개인 서버를 1기가 사 놓았었는 데 잊었어요 어떻게 하면 업 로드 하는 건지요? 어델가면 제 서버로 갈 수 있죠 [1] 2007.08.10
최진 통합DB가 대체 뭔가요?  
최진 Unknown 칼럼 ''point'' in ''field list'' 는 메시지가 뜨면서  
배지 트래픽관련문의? [1] 2007.08.10
이병진 안녕하세요,,테이블 구조 때문에 물어볼께여,,ㅜㅜ [1] 2007.08.10
김수낙 홈페이지 디자인과 관련해서 궁금증이 있습니다. [2] 2007.08.10
박광렬 이미지 링크에서 공백이 없어지질 않아요...ㅠ.ㅠ [1] 2007.08.10
이영오 회원관리프로그램 [2] 2007.08.10
김태일 해상도와 상관없이 이어지는 배경 어떻게.... [2] 2007.08.10
오유경 스타일이 적용된 상태의 웹페이지에 가로 스크롤바 없애기. [1] 2007.08.10
미노미 브라우저를 동적으로 부드럽게 리사이즈하기 응용 좀 부탁드려요.  
●┣●┃~* 팝업창~~~질문~~~급!! [1] 2007.08.10
유병만 서기님 25강의에서 setcookie 이 문구만 입력하면 에러떠요. [2] 2007.08.10
장하늘 헤더만 설정했는데 문제가생겼습니다. [2] 2007.08.10
장하늘 헤드&풋 나눌때요.. [1] 2007.08.10
돌고래 드롭다운메뉴 질문입니다.  
정서은 롤오버 메뉴에서 버튼이미지 깨짐 현상 [1] 2007.08.10
이희순 왜 화면이 뜨질 않을까요? [1] 2007.08.10