메인창에 자동팝업창 띄우는방법좀 알려주세요? 정보
메인창에 자동팝업창 띄우는방법좀 알려주세요?본문
해당사이트는 www.hwasumok.kr 이며, 그누보드로 작업되어 있습니다.
index.php 파일에 팝업창 소스를 넣으려고 하는데.. "</head>"가 없어 팝업창 소스를 위에 넣지도
못하고 아무데나 넣으니 <액세스 거부>가 발생 합니다.
팝업창 파일은 popup.php 별도로 만들어 놓았습니다.
고수님들의 조언 부탁드립니다.
------ 아래 index.php 파일 소스태그 올립니다.------
<?
define("_INDEX_", TRUE); // index 파일
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="300" height="90"><a href="<?=$g4['path']?>/page/menu5.php"><img src="img/specialfood.jpg" width="241" height="80" border="0" /></a></td>
<td width="91"><a href="<?=$g4['path']?>/page/gallery.php"><img src="img/gallery.jpg" width="81" height="80" /></a></td>
<td>
<script type="text/javascript">
doc_write(flash_movie("<?=$g4[path]?>/flash/index_roll.swf", "indexroll", "230", "80", "transparent"));
</script>
</td>
<td width="280" align="right"><a href="<?=$g4['path']?>/page/about2.php"><img src="img/ban.jpg" width="261" height="80" border="0" /></a></td>
</tr>
</table>
<!-- 메인화면 끝 -->
<?
include_once("./_tail.php");
?>
index.php 파일에 팝업창 소스를 넣으려고 하는데.. "</head>"가 없어 팝업창 소스를 위에 넣지도
못하고 아무데나 넣으니 <액세스 거부>가 발생 합니다.
팝업창 파일은 popup.php 별도로 만들어 놓았습니다.
고수님들의 조언 부탁드립니다.
------ 아래 index.php 파일 소스태그 올립니다.------
<?
define("_INDEX_", TRUE); // index 파일
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="300" height="90"><a href="<?=$g4['path']?>/page/menu5.php"><img src="img/specialfood.jpg" width="241" height="80" border="0" /></a></td>
<td width="91"><a href="<?=$g4['path']?>/page/gallery.php"><img src="img/gallery.jpg" width="81" height="80" /></a></td>
<td>
<script type="text/javascript">
doc_write(flash_movie("<?=$g4[path]?>/flash/index_roll.swf", "indexroll", "230", "80", "transparent"));
</script>
</td>
<td width="280" align="right"><a href="<?=$g4['path']?>/page/about2.php"><img src="img/ban.jpg" width="261" height="80" border="0" /></a></td>
</tr>
</table>
<!-- 메인화면 끝 -->
<?
include_once("./_tail.php");
?>
댓글 전체
어떤 위치에 와도 상관 없는 것이 정상인데 액세스 거부가 난다는 것은 popup.php 코드를 보아야 원인을 알 수 있겠군요
head /head 는 head.sub.php 화일속에 있습니다
head /head 는 head.sub.php 화일속에 있습니다