최신글 스킨 태그 안나오게 좀 알려주세요. 정보
최신글 스킨 태그 안나오게 좀 알려주세요.
본문
' <--- 이거 입력하면 그래요. 콜론이랑 엔터 사이에 있는거요. 유독 이것만...
노란부분이 출력 부분 같아요
<script language="JavaScript1.2" type="text/javascript">
<!--
/*
Typing Scroller
Submitted by http://dynamicdrive.com
*/
//Secify scroller contents
var line=new Array()
var lineurl=new Array()
<? for ($i=0; $i<count($list); $i++) { ?>
line[<?=$i?>+1]="<?=$list[$i][subject]?>"
lineurl[<?=$i?>+1]="<?=$list[$i]['href']?>"
<? } ?>
<? if (count($list) == 0) { ?>line[0]="게시물이 없습니다.";<? } ?>
//Specify font size for scoller
var ts_fontsize="12px"
//--Don't edit below this line
var longestmessage=1
for (i=2;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i
}
//Auto set scroller width
var tscroller_width=line[longestmessage].length
lines=line.length-1 //--Number of lines
//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">')
document.write('<form name="bannerform">')
document.write('<input type="hidden" name="bannerurl" style="background-color:whitesmoke;">')
document.write('<input type="text" name="banner"')
document.write('style="cursor:hand;width:100%;height=17px;background-color: '+document.bgColor+'; color: #555555; font-family: verdana; font-size: '+ts_fontsize+'; <!-- font-weight:bold -->; border:0px <!-- medium none -->;" onfocus="blur()" onclick="gogo();">')
document.write('</td></tr>')
document.write('</form>')
document.write('</table>')
}
temp=""
nextchar=-1;
nextline=1;
cursor="_"
//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
function animate(){
document.bannerform.bannerurl.value=lineurl[nextline];
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
nextline++;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",3200)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",3200)}
else{ nextstep(); }
}
function gogo(){
location.href=document.bannerform.bannerurl.value;
}
function nextstep(){
if (cursor=="\\"){cursor="|"}
else if (cursor=="|"){cursor="/"}
else if (cursor=="/"){cursor="-"}
else if (cursor=="-"){cursor="\\"}
nextchar++;
temp+=line[nextline].charAt(nextchar);
document.bannerform.banner.value=temp+cursor
setTimeout("animate()",16)
}
// -->
</script>
댓글 전체


<?=addslashes($list[$i][subject])?> =========== 이렇게 했는데 딱히 수정이 않되네요.
진서기님 말씀 너무 감사해요~



str_replace("'","",$list[$i][subject])

스킨에 내용이 안나오면서 ; 스크립트가 나요.
<?=cut_str(strip_tags($list[$i][subject]))?>

내용이 안나오면서 스크립트 오류가 나네요. 종결되지 않은 문자열 상수입니다. 라고 나와요

<? for ($i=0; $i<count($list); $i++) { ?>
line[<?=$i?>+1]="<?=cut_str(strip_tags($list[$i][subject]))?>"
lineurl[<?=$i?>+1]="<?=$list[$i]['href']?>"
<? } ?>


lineurl[<?=$i?>+1]="<?=$list[$i]['href']?>"
이부분이 잘못된거 아닌가요?
음당 라인 저부분에 뒤에 ;이거 붙어야 되는거 아닌가요?
line[<?=$i?>+1]="<?=$list[$i][subject]?>";
lineurl[<?=$i?>+1]="<?=$list[$i]['href']?>";
이러케?


스크롤 되는 최신글에 글자 깨지지만 않으면 되는데... 정말 힘드네요 ㅠ,ㅠ
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=3688&sca=&sfl=wr_content&stx=%B8%B6%C4%FB&sop=and
스킨으로 바꿔서 해결했네요.. 도와주신 분들 너무 감사합니다.
포인트는 리플 많이 달아주신 catkim 님께 드릴께요.