묻고답하기
모바일배너 닫기버튼 미출력문제
2015.04.01 14:35
<?php
if(!defined("__XE__")) exit();
if(Context::get('module') == admin) return;
if($called_position != before_display_content) return;
if(!$addon_info->height) $height = 40;
else $height = $addon_info->height;
switch ($addon_info->type_pri) {
case a: $style = '<style type="text/css">body{margin-bottom:'.$height.'px}.mbanner{height:'.$height.'px;position:fixed;bottom:0px;z-index:2;width:100%}'; break;
case b: $style = '<style type="text/css">body{margin-top:'.$height.'px}.mbanner{height: '.$height.'px;position:fixed;top:0px;z-index:2;width:100%}'; break;
default:$style = '<style type="text/css">.mbanner{height:'.$height.'px;width:100%}'; break;
}
switch ($addon_info->type_con) {
case a: $html = '<div class="mbanner"><a href="'.$addon_info->link.'"><img src="'.$addon_info->content.'" alt="banner image" style="width:100%;height:'.$height.'px;"></a>'; break;
case b: $html = '<div class="mbanner">'.$addon_info->content; break;
case c: $html = '<div class="mbanner"><iframe name="banner_frame" id="banner_frame" src="'.$addon_info->content.'"></iframe>'; break;
}
if ($addon_info->type_con == 'c') $style .= '#banner_frame{width:100%;height:100%;margin:0;padding:0;border:none}';
if ($addon_info->type_ifr == 'yes') $script = '<script type="application/javascript">window.onload=function(){try{banner_frame.document.body.style.overflow=\'hidden\';}catch(e){}};</script>';
if ($addon_info->type_clo == 'yes') {
$html .= '<a href="#" class="close_lk" onclick="document.getElementsByClassName(\'mbanner\')[0].style.display=\'none\';document.body.style.margin=\'0\';;"><i class="close_btn"></i></a></div>';
$style .= '.close_lk{padding:6px;display:inline-block;margin-left:-22px;vertical-align:top}.close_btn{background:url(./addons/mbanner/close_btn.png);border:0;display:block;height:10px;overflow:hidden;width:10px;}</style>';
}else {
$html .= '</div>';
$style .= '</style>';
}
Context::addHtmlheader($style);
if ($addon_info->type_ifr == 'yes') Context::addHtmlheader($script);
if ($addon_info->type_pri == 'c') Context::addHtmlheader($html);
else Context::addHtmlFooter($html);
?>
여기서 닫기버튼이 보이지가 않아요.... 어디가 문제일까요?
댓글 0
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
앤드류문 | 조회수 문제 [3] | 2015.04.01 by KaelXP |
KaelXXPP |
sweet mobile layoust 사용하시는분들 도와주세요
![]() | |
여덟 | xe 로 만들어둔 게시판을 메인 페이지로 게사판 목록을 가져 오고싶습니다 [4] | 2015.04.01 by 여덟 |
플라이나 | 버튼 비회원 권한 코드와 코멘트창 비회원 닉네임 기억 [4] | 2015.04.01 by 플라이나 |
kjmedi626 | 소스수정 보려고하는데요 [4] | 2015.04.01 by kjmedi626 |
korea8395c | 대문을 변경할려고 합니다. | |
티코GT |
제이쿼리 소스를 적용하는데 익스플로러에서 문제가 발생하네요^^;
[10]
![]() | 2015.04.01 by 돼지코구뇽 |
김로직 |
member 스킨 document_list 질문
[1]
![]() | 2015.04.01 by 돼지코구뇽 |
jongs90 | 한글 ID 관련 ㅠㅜ | |
달다뤼 | URL 게시글번호 관련 [2] | 2015.03.31 by 달다뤼 |
phoenixkid | xe 초기화하고 다시 깔려니까 안되네요 ㅜㅜ 도와주세요 [2] | 2015.03.31 by phoenixkid |
bb | 진짜기초 ㅠㅠ) 문서페이지 편집은 어디서해야하나요?ㅠㅠㅠ | |
도로테비 | 이 게시판 스킨 어떤 스킨인지 아시는분? [1] | 2015.03.31 by 로이조52 |
너구리우동면 | iframe resizing 관한 질문입니다..... | |
xe왕초보 | 게시판 제목에 줄바꿈 적용하기 어떻게 해야될까요?? [1] | 2015.03.31 by DoorWeb |
똑디 | 게시글 본문을 PDF저장하는 방법이 있을까요? | |
kjmedi626 |
해결이안되서 글올립니다~
[4]
![]() | 2015.03.31 by kjmedi626 |
Exceltoweb |
이런 무작위 가입 막을 방법 없나요?
[6]
![]() | 2015.03.31 by 하늘희 |
김동하123 | 사용자 정의에서 띄워쓰기 | |
럭셜진 |
이미지와 같은 신규회원 스크롤 되는 위젯 어떻게 만들어야하나요?
![]() |