묻고답하기

<?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);
?>

 

 

 

여기서 닫기버튼이 보이지가 않아요.... 어디가 문제일까요?

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Nightly Deprecated HTTP_RAW_POST_DATA  
마꼬꼬 Mysql이 계속 뻗어버립니다.  
니는뜬데이~ XE Core ver. 1.8.14 멀티도메인 정상작동합니다. (자문자답입니다.) [1] 2015.11.10 by Luatic™
하이팅 글쓰기가 안됩니다 [2] 2015.11.09 by 하이팅
XESTUDIO 인스타그램과 비슷한 XE 게시판 스킨 질문 [1] 2015.11.09 by DoorWeb
빤쭈 php로 쪽지를 보내면 알림센터가 쪽지 감지를 못합니다!! [1] 2015.11.09 by 빤쭈
손주사랑 로고이미지 중앙정열하는 방법좀 부탁드림니다 [2] file 2015.11.09 by 손주사랑
sage하늘 서브 메뉴수정이 이렇게 힘든건가요? [12] 2015.11.09 by sage하늘
seamaster 홈페이지 상단 화면만 이중으로 보입니다. [3] file 2015.11.09 by DoorWeb
NKorea 셀마이애플 사이트 레이아웃 이나 게시판스킨 어떤건지 궁금하네요 ? [4] 2015.11.09 by NKorea
마엘 포인트 선물 모듈 및 애드온 질문  
라돌체 설치된 모듈에 계속 '설치하겠습니까?' 메시지가 뜨는데.. file  
리맹 게시판 사용자 정의 일괄 추가 가능한가요? [1] 2015.11.09 by Nightly
장기기억 모니터 해상도에 따라 메뉴 위치가 달라집니다.  
아쿠아d3033 textarea 확장변수 nl2br로 출력시 정렬 변경 [4] 2015.11.09 by 아쿠아d3033
stable**** 회원가입 폼을 변경하려면? [2] file 2015.11.09 by bluedream
jkms xe 게시판 설치문의 합니다. [1] 2015.11.09 by mindpainter
자자게이 제발도와주세요..비회원 썸네일 안 보이는 상황입니다..ㅠㅠ  
제임스라 게시판 _read.html 에서 확장변수 출력 [1] 2015.11.09 by sejin7940
후니 유튜브 모듈을 적용하고 설정후, 실행하니 에러가 나옵니다. 무엇이 문제일까요? [1] 2015.11.08 by 후니