묻고답하기

<?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 남기남
티코GT 제이쿼리 소스를 적용하는데 익스플로러에서 문제가 발생하네요^^; [10] file 2015.04.01 by 돼지코구뇽
korea8395c 대문을 변경할려고 합니다.  
kjmedi626 소스수정 보려고하는데요 [4] 2015.04.01 by kjmedi626
플라이나 버튼 비회원 권한 코드와 코멘트창 비회원 닉네임 기억 [4] 2015.04.01 by 플라이나
여덟 xe 로 만들어둔 게시판을 메인 페이지로 게사판 목록을 가져 오고싶습니다 [4] 2015.04.01 by 여덟
KaelXXPP sweet mobile layoust 사용하시는분들 도와주세요 file  
앤드류문 조회수 문제 [3] 2015.04.01 by KaelXP
chicha 오류가 뜨는데 뭘 수정해야 할지 모르겠어요ㅠㅠ (compiled.php파일) [2] 2015.04.01 by chicha
신다솔 게시판 첨부 가능한 용량 문제  
빤쭈 compiled.php 파일이 서버에 오류를 뿜고있습니다... [2] 2015.04.01 by 빤쭈
xe왕초보 str_replace를 어떻게 적용해야될까요? [1] 2015.06.13 by xe왕초보
꿈틀잉 사이트맵 갱신이 안됩니다.  
revoldaw.myid.net 사이트 관리자 메뉴에서 사이트관리탭을 클릭하면 내용이 보이지않습니다. file  
원장님11 게시판 광고 도배를 하는데,,지우다가 힘들어서 올립니다.  
마르팅 게시판 삽입하기~~  
너구리우동면 iframe resizing  
제이니스 소스좀 봐주세요~~ 간단해요... 제가 잘몰라서리ㅜㅜ [2] 2015.04.01 by 제이니스
롯데 게시판 검색 - 변수+변수 검색 [3] 2015.04.01 by sejin7940
레토나 모바일배너 닫기버튼 미출력문제  
사진속일상 Facebook 글보내기 이미지 크게하려면 어떻게 해요? file  
마르팅 게시판..... [2] file 2015.04.01 by 마르팅
亞波治™ 로그인 관련 질문 드립니다. [3] file 2015.04.01 by 亞波治™
putty 스킨 질문 입니다. [2] file 2015.04.01 by putty
빤쭈 제로보드 사용중 에러 로그 이상한 부분 발견.. 해킹로그..?  
포항스틸러스 내용없이 글등록되게 설정 > 글작성은 되나 수정이 안됩니다. [1] 2015.04.01 by sejin7940
mr33 $XE_VALIDATOR_MESSAGE_TYPE 하고 CSS관련 여쭤봅니다 [2] file 2015.04.01 by mr33
GREATGUY 한가지 여쭙니다! 모바일 페이스북처럼요! [2] 2015.04.01 by GREATGUY
예준해 다운로드 버턴?  
리엑스 XE 알림센터 질문입니다. [3] 2015.04.01 by BJ람보
롯데 확장변수 관하여 질문드립니다. file