[상단 뉴스 티커] 넣기... (head.php)파일에서 검색창 뒤에 넣으세요
페이지 정보
본문
<!-- 로고 -->
<div id="logo">
<a href="https://www.moa.ai.kr/">
<div class="logo-mark">M</div>
<span class="logo-text">MOA</span>
<span class="logo-badge">AI</span>
</a>
</div>
<!-- 검색창 -->
<fieldset id="hd_sch">
<legend class="sound_only">사이트 내 전체검색</legend>
<form name="fsearchbox" method="get" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<label for="sch_stx" class="sound_only">검색어 필수</label>
<input type="text" name="stx" id="sch_stx" maxlength="20" placeholder="검색어를 입력하세요">
<button type="submit" id="sch_submit" value="검색">
<i class="fa fa-search" aria-hidden="true"></i>
<span class="sound_only">검색</span>
</button>
</form>
<script>
function fsearchbox_submit(f) {
if (f.stx.value.length < 2) {
alert("검색어는 두글자 이상 입력하십시오.");
f.stx.select(); f.stx.focus();
return false;
}
var cnt = 0;
for (var i = 0; i < f.stx.value.length; i++) {
if (f.stx.value.charAt(i) == ' ') cnt++;
}
if (cnt > 1) {
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select(); f.stx.focus();
return false;
}
return true;
}
</script>
</fieldset>
<!-- 뉴스 티커 -->
<div id="hd_ticker">
<div class="w-box">
<?php echo latest('theme/news-ticker-swiper', 'moapro', 10, 25); ?>
</div>
</div>

댓글목록
등록된 댓글이 없습니다.



