프레임 나누어진 페이지 늘리기 - 확장시키기
인터넷정보2007. 10. 18. 13:45
프레임셋
<html>
<head>
<title></title>
</head>
<frameset rows="27,*" border="0">
<frame src="1.html" name="top" noresize scrolling="no" marginwidth="0" marginheight="0" border=1>
<frame src="2.html" name="content" scrolling="auto" marginwidth="0" marginheight="0" border=1>
</frameset>
</html>
프레임 상단 페이지
<html>
<head>
<script language="javascript1.2">
var texp=27; //기본높이
function expand_top() {
if(texp==58) { //확장높이
top.document.body.rows = "27,*"; //기본일때 프레임간격
texp = 27 //기본높이
} else {
top.document.body.rows = "58,*"; //확장일때 간격
texp = 58 //확장높이
}
}
</script>
</head>
<body>
<a href='javascript:expand_top();'>페이지확장</a></font>
<br><br>
늘리기!
</body>
</html>
프레임 하단 페이지는
<html>
<body bgcolor="black">
</body>
</html>
<html>
<head>
<title></title>
</head>
<frameset rows="27,*" border="0">
<frame src="1.html" name="top" noresize scrolling="no" marginwidth="0" marginheight="0" border=1>
<frame src="2.html" name="content" scrolling="auto" marginwidth="0" marginheight="0" border=1>
</frameset>
</html>
프레임 상단 페이지
<html>
<head>
<script language="javascript1.2">
var texp=27; //기본높이
function expand_top() {
if(texp==58) { //확장높이
top.document.body.rows = "27,*"; //기본일때 프레임간격
texp = 27 //기본높이
} else {
top.document.body.rows = "58,*"; //확장일때 간격
texp = 58 //확장높이
}
}
</script>
</head>
<body>
<a href='javascript:expand_top();'>페이지확장</a></font>
<br><br>
늘리기!
</body>
</html>
프레임 하단 페이지는
<html>
<body bgcolor="black">
</body>
</html>
'인터넷정보' 카테고리의 다른 글
링크에대한 설명을 간단히 보여드립니다 (0) | 2007.10.18 |
---|---|
ie 버전에 따라서 페이지 접속 시키기 (0) | 2007.10.18 |
간단한 공지 (0) | 2007.10.18 |
페이지 테두리 넣어 깜밖이기 (0) | 2007.10.18 |
다이나믹 컬러 색상표 (0) | 2007.10.18 |
프레임 나타내기(히든프레임)와 숨기기 (0) | 2007.10.18 |
셀렉트 박스 새창과 현재창을 라이오 버튼으로 제어 (0) | 2007.10.18 |
셀렉트를 이용해서 이미지 선택 나타내기 (0) | 2007.10.18 |
이미지 슬라이드 (0) | 2007.10.18 |
쿠키 적용으로 체크하면 다음부터는 뜨지 않는 창 (0) | 2007.10.18 |