최신글 스킨 태그 안나오게 좀 알려주세요. > 그누4 질문답변

그누4 질문답변

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

최신글 스킨 태그 안나오게 좀 알려주세요. 정보

최신글 스킨 태그 안나오게 좀 알려주세요.

본문

'     <--- 이거 입력하면 그래요.    콜론이랑 엔터 사이에 있는거요. 유독 이것만...

노란부분이 출력 부분 같아요


<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>

댓글 전체

말러83님 안녕하세요. <?=addslashes(htmlspecialchars_decode($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']?>"
  <? } ?>
line[<?=$i?>+1]="<?=$list[$i][subject]?>"
    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 님께 드릴께요.
전체 51 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT