글자수 제한거는법좀 알려주세요 정보
글자수 제한거는법좀 알려주세요본문
최신글 스크롤입니다.
글자수 제한걸려면 어디를 수정해야되나요?
<?
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>
글자수 제한걸려면 어디를 수정해야되나요?
<?
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>
댓글 전체
제어할 파일에서 하셔야 하는데요
뭐 여기서 안되는것도 아니지요...
cut_str($list[$i][wr_subject], 255)
이런걸 이용해 보세요..
뭐 여기서 안되는것도 아니지요...
cut_str($list[$i][wr_subject], 255)
이런걸 이용해 보세요..
<?=strip_tags($list[$i][wr_subject])?>
strip_tags를 빼면 안되서요
cut_str를 덧붙일려면 어떻게해야되나요?
strip_tags를 빼면 안되서요
cut_str를 덧붙일려면 어떻게해야되나요?
strip_tags(cut_str($list[$i][wr_subject], 255))