묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
view_document.html 파일에 스크립트 삽입 위치좀... ㅠㅠ
2012.06.29 10:52
왕초보 입니다.
../xe/modules/board/skins/xe_default/view_document.html 이 파일안에 스크립트를 삽입하려고 하는데...
넣어도 보이지를 않습니다. 어디에 넣어야 하는지요 ? ㅠㅠ
고수님들의 답변을 부탁드립니다.
< view_document.html > ---------------------------------------------------------------------------------------------------------------
<div class="boardRead">
<div class="boardReadHeader">
<h3 class="title"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h3>
<!--@if($module_info->display_author!='N')-->
<em>
<!--@if(!$oDocument->getMemberSrl())-->
<!--@if($oDocument->isExistsHomepage())-->
<a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;">{$oDocument->getNickName()}</a>
<!--@else-->
{$oDocument->getNickName()}
<!--@end-->
<!--@else-->
<a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')}" onclick="return false">{$oDocument->getNickName()}</a>
<!--@end-->
</em>
<!--@end-->
</div>
<!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
<table border="1" cellspacing="0" summary="Extra Form" class="extraVarsList">
<!--@foreach($oDocument->getExtraVars() as $key => $val)-->
<tr>
<th>{$val->name} :</th>
<td>{$val->getValueHTML()}</td>
</tr>
<!--@end-->
</table>
<SCRIPT type='text/javascript' src='http://rsense-ad.realclick.co.kr/rsense/rsense_ad.js?rid=491652339743&stamp=1340933615' charset='euc-kr'></SCRIPT>
<br />
<br />
<!--@end-->
<div class="boardReadBody">
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<form action="./" method="get" onsubmit="return procFilter(this, input_password)" class="secretMessage">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<p>"{$lang->msg_is_secret}"</p>
<dl>
<dt><label for="cpw">{$lang->password}</label> :</dt>
<dd><input type="password" name="password" id="cpw" class="inputText" /><span class="button red"><input type="submit" value="{$lang->cmd_input}" /></span></dd>
</dl>
</form>
<!--@else-->
{$oDocument->getContent()} <!--@end-->
<!--@if($module_info->display_sign != 'N' && ($oDocument->getProfileImage() || $oDocument->getSignature()))-->
<div class="memberSignature">
<!--@if($oDocument->getProfileImage())-->
<img src="{$oDocument->getProfileImage()}" alt="profile" class="profile" />
<!--@end-->
<!--@if($oDocument->getSignature())-->
<div class="signature">{$oDocument->getSignature()}</div>
<!--@end-->
</div>
<!--@end-->
</div>
<div class="boardReadFooter">
<div class="footerLeft">
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->
<dl>
<dt>{$lang->category} :</dt>
<dd title="{$lang->category}"><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}">{$category_list[$oDocument->get('category_srl')]->title}</a></dd>
</dl>
<!--@end-->
{@ $tag_list = $oDocument->get('tag_list') }
<!--@if(count($tag_list))-->
<dl class="tag">
<dt>{$lang->tag} :</dt>
<!--@for($i=0;$i<count($tag_list);$i++)-->
{@ $tag = $tag_list[$i]; }
<dd><a href="{getUrl('search_target','tag','search_keyword',$tag,'document_srl','')}" rel="tag">{htmlspecialchars($tag)}</a></dd>
<!--@end-->
</dl>
<!--@end-->
<!--@if($oDocument->hasUploadedFiles())-->
<dl class="attachedFile">
<dt>{$lang->uploaded_file} :</dt>
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<!--@foreach($uploaded_list as $key => $file)-->
<dd><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]</span></a></dd>
<!--@end-->
</dl>
<!--@end-->
</div>
<div class="footerRight">
<dl>
<dt>{$lang->readed_count} :</dt>
<dd title="{$lang->readed_count}">{$oDocument->get('readed_count')}</dd>
<!--@if($oDocument->get('voted_count')!=0 || $oDocument->get('blamed_count')!=0)-->
<dt>{$lang->voted_count} :</dt>
<dd title="{$lang->voted_count}"><a href="#layer_voted_member" class="voted_member_{$oDocument->document_srl} document votedup">{$oDocument->get('voted_count')}</a> / <a href="#layer_voted_member" class="voted_member_{$oDocument->document_srl} document voteddown">{$oDocument->get('blamed_count')}</a></dd>
<!--@end-->
<dt>{$lang->regdate} :</dt>
<dd title="{$lang->regdate}">{$oDocument->getRegdate('Y.m.d')}</dd>
<dd>{$oDocument->getRegdate('H:i:s')} <!--@if($grant->manager || $module_info->display_ip_address!='N')-->({$oDocument->getIpaddress()})<!--@end--></dd>
</dl>
<dl>
<dt>{$lang->trackback} :</dt>
<dd><a href="{$oDocument->getTrackbackUrl()}" onclick="return false;">{$oDocument->getTrackbackUrl()}</a></dd>
</dl>
<dl>
<dt>{$lang->document_url} :</dt>
<dd title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></dd>
</dl>
</div>
</div>
<div class="boardNavigation">
<!--@if($module_info->default_style != 'blog' || ($module_info->default_style == 'blog' && Context::get('document_srl')))-->
<div class="buttonLeft">
<a href="{getUrl('document_srl','')}" class="button"><span><!--@if($module_info->default_style != 'blog')-->{$lang->cmd_list}<!--@else-->{$lang->cmd_view_all}<!--@end--></span></a>
</div>
<!--@end-->
<!--@if($oDocument->isEditable())-->
<div class="buttonRight">
<a href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_modify}</span></a>
<a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_delete}</span></a>
</div>
<!--@end-->
</div>
</div>
<!--@if($oDocument->allowTrackback())-->
<!--#include("./trackback.html")-->
<!--@end-->
<a name="comment"></a>
<!--#include("./comment.html")-->
<!--@if($oDocument->allowComment())-->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<input type="hidden" name="content" value="" />
<div class="boardWrite commentEditor">
<div class="editor">{$oDocument->getCommentEditor()}</div>
<dl class="editorOption">
<dt>{$lang->cmd_option} : </dt>
<!--@if($is_logged)-->
<dd>
<input type="checkbox" name="notify_message" value="Y" id="notify_message" />
<label for="notify_message">{$lang->notify}</label>
</dd>
<!--@end-->
<dd>
<input type="checkbox" name="is_secret" value="Y" id="is_secret" />
<label for="is_secret">{$lang->secret}</label>
</dd>
</dl>
<!--@if(!$is_logged)-->
<div class="userNameAndPw">
<dl>
<dt><label for="userName">{$lang->writer}</label> :</dt>
<dd class="userName"><input type="text" name="nick_name" value="" class="inputText" id="userName"/></dd>
</dl>
<dl>
<dt><label for="userPw">{$lang->password}</label> :</dt>
<dd class="userPw"><input type="password" name="password" value="" id="userPw" class="inputText" /></dd>
</dl>
<dl>
<dt><label for="emailAddress">{$lang->email_address}</label> :</dt>
<dd class="emailAddress"><input type="text" name="email_address" value="" id="emailAddress" class="inputText"/></dd>
</dl>
<dl>
<dt><label for="homePage">{$lang->homepage}</label> :</dt>
<dd class="homePage"><input type="text" name="homepage" value="" id="homePage" class="inputText"/></dd>
</dl>
</div>
<!--@end-->
<div class="boardNavigation">
<span class="button red strong"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</div>
</form>
<!--@end-->
<!--@end-->
< 삽입스크립트 > ---------------------------------------------------------------------------------------------------------------
<!-- 리얼센스 플로팅 광고 시작 -->
<script>
var real_sh_top=0; /*TOP 위치, 상단에서부터의 거리, 숫자로 조절*/
var real_sh_left=0; /*좌(+) 우(-)위치, 가운데를 중심으로 숫자로 조절*/
</script>
<div id='real_pop_bnr_floating' style='position:absolute;z-index:99999;background:#d4d4d4'>
<!-- 기존 리얼센스 광고소스 입력부분 시작 -->
<SCRIPT type='text/javascript' src='http://rsense-ad.realclick.co.kr/rsense/rsense_ad.js?rid=491652339743&stamp=1340933615' charset='euc-kr'></SCRIPT>
<!-- 기존 리얼센스 광고소스 입력부분 끝 -->
<SCRIPT type='text/javascript' charset='euc-kr'>
<!--
function getCookie_RS(name){var re=new RegExp("(;|^)[^;]*("+name+")=([^;]*)(;|$)");var res=re.exec(document.cookie);return res!=null?res[3]:null}
function setCookie_RS_floating(name,value,expiretimes){var todayDate=new Date();todayDate.setHours(todayDate.getHours()+expiretimes);document.cookie=name+"="+escape(value)+"; path=/; expires="+todayDate.toGMTString()+";"}
function closeWin_RS_floating(){if(document.getElementById("rc_checkbox_floating").checked==true){setCookie_RS_floating("RS_Bnr_floating","on",24)}real_bnr_close_floating()}
function real_bnr_close_floating(){var lname="real_pop_bnr_floating";document.getElementById(lname).style.display="none"}
document.write("<style>");
document.write("#real_pop_bnr_floating {font:normal 11px '돋움', Dotum; color:#000000; border:1px solid #999;} ");
document.write("#real_pop_bnr_floating img {border:0 none; -ms-interpolation-mode: bicubic;} ");
document.write("</style>");
document.write("<div id='real_close_btn' name='real_close_btn' style='padding: 10px 0; text-align:right;'>");
document.write("<span style='margin:0 2px; float:left; '><input type='checkbox' style='cursor:pointer;padding:1px;' id='rc_checkbox_floating' name='rc_checkbox_floating' onclick='closeWin_RS_floating();'></span>");
document.write("<span style='margin:3px 0 0 0; float:left;'><label for='rc_checkbox_floating' style='cursor:pointer;cursor:hand;'><font style='font:normal 11px Dotum; line-height:14px; letter-spacing:-1px;'>오늘은 그만보기</font></label></span>");
document.write("<span style='cursor: pointer; margin: 5px 3px 0px 6px ;padding: 2px 3px 2px 2px;background:#000000;color:#ffffff; ' onclick='closeWin_RS_floating();'>close</span>");
document.write("</div>");
var RealBCookie=getCookie_RS("RS_Bnr_floating");
if(RealBCookie=="NaN"||RealBCookie==null){
var xx=(document.body.offsetWidth/2)-real_sh_left;
document.getElementById('real_pop_bnr_floating').style.left=xx+'px';
document.getElementById('real_pop_bnr_floating').style.top=real_sh_top+'px';
}
else {
var lname="real_pop_bnr_floating";
document.getElementById(lname).style.display="none";
}
//-->
</SCRIPT>
</div>
<!-- 리얼센스 플로팅 광고 끝 -->