소스 좀 봐주세요 > 그누4 질문답변

그누4 질문답변

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

소스 좀 봐주세요 정보

소스 좀 봐주세요

본문

최신글 스킨인데요
한줄 출력되는 스킨인데
글 제목이 조금 길어지면
익스 6 에서는 제대로 출력되는데
익스9, 파이어폭스 등에서는
input 박스가 잘려서 글제목이 잘려버리네요..
width 값을 어찌 늘려야 될까요
도움 부탁 드립니다.

----------- 소스 시작 ------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
 
<script language="JavaScript1.2">
<!--
/*
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="14px"
 
  //--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('<tr><td width="258px" class=kj>한줄공지</td><td>')
  document.write('<input type="hidden" name="bannerurl">')
  document.write('<input type="text" name="banner" style="border:0"')
  //document.write('style="width:100%;height=17px;background-color: '+document.bgColor+'; color: '+document.body.text+'; font-family:
  document.write('style="cursor:hand;width:100%;height=17px;background-color: '+document.bgColor+'; color: #555555; font-family: verdana; font-size: 15px; 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>
   
</td>
</tr>
</table>       

------------- 소스 끝 --------------------

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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