함수를 이용한 div 출력

조회 수 13626 추천 수 0 2007.11.23 11:50:12
마우스 오버시 div를 보여주는 소입니다.

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>잡다한 몽상백서 화이팅 ^^</title>
<script>  function show_notice(param)
  {
   if(param == 'notice1')
   {
    notice1.style.display='';
    notice2.style.display='none';
    notice3.style.display='none';
   
   }
   else if(param == 'notice2')
   {
    notice1.style.display='none';
    notice2.style.display='';
    notice3.style.display='none';
   
   }
   else if(param == 'notice3')
   {
    notice1.style.display='none';
    notice2.style.display='none';
    notice3.style.display='';
   
   }
 }
</script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p>
</p>
<table border="1" width="500">
<tr>
<td width="274" height="245">
              
<div id='notice1' style="background-color:white;width:200px; height:200px; position:absolute; left:26px; top:36px; z-index:6; visibility:visible;">
이명박
</div>

<div id='notice2' style="background-color:white;width:200px; height:200px; position:absolute; left:26px; top:36px; z-index:5; visibility:visible;">
이인제
</div>

<div id='notice3' style="background-color:white; width:200px; height:200px; position:absolute; left:26px; top:36px; z-index:4; visibility:visible;">
정동영
</div>

</td>
<td width="210" height="245"><br>
<a href="#" onmouseover="show_notice('notice1');">이명박</a>
<a href="#" onmouseover="show_notice('notice2');">이인제</a>
<a href="#" onmouseover="show_notice('notice3');">정동영</a>
</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>

div 스타일 부분의 값들을 잘 조정해서 사용하시길..^^

정치적으로는 아무런 상관이 없습니다. 그냥 소스작업입니다.
 

댓글 '1'

kybcis

2007.11.30 09:17:23
*.122.24.200

잘쓰겠습니다......

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
31 input box 배경처리 [레벨:30]똑띠 2008-10-27 10792
30 select box 내 위치변경 [레벨:30]똑띠 2008-10-21 13855
29 select 박스 선택시 새창으로 띄우기 [1] [레벨:30]똑띠 2008-08-18 13777
28 document.getElementById().children 과 appendChild() [레벨:30]똑띠 2008-07-07 16769
27 마우스 오버시 이미지 바꾸기 [1] [레벨:30]똑띠 2008-07-02 16598
26 셀렉트 박스 링크 걸기 [레벨:30]똑띠 2008-03-06 15923
25 홈페이지에 팝업창달기 [1] [레벨:30]똑띠 2007-12-08 63234
» 함수를 이용한 div 출력 [1] [레벨:30]똑띠 2007-11-23 13626
23 구글 검색엔진에 자신의 홈페이지 등록하기. [레벨:30]똑띠 2007-08-08 17621
22 ie6에서 png 투명 이미지 사용하기 [레벨:30]똑띠 2007-07-30 18310
21 울트라 에디터에서 파일 탭이 사라졌을 경우.. file [레벨:30]똑띠 2007-07-19 16576
20 [자료] 스파이더 - 검색엔진에 추가시 주의점 [4] [레벨:1]언더꿈 2007-07-13 267280
19 셀렉트 박스 링크지정 팁. [레벨:30]똑띠 2007-05-25 11630
18 링크에 점선 없애주는 소스 [레벨:30]똑띠 2007-05-13 9466
17 한번에 링크테두리 없애주는 스크립트 소스 [5] [레벨:30]똑띠 2006-11-02 10470
16 div , class에 대한 개념정의 file [레벨:30]똑띠 2006-09-18 14207
15 투명아이프레임 만들기 [레벨:30]똑띠 2006-08-25 12261
14 일괄적으로 링크된 이미지,글씨 점선 없애기 [레벨:30]똑띠 2006-08-25 8347
13 테이블 대신 필드셋(fieldset)을 이용하기 [레벨:30]똑띠 2006-08-25 9018
12 한줄짜리 웹소스 [레벨:30]똑띠 2006-08-25 7727