묻고답하기
레이아웃에 위젯코드 넣는방법
2012.12.22 15:13
아래와 같이 홈페이지를 만들었습니다.
그런데 오른쪽 빈공간에 아래 위젯코드
<img class="zbxe_widget_output" widget="bannermgm_widget" skin="banner" colorset="default" bannermgm_srl="243" img_width="100" img_height="40" link_target="_blank" />
를 이용해서 배너를 삽입하려 합니다.
세로로 한 10개정도 넣으려고 하는데....
레이아웃 코드를 이리저리 수정해봐도.. 배너가 들어는 가는데 도저히 원하는 위치에 안들어가네요. (오른쪽 빈공간...)
고수님들의 도움을 부탁드립니다.
<!--%import("css/default.css")-->
<!--%import("js/js.js")-->
<!--%import("lang")-->
<colorset">!--@if($layout_info->colorset == "random")-->
{@$tmp = array('','orange','red','green','pink','gray')}
colorset">{@$layout_info->colorset = $tmp[mt_rand(1, 6)]}
<!--@end-->
<script type="text/javascript">
flash_color('676767','455AE9','BBBBBB','777777','EEEEEE','929eef');
<colorset=='orange'">!--@if($layout_info->colorset=='orange')-->
flash_color('676767','e98a45','BBBBBB','777777','EEEEEE','efb392');
<!--@else if($layout_info->colorset=='red')-->
flash_color('676767','d65757','BBBBBB','777777','EEEEEE','d47d7d');
<!--@else if($layout_info->colorset=='green')-->
flash_color('676767','68ad24','BBBBBB','777777','EEEEEE','89c44f');
<!--@else if($layout_info->colorset=='pink')-->
flash_color('676767','e9458e','BBBBBB','777777','EEEEEE','ef92b7');
<!--@else if($layout_info->colorset=='gray')-->
flash_color('888888','111111','cccccc','777777','cccccc','757864');
<!--@end-->
<list">!--@foreach($main_menu->list as $key => $val)-->
<!--@if($val['link'])-->
<!--@if($val['selected'])-->
first_selected = first;
{@$menu_1st = $val}
<!--@end-->
<!--@if($val['open_window']=='Y')-->
menu_first_window[first] = "_blank";
<!--@end-->
menu_first[first] = "{$val['text']}";
menu_first_link[first] = "{$val['href']}";
menu_first_link[first] = menu_first_link[first].replace(/&/gi, "amp;");
menu_second[first] = new Array();
menu_second_link[first] = new Array();
menu_second_window[first] = new Array();
<!--@foreach($val['list'] as $k => $v)-->
<!--@if($v['link'])-->
<!--@if($v['selected'])-->
second_selected = second;
{@$menu_2nd = $v}
<!--@end-->
<!--@if($v['open_window']=='Y')-->
menu_second_window[first][second] = "blank";
<!--@end-->
menu_second[first][second] = "{$v['text']}";
menu_second_link[first][second] = "{$v['href']}";
menu_second_link[first][second] = menu_second_link[first][second].replace(/&/gi, "amp;");
second++;
<!--@end-->
<!--@end-->
menu_second_length[first] = second; second = 0;
<!--@end-->
first++;
<!--@end-->
slide_menu = false;
</script>
<logo_image">!--@if($layout_info->logo_image)-->
<style type="text/css">
#logo h1 a { background:url({$layout_info->logo_image}) no-repeat !important;}
</style>
<!--@end-->
<div id="outerWrapper" class="centerWrapper {$layout_info->colorset}">
<div id="header">
<div id="map">
<map=='search'">!--@if($layout_info->map=='search')-->
<form action="{getUrl()}" method="post" class="search">
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="act" value="IS" />
<input type="hidden" name="search_target" value="title_content" />
<fieldset>
<legend>{$lang->cmd_search}</legend>
<input name="is_keyword" type="text" title="Search" class="inputText" accesskey="S" />
<input name="" type="image" src="images/default/icon_search.gif" alt="Search" class="inputSearch" />
</fieldset>
</form>
<!--@else if($layout_info->map!='hidden')-->
<a href="#" onclick="if(jQuery('#languageList').css('display')!='none') {jQuery('#languageList').slideUp(200);} else {jQuery('#languageList').slideDown(200);}">Select Language : <b>{$lang_supported[$lang_type]}</b></a>
<div class="blank"></div>
<ul id="languageList">
<!--@foreach($lang_supported as $key => $val)--><!--@if($key!= $lang_type)-->
<li><a href="#" onclick="doChangeLangType('{$key}');return false;">{$val}</a></li>
<Sky2">!--@if(!$layout_info->index_name)-->Sky2 Layout<{$layout_info->index_name}">Sky2'>!--@else-->{$layout_info->index_name}<!--@end-->"><span><!--@if(!$layout_info->index_name)-->Sky2 Layout<{$layout_info->index_name}!--@else-->{$layout_info->index_name}<!--@end--></span></a></h1>
</div>
<div id="header_menu">
<script type="text/javascript">
f_vars ();
xe_dir = '{$layout_info->xe_dir}';
if(xe_dir.charAt(0) != '/') xe_dir = '/' + xe_dir;
if(xe_dir.charAt(xe_dir.length-1) != '/') xe_dir = xe_dir + '/';
xe_dir = xe_dir + 'layouts/elkha_sky2/swf/menu(mbs).swf';
<menu_mbs)-->xe_dir">!--@if($layout_info->menu_mbs)-->xe_dir = '{$layout_info->menu_mbs}';<!--@end-->
flash(xe_dir,810,120,1,f_var);
</script>
</div>
</div>
<div id="header2">
<div id="category">
<span class="category_first"><a href="{$layout_info->index_url}"><index_name)-->Sky2">!--@if(!$layout_info->index_name)-->Sky2 Layout<{$layout_info->index_name}!--@else-->{$layout_info->index_name}<!--@end--></a></span>
<span><a href="{$menu_1st['href']}">{$menu_1st['text']}</a></span>
<span><a href="{$menu_2nd['href']}">{$menu_2nd['text']}</a></span>
</div>
<div id="header_login">
<!--@if(!$is_logged)-->
<span><a href="#loginWindow" onclick="login_open();" accesskey="L">{$lang->login}</a></span>
<span><a href="{getUrl('act','dispMemberSignUpForm')}">{$lang->join}</a></span>
<!--@else-->
<span><a href="#" class="member_{$logged_info->member_srl}" onclick="return false;" title="{$lang->myinfo}">{sprintf($lang->login_message, $logged_info->nick_name)}</a></span>
<span><a href="{getUrl('act','dispMemberLogout')}">{$lang->logout}</a></span>
<is_admin">!--@if($logged_info->is_admin == "Y")--><span><a href="{getUrl('','module','admin')}" class="user_info" title="{$lang->cmd_management}">{$lang->manage}</a></span><!--@end-->
<!--@end-->
</div>
</div>
<div id="contentWrapper">
<list">!--@if($slide_menu->list)-->
<script type="text/javascript">slide_menu = true;</script>
<div id="slidemenu">
<span class="goto top"><button type="button" title="Top" onclick="jQuery('html, body').animate( { scrollTop: 0 },'normal');"></button></span>
{@$tmp=0}
<ul>
<list">!--@foreach($slide_menu->list as $key => $val)--><!--@if($val['link'])-->
<li class="slide_{$tmp++}"><a href="{$val['href']}" <onclick="window.open(this.href);return">!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<>{$val['text']}{$val['link']}!--@end-->><!--@if($val['text']==$val['link'])--><span>{$val['text']}</span><!--@else-->{$val['link']}<!--@end--></a></li>
<