웹마스터 팁

먼저 예제 입니다. ::  http://yoonmi.net/study/study78.htm



이 스크립은 다른 것과 달리, 두 개의 페이지가 필요합니다.^^*
하나는 저렇게 보여지는 페이지, 나머지 하나는 그림 이 들어가야 할 페이지입니다.
우리는 임의로, 그림(즉, 아이프레임에 들어갈) 에 들어갈 페이지 이름을 image.htm 이라고
정해놓도록 하겠습니다. 그리고 저렇게 메뉴가 보이는 곳을 menu.htm 이라고하지요.

★ 도움되는 설명 드리자고 한다면... 먼저 저대란 하신 되구요.
스크립 부분은 수정 마시고,
menu.htm 에 있는 부분에서 굵은 부분 표시해 논곳, 100 200 300... 요부분은 스크롤될
범위를 뜻합니다. 다시 말해, 그림의 높이가 만약 200이라면 스크롤은 200씩 되야겠지요.
image.htm 에 있는 그림과 글들의 표크기가 넓이 150 높이 100 이라서 100씩 준것입니다.
원하시는대로 잡으시면 됩니다.

==================================================================================
                                                   menu.htm 부분
==================================================================================
----------------------------------------------------------------------------------
                                              <head>와  </head> 사이에
----------------------------------------------------------------------------------
<style type="text/css">
A:link    {color:000000;text-decoration:none;}
A:visited {color:000000;text-decoration:none;}
A:active  {color:000000;text-decoration:none;}
A:hover   {color:000000;text-decoration:none; color:9888E8;}
.boolpae{font-size:9pt;font-family:돋움;}
.small{font-size:8pt;font-family:Tahoma;}
.detail{font-size:9pt;font-family:돋움;}  
td,a,p,b{font-size:9pt}
</style>
<script language="JavaScript">
<!--
var y = 0;
var dest = 0;
var distance = 0;
var step = 0;
var destination = 0;
function scrollit(destination) {
step = 2;
dest = destination;
if (y<dest) {
while (y<dest) {
step += (step / 50);
y += step;
this.frames.iscrolly.scroll(0,y);
}

this.frames.iscrolly.scroll(0,dest);

y = dest;

}
  
if (y > dest) {
while (y>dest) {
step += (step / 50);
if(y >= (0+step))
{
y -= step;
this.frames.iscrolly.scroll(0,y);
}
else { break; }
}
if(dest >= 0) { this.frames.iscrolly.scroll(0,dest); }
y = dest;
}
if (y<1) {y=1}
if (y>1200) {y=400}
}
//-->
</script>  

----------------------------------------------------------------------------------
                                      <body> </body> 안에 넣으세요.
----------------------------------------------------------------------------------

<table width="300" border="0" cellspacing="0" cellpadding="0" height="100" align="center" bgcolor="#FFFFFF">
<tr>
    <td width="150" height="20" align="center" valign="middle" onMouseOut="this.style.backgroundColor='ffffff'" onMouseOver="this.style.backgroundColor='#eeeeee'"><a href="javascript:scrollit(0);">1       번 메뉴 스크롤</a></td>
    <td height="100" rowspan="5" width="150" align="center" valign="middle" ><iframe src="image.htm" frameborder="no" name="iscrolly" width="150" height="100" marginwidth="0" marginheight="0" scrolling="no"></iframe></td>
</tr>
  <tr>
    <td width="150" height="20" align="center" valign="middle" onMouseOut="this.style.backgroundColor='ffffff'" onMouseOver="this.style.backgroundColor='#eeeeee'"><a href="javascript:scrollit(100);">2       번 메뉴 스크롤</a></td>
  </tr>
  <tr>
    <td width="150" height="20" align="center" valign="middle" onMouseOut="this.style.backgroundColor='ffffff'" onMouseOver="this.style.backgroundColor='#eeeeee'"><a href="javascript:scrollit(200);">3       번 메뉴 스크롤</a></td>
  </tr>
  <tr>  
      <td width="150" height="20" align="center" valign="middle" onMouseOut="this.style.backgroundColor='ffffff'" onMouseOver="this.style.backgroundColor='#eeeeee'"><a href="javascript:scrollit(300);">4       번 메뉴 스크롤</a></td>
  </tr>
  <tr>
    <td width="150" height="20" align="center" valign="middle" onMouseOut="this.style.backgroundColor='ffffff'" onMouseOver="this.style.backgroundColor='#eeeeee'"><a href="javascript:scrollit(400);">5       번 메뉴 스크롤</a></td>
</tr>
</table>  


==================================================================================
                                                  image.htm  부분
==================================================================================
<html>
  
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
</head>
  
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table cellpadding="0" cellspacing="0" width="150" height="100">
    <tr>
        <td width="150" height="100">
            <p><img src="images/basara21.jpg" width="150" height="100" border="0"></p>
        </td>
    </tr>
    <tr>
        <td width="150" height="100">
            <p><img src="images/basara21-1.jpg" width="150" height="100" border="0"></p>
        </td>
    </tr>
    <tr>
        <td width="150" height="100" bgcolor="#FFCCFF">
            <p align="center"><span style="font-size:9pt;"><font color="#FF33CC">그림도
            링크 걸 수 있고<br> 글도 이렇게 할수있당<br>이 얼마나 좋은감
            - -;;<br>오 좋다~ ☆</font></span></p>
        </td>
    </tr>
    <tr>
        <td width="150" height="100" bgcolor="#E6FFE6">
            <p align="center"><span style="font-size:9pt;"><font color="#669900">설
            연휴 잘 보내세요~^^*<br>강좌 보실 시기가 언젤<br>지는 모르겠지만;;<br>지금은
            설이에요 ㅠ_ㅠ</font></span></p>
        </td>
    </tr>
    <tr>
        <td width="150" height="100" bgcolor="#F4F4F4">
            <p align="center"><span style="font-size:9pt;">끝났네요^^*<br>늘일수도있고,<br>메뉴는
            줄일수도있습니다.</span></p>
        </td>
    </tr>
</table>
</body>
  
</html>
제목 글쓴이 날짜
주소 보여주기 시를 때 제가 자주 쓰는 방법 이건 조회수 빵이다 ㅡ0ㅡ; [21] ☆좀비파우더™ 2003.01.28
한페이지에서 여러개의 크롬리스 창 띄우기..(ByKlein Chromeless Window) [3] file 아린~★ 2003.01.29
바탕화면에 바로가기 아이콘을 만드시겠습니까? [소스분석용] [12] RedEye 2003.02.02
KBS VOD 최상위로 만들기 소스 (필요 부분만 수정) [3] kimbilly 2003.02.02
최상위로 만들기 소스 [13] 앳플군 2003.02.04
음악 듣기 소스 당근당근 2003.02.04
미디 랜덤으로 듣기 완벽해결! [4] K.샘 2003.02.05
링크된 텍스트 클릭지 위로 스크롤되는 예제확인 [1] ▩윤미 2003.02.06
링크된 텍스트 오버시 위로 스크롤..예제 확인 [2] ▩윤미 2003.02.06
[허뎝이즈]간단한 테트리스 만들어 보기^_^[허뎝이 수정했음돠] [11] 허졉이즈 2003.02.06
흐르는 내용 강좌 [4] 라엘 2003.02.10
레이어를 이용한 초간단 갤러리를 만들어봅시다. [6] 모라미 2003.02.15
요청해오신 레이어 무조건 중앙에 열리기 와 클릭하는 곳에 열리기 두가지 소스입니다. [4] 모라미 2003.02.25
[수정판] 갤러리 이미지 드레그 이동 가능한 필터 사용 스르륵 버젼 ^^ [10] 모라미 2003.02.15
페이지 로딩중 효과 [7] 깜보 2003.02.16
[수정 및 추가 설명] 음악 듣기 소스 [4] 당근당근 2003.02.17
개판 오분전 select menu......... [10] 미친개 2003.02.18
폰트 크기를 방문자가 자유자재로 바꾸도록.. 깜보 2003.02.19
통합 검색엔진 소스입니다. [5] 철혈단 2003.02.19
개판 오분전 이미지 슬라이더 [5] 미친개 2003.02.20