글자수 제한거는법좀 알려주세요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

글자수 제한거는법좀 알려주세요 정보

글자수 제한거는법좀 알려주세요

본문

최신글 스크롤입니다.
글자수 제한걸려면 어디를 수정해야되나요?

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

?>
<script type="text/javascript" src="<?=$latest_skin_path?>/jquery.js"> </script>
 
  <script type="text/javascript">
$(document).ready(function() {
var current = -1;
var elems = new Array();
var elems_i = 0;
$('.items').each(function() {
elems[elems_i++] = $(this);
});
var num_elems = elems_i - 1;
var animate_out = function() {
elems[current].animate({ top: '-100px' }, 'slow', 'linear', animate_in);
}
var animate_out_delay = function() {
setTimeout(animate_out, 5000); /*2000=2초*/
}
var animate_in = function() {
current = current < num_elems ? current + 1 : 0;
elems[current].css('top', '200px').animate({ top: '0px' }, 'slow', 'linear', animate_out_delay);
}
animate_in();
});
</script>
 
  <style type="text/css">
.ticker {
position: relative; /* So we can absolute the .items */
width: 217px;
height: 17px;
overflow: hidden;
border: 0px solid #f0f0f0;
}
.items {
position: absolute;
top: 25px;
margin:3px;
font-family:돋움;
font-size:12px;
}
</style>
   
    <div class="ticker">
    <? for ($i=0; $i<count($list); $i++) { ?>
      <div class="items"><font style="font-family:dotum; font-size:12px; color:#E0426C;"><?=strip_tags($list[$i][wr_subject])?> </font> <font style="font-family:dotum; font-size:12px; color:#000000;">- <?=$list[$i][wr_name]?></font></div>
    <? } ?>
  </div>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로