소스 좀 봐주세요 정보
소스 좀 봐주세요본문
최신글 스킨인데요
한줄 출력되는 스킨인데
글 제목이 조금 길어지면
익스 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>
------------- 소스 끝 --------------------
한줄 출력되는 스킨인데
글 제목이 조금 길어지면
익스 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>
------------- 소스 끝 --------------------
댓글 전체