묻고답하기

<?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 남기남
은석호 정말 초보적인 질문입니다.. [2] 2007.08.10
이인종 미디어플레이어7 창을 움직여야 동영상이 움직여요;_ㅠ_ㅠ [3] 2007.08.10
이인종 동영상을 계정에 업로드해서.. [2] 2007.08.10
whitefox [질문] 계정을 살려고 하는데.. [5] 2007.08.10
김장현 [질문] 윈도XP에서 로컬호스트와 IP의 차이점은??? [2] 2007.08.10
김민성 노프레임홈을 만들었는데. 고민이... [4] 2007.08.10
이인종 동영상 위치숨기는법 없을까요? [1] 2007.08.10
스윙 폴더를 클릭하면 다 새창이 뜨고, 윈도우 미디어 플레이어 이상해요-_ㅠ [1] 2007.08.10
김민규 static선언자에 대한 질문여. [2] 2007.08.10
포토샵 7.0을 깔았는데... [1] 2007.08.10
전민영 그림 넣을때요.. [5] 2007.08.10
제르딘 화면이 비틀(?)어진다고 해야하나요? 음.. [4] 2007.08.10
꿈을잃은자 제로보드에서 말이죠- [1] 2007.08.10
정세현 스크롤바 색깔 바꾸는 거는 알겠는데요.... [1] 2007.08.10
김지훈 제발 도와주세요!T_T PHP문제인듯한데  
난초보ㅠㅜ 정말 초짜 질문입니당 -_ㅠ; [1] 2007.08.10
미자 제로님 강의하셨던 카운터를 쓰는데 쿠키에러가.. [2] 2007.08.10
미자 mail 함수 관련 질문입니다..  
허상문 초보인데요..궁굼합니다..꼭좀 갈켜주세요/./// [2] 2007.08.10
왕태용 질문입니다. 꼭 답변 부탁드립니다. [1] 2007.08.10
후아유 음악 자료실 운영하면 트래픽 잡아먹나요? [1] 2007.08.10
Elfish 폰트가 안 떠요...  
Darkness 탭 메뉴 같은 것에 대한 질문..(급함) [1] 2007.08.10
코코푸르나 이미지가 테이블에 맞게 로딩될 순 없나요? [4] 2007.08.10
곽민우 폼메일 관련 질문입니다. ^^ [3] 2007.08.10
[K]inkiːki:Ds 사운드 카드요.. ㅠ_ㅠ  
taeho 바보같은 질문을 좀(OS에 관련) [1] 2007.08.10
유지선 질문할께요 -ㅂ-♡; [1] 2007.08.10
眞™ 포토샵 7.0 에서 폰트를 볼 경우... [2] file 2007.08.10
김준범 이 테크좀 알려주세요-_-;; [2] 2007.08.10