묻고답하기

<?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 남기남
세상 linux로 서버를 깔았는데 안됩니다..ㅠㅠ [1] 2007.08.10
수진 최근게시물에 new 아이콘은 어떻게... [1] 2007.08.10
조지현 질문이요 [1] 2007.08.10
안지원 자기 컴터를 웹서버로.. 만들면요.. [7] 2007.08.10
에리™ 제로보드 아웃 로그인 문제좀... [1] 2007.08.10
yunjinho [질문] 이미지.. 가 X로 뜹니다 -_- [3] 2007.08.10
이윤준 Php Setlocale에 대한 질문...  
A|X 링크방지하는 방법 부탁드립니다.  
풍월주인 [re] 링크방지하는 방법 부탁드립니다.  
박선영 질문입니다.... [1] 2007.08.10
씨즈 리눅스와 윈도우를 같이 쓸수 있을까요??? [3] 2007.08.10
김종민 로그인 하게 되면 로그아웃이 되게...  
차윤미 질문입니다~~급해요 [2] 2007.08.10
비쥬아야♥ 큰을났어요ㅠㅠ포토샵..! [2] 2007.08.10
백승기 이중프레임이여.. [1] 2007.08.10
작은나무 노프레임에서 프레임만들어 bgm삽입하는거에서 [3] 2007.08.10
toyland 제발 답변해주세요-_ㅠ  
천사를봤다 이 폰트가 무엇인지 부탁드립니다.(그림포함) [1] 2007.08.10
김종민 투 프레임에서 form문 작성시에.... [1] 2007.08.10
스컬이〃 테이블을 읽지 못하는것 같은데. [2] 2007.08.10
백승기 저기여.. 정말로 자세히 답변주세요 ㅠ.ㅠㅂ [3] 2007.08.10
whitefox 계정 살때요// [3] 2007.08.10
egowyz 플래시 이미지가 안보여요 [1] 2007.08.10
taeho outlook에서 footer 어떻게 만들어요? [1] 2007.08.10
누구야 폰트 설치가 안됩니다..-_-;; [4] 2007.08.10
sonrie 링크에 마우스 대면 프레임이 바꾸는 것 [1] 2007.08.10
sonrie 외국서버 [1] 2007.08.10
조은주 제로 카운터 질문입니다... [2] 2007.08.10
날수없는하늘 플래쉬 관련 질문입니다 [2] 2007.08.10
질문이요) 이런기능이 있나요??? 폰트... [1] 2007.08.10