모바일 인트로..
본문
빌더 자료실에 있는 위토즈 모바일 빌더를 설치했습니다.
근데 인트로기능은 그냥 뺏으면 해서요..
어디를 수정해야될지..
<!-- intro -->
<!--// intro -->
<div id="cell">
<?php echo ($config['cf_intro_con'] ? $config['cf_intro_con'] : '<h1>'.$config['cf_title'].'</h1>'); ?>
</div>
</div>
<div id="mbody"> <!-- mbody -->
<script type="text/javascript">
<!--
// web storage
var skip_intro = sessionStorage.getItem("skip_intro");
if (skip_intro != "view" && skip_intro != "undefined") { // 인트로 페이지를 확인하지 않았다면.
$("#mbody").hide();
$("#introwraper").height($(document).height()).show();
<?php if (file_exists(G5_DATA_PATH."/mintro/introbg")) { ?>
$("#introwraper").css({"background-image":"url('<?php echo G5_DATA_URL.'/mintro/introbg';?>')", "background-size":"100% 100%", "background-position":"center", "background-repeat":"no-repeat"});
<?php } ?>
setInterval(function(){ clearIntro() }, 2000);
}
function clearIntro() { // 인트로 레이어 제거.
sessionStorage.setItem("skip_intro", "view");
//$("#introwraper").fadeOut(); // 이대로 show() 해줄경우 height 가 javascript 처리된 element 들이 문제가 있음.
//$("#mwrapper").fadeIn();
location.reload();
}
//-->
</script>
<!--// intro -->
답변을 작성하시기 전에 로그인 해주세요.