회원로그인
ZipShin이 사용하는 한링크에 두프레임 움직이기..^^
홈페이지
23년 전
소스1)
<html>
<head>
<title>한링크에서 두프레임 조작하기</title>
<script language="javascript1.2">
<!--
function menu_link1() {
window.open('home_middle_menu.php','middle'); //여기에서 고쳐야할것이 있어요. window.open('문서주소','프레임이름')
}
</script>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="71" height="62">
<a href="javascript://" onclick="window.open('home_right_menu.htm','right');menu_link1();" onfocus="this.blur();">
<img src="img/top_at_home.jpg" width="71" height="62" alt="[첫페이지로..]"></a>
</td>
</tr>
</table>
</body>
</html>
보충설명 html의 <head>와 </head>태그 사이에 자바스크립트가 있습니다.
여기서 고쳐야 합니다. window.open('문서를 연결할 파일명 또는 주소','frameset태그로 나뉠때 넘기고자 하는 frame이름값'); 을 사용하면 되요..^^
직접 해보는게 좋을것이고 반드시 html문서안에 frameset태그가 만들어있어야 합니다.
소스2)
* 첨부: frameset 태그를 첨부해요 <가져온곳 zipshin의 홈페이지에서..^^>
<!--
이지성: ljsgood1004@hanmail.net 가 만들었습니다.
-->
<html>
<head>
<title>염포교회 중고등부- sarangheyo@canmail.net </title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="SHORT CUT ICON" href="">
<frameset rows="13%,*" frameborder="0" border="0" framespacing="0" framecolor="#000000">
<frame src="top_menu.htm" name="top" scrolling="auto">
<frameset cols="17%,*" frameborder="0" border="0" framespacing="0" framecolor="#000000">
<frame src="home_left_menu.php" name="left" scrolling="auto">
<frameset cols="*,18%" frameborder="0" border="0" framespacing="0" framecolor="#000000">
<frame src="home_middle_menu.php" name="middle" scrolling="auto">
<frame src="home_right_menu.htm" name="right" scrolling="no" noresize>
</frameset>
</frameset>
</frameset>
</head>
<noframes>
<body>
<p>이 페이지를 볼려면, 프레임을 볼수있는 브라우저가 필요합니다.</p>
</body>
</noframes>
</html>
<!--프레임을 픽셀로 하면
<frameset rows="73,*" frameborder="0" border="0" marginwidth="0" marginheight="0">
<frame src="top_menu.htm" name="top" scrolling="auto">
<frameset cols="170,*" frameborder="0" border="0" marginwidth="0" marginheight="0">
<frame src="home_left_menu.htm" name="left" scrolling="auto">
<frameset cols="*,160" frameborder="0" border="0" marginwidth="0" marginheight="0">
<frame src="home_middle_menu.htm" name="middle" scrolling="auto">
<frame src="home_right_menu.htm" name="right" scrolling="no" noresize>
</frameset>
</frameset>
</frameset>
와 같습니다.-->
추천 : 678
추천
목록