모바일 인트로 logo 보여주기
관련링크
-
https://sir.kr/qa/45015 789회 연결
본문
css
/* intro layer */
#introwraper {display:none;position:absolute;top:0;left:0;width:100%;height:100%;z-index: 100; background-color: #ffffff; background-image: -webkit-gradient(linear,left top,left bottom,from(#ffffff),to(#ffffff)); background-image: -moz-linear-gradient(top,#ffffff,#ffffff); background-image: -o-linear-gradient(top,#ffffff,#ffffff); background-image: linear-gradient(to bottom,#ffffff,#ffffff); } #introwraper #cell { position: absolute; top: 40%;width:100%;text-align:center;} #introwraper #cell h1 {color:#fff;-webkit-text-shadow: 0 1px 0 rgba(164,168,171,0.2);text-shadow:0px -1px 0px rgba(000,000,000,1),0px 1px 0px rgba(255,255,255,0.3);font-size:1.6em;}
#introwr
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 include_once(G5_THEME_PATH.'/head.sub.php'); include_once(G5_LIB_PATH.'/latest.lib.php'); include_once(G5_LIB_PATH.'/outlogin.lib.php'); include_once(G5_LIB_PATH.'/poll.lib.php'); include_once(G5_LIB_PATH.'/visit.lib.php'); include_once(G5_LIB_PATH.'/connect.lib.php'); include_once(G5_LIB_PATH.'/popular.lib.php'); add_stylesheet('<link rel="stylesheet" href="'.G5_MOBILE_URL.'/style.css">', 0); ?> <!-- intro --> <div id="introwraper"> <div id="cell"> <h1><img src="<?php echo G5_IMG_URL ?>/logo.png"></h1> <!-- <h3><?php echo G5_URL; ?></h3>--> </div> </div> <script type="text/javascript"> <!-- // web storage var skip_intro = sessionStorage.getItem("skip_intro"); if (skip_intro != "view" && skip_intro != "undefined") { // 인트로 페이지를 확인하지 않았다면. $("#wrapper").hide(); $("#introwraper").show(); setInterval(function(){ clearIntro() }, 1500); } function clearIntro() { // 인트로 레이어 제거. $("#introwraper").fadeOut(); $("#wrapper").fadeIn(); sessionStorage.setItem("skip_intro", "view"); } //--> </script> <!--// intro --> <header id="hd"> <h1 id="hd_h1"><?php echo $g5['title'] ?></h1>
...
https://sir.kr/qa/45015
댓글목록
등록된 댓글이 없습니다.