묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
스크립트가 PC에서는 작동되는데 모바일에서는 작동이 안돼요
2013.07.29 05:30
"<script type="text/javascript">
function tab_on(sel_id){
xGetElementById('w_Document').style.display="none";
xGetElementById('w_popular').style.display="none";
xGetElementById('w_comment').style.display="none";
xGetElementById(sel_id).style.display="block";
}
</script>
<div class="eh_count">
<div class="w_tabs">
<ul>
<li class="active" onmouseover="jQuery(this).parent().find('li.active').removeClass('active');jQuery(this).addClass('active');tab_on('w_Document');return false;">{$lang->ip_newest_documents}</li>
<li onmouseover="jQuery(this).parent().find('li.active').removeClass('active');jQuery(this).addClass('active');tab_on('w_popular');return false;">{$lang->ip_popular_documents}</li>
<li onmouseover="jQuery(this).parent().find('li.active').removeClass('active');jQuery(this).addClass('active');tab_on('w_comment');return false;">{$lang->ip_newest_comments}</li>
</ul>
</div>
<div class="clear"></div>
<div id='w_Document' class="w_border" style="width:{$widget_info->w_size}px;border:1px solid {$widget_info->colorset};border-top:none">
<!--@if($widget_info->newest_documents)-->
<ul>
<!--@foreach($widget_info->newest_documents as $k => $v)-->
<li>
<span class="regdate">{$v->getRegdate("m-d")} : </span>
<span class="titl"><a href="{$v->getPermanentUrl()}"> {$v->getTitle($widget_info->subject_cut_size) }</a> {$v->printExtraImages($widget_info->duration_new)}</span>
<span class="member_{$val->member_srl}" style="float:right">{$val->nick_name}</span>
</li>
<!--@end-->
</ul>
<!--@end-->
<div class="clear"></div>
</div>
<div id='w_popular' class="w_border" style="display:none; width:{$widget_info->w_size}px;border:1px solid {$widget_info->colorset};border-top:none">
<!--@if($widget_info->popular_documents)-->
<ul>
<!--@foreach($widget_info->popular_documents as $k => $v)-->
<li>
<span class="regdate">{$v->getRegdate("m-d")} : </span>
<span class="titl"><a href="{$v->getPermanentUrl()}"> {$v->getTitle($widget_info->subject_cut_size)} </a> {$v->printExtraImages($widget_info->duration_new)}</span>
<span class="member_{$val->member_srl}" style="float:right">{$val->nick_name}</span>
</li>
<!--@end-->
</ul>
<!--@end-->
<div class="clear"></div>
</div>
<div id='w_comment' class="w_border" style="display:none; width:{$widget_info->w_size}px;border:1px solid {$widget_info->colorset};border-top:none">
<!--@if($widget_info->newest_comments)-->
<ul>
<!--@foreach($widget_info->newest_comments as $k => $v)-->
<li>
<span class="regdate">{$v->getRegdate("m-d")} : </span>
<span class="titl"><a href="{$v->getPermanentUrl()}"> {$v->getSummary($widget_info->subject_cut_size)}</a></span>
<span class="member_{$val->member_srl}" style="float:right">{$val->nick_name}</span>
</li>
<!--@end-->
</ul>
<!--@end-->
<div class="clear"></div>
</div>
</div>"
위 스크립트가 PC에서는 작동되는데 모바일에서는 작동이 안돼요.
jQuery로 바꾸어 보고싶은데 jQuery는 전혀모르니.....
안돼는 이유를 알고싶고 다른방법으로 대체하거나 기타의 방법좀 부탁드림니다.