웹마스터 팁

먼저 예제 입니다. ::  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>
제목 글쓴이 날짜
올블로그 명예의 전당글 가져오기 (캐쉬기능추가) [2] 유창화 2006.04.17
올블로그(http://www.allblog.net/Home/) 명예의 전당글 가져오기 [2] 유창화 2006.04.17
네이버 openapi 사용하여 쇼핑검색 만들기 [3] 유창화 2006.04.13
네이버 openapi 사용하여 한국어사전 만들기 유창화 2006.04.13
네이버 openapi 사용하여 실시간 인기검색어 보여주기 [3] 유창화 2006.04.13
유용한 PHP성능 개선을 위한 팁 [4] 이태라 2006.04.11
[PHP 동영상강의] 46. 다중검색기 제작해보기 [8] 서기 2006.04.06
[PHP 동영상강의] 45. 우편번호 검색기 제작해보기 [12] 서기 2006.03.30
[PHP 동영상강의] 44. 즐겨찾기 제작하기 [7] 서기 2006.03.21
[PHP 동영상강의] 43. 공용함수의 제작/쿠키로그인(보안) [4] 서기 2006.03.16
[PHP 동영상강의] 42. 세션의 사용 [4] 서기 2006.03.02
[PHP 동영상강의] 41. 추천사이트(북마크)프로그램 만들기 [4] 서기 2006.02.27
[PHP 동영상강의] 40. 파일의 업로드 [7] 서기 2006.02.27
[PHP 동영상강의] 39. 회원가입/로그인 처리 [8] 서기 2006.02.06
[PHP 동영상강의] 38. 삭제시 비밀번호 물어보기 [6] 서기 2006.01.26
[PHP 동영상강의] 37. 기본적인 페이징 처리하기 [7] 서기 2006.01.21
[PHP 동영상강의] 36. 사용자 정의함수 심화학습 [8] 서기 2006.01.21
[PHP 동영상강의] 35. 사용자 정의함수의 사용 [8] 서기 2006.01.16
[PHP 동영상강의] 34. 자료를 수정해보자. [8] 서기 2006.01.14
[PHP 동영상강의] 33. 자료를 삭제해보자. [6] 서기 2006.01.12