인덱스 없애기~
본문
사이트에 인덱스페이지가 잇는데 그냥 바로 main.php로 열리게 하고 싶어요~
그럴려면 인덱스에 주석처리해야하는건가요?
인덱스파일
<?php
define('_INDEX_', true);
include_once('./_common.php');
// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_index'] && is_file(G5_PATH.'/'.$config['cf_include_index'])) {
include_once(G5_PATH.'/'.$config['cf_include_index']);
return; // 이 코드의 아래는 실행을 하지 않습니다.
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/index.php');
return;
}
include_once('./_head.php');
?>
<script type="text/javascript">
$(document).ready(function(e){
var intro_num=0;
var wh = $(window).height();
$("#intro").css({"height":$(window).height()});
$("#intro ul").css("height",$(window).height());
$("#intro_inner").css("top",($(window).height()-238)/2);
$(window).resize(function(e){
wh = $(window).height();
$("#intro").css({"height":$(window).height()});
$("#intro ul").css("height",$(window).height());
$("#intro_inner").css("top",($(window).height()-238)/2);
});
function auto(){
var prev_num=intro_num;
intro_num++;
if ( intro_num==5 ) { intro_num=0 }
$("#intro ul li").css("z-index","1");
$("#intro ul li:eq("+prev_num+")").css({"height":wh,"top":"inherit","bottom":"0"}).animate({"height":"0"},500);
$("#intro ul li:eq("+intro_num+")").css({"z-index":"5","height":"0","top":"0","bottom":"inherit"}).animate({"height":"100%"},500);
} var del = setInterval(auto,4000)
});
</script>
<style type="text/css">
#quick_wrap, #topmenu, #header_wrap { display:none; }
</style>
<div id="intro">
<ul>
<li class="item_01"></li>
<li class="item_02"></li>
<li class="item_03"></li>
<li class="item_04"></li>
<li class="item_05"></li>
</ul>
<div id="intro_inner">
<a href="/main.php"></a>
</div>
</div>
자세히 알려주심 더 감사요~제가 왕초보라~~~^^;;;;;