스크롤이 되지 않습니다.
본문
저희 도메인 아래 / youngcart5.0.43 으로 연결되는 문제를 해결하기 위해서 도메인에 직접 연결하기 위하여 아래처럼 hosting_index 파일을 수정하여 저희 홈에 연결하였습니다. 그 결과 홈페이지 접속은 무난하나 스크롤 바가 나타나지 않고 스크롤 기능을 사용할 수 없습니다. 방법이 틀렸을까요?
<?
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>대한민국 No.1 "성남몰"</title>
</head>
<body>
<iframe frameborder=0 scrolling=no marginwidth=0 marginheight=0 width=100% height=100% src=http://sn-mall.co.kr/youngcart5.0.43/>></iframe>
</body>
</html>
답변 2
단순히 페이지 이동용도라면 index 파일 내용을 이렇게만 해줘도 됩니다.
<?php
$URL="http://sn-mall.co.kr/youngcart5.0.43";
header ("Location: $URL");
?>
iframe으로 하지 마시고
<?
header("location:http://sn-mall.co.kr/youngcart5.0.43/");
?>
이렇게 하시던지 아니면
<!DOCTYPE html>
<html lang="ko">
<head>
<title>대한민국 No.1 "성남몰"</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<frameset rows="0,*" frameborder="NO" border="0" framespacing="0" longdesc="" title="">
<frame src="hidden.php" name="topFrame" scrolling="NO" noresize longdesc="" title="">
<frame src="/youngcart5.0.43/" name="mainFrame" longdesc=" " title="">
<noframes title=""><body>프레임을 지원하지 않는 브라우져는 이용할수가 없습니다<BR>프레임을 지원하는 웹브라우져를 이용하세요<a href=/></a></body></noframes>
</frameset>
</html>
이렇게 둘중하나로 사용하시는게 iframe보다 좋습니다