소스 좀 봐주세요
최신글 스킨인데요
한줄 출력되는 스킨인데
글 제목이 조금 길어지면
익스 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 bengaliboy00@hotmail.com (hp: http://www.angelfire.com/nt/bengaliboy/)
With modifications by Dynamicdrive.com
For full source code, usage terms, and 100s more scripts, visit 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 bengaliboy00@hotmail.com (hp: http://www.angelfire.com/nt/bengaliboy/)
With modifications by Dynamicdrive.com
For full source code, usage terms, and 100s more scripts, visit 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>
------------- 소스 끝 --------------------
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66494 | 11년 전 | 7752 | ||
| 66493 |
|
11년 전 | 3004 | |
| 66492 |
alexseo
|
11년 전 | 3989 | |
| 66491 | 11년 전 | 3091 | ||
| 66490 | 11년 전 | 3439 | ||
| 66489 | 11년 전 | 5053 | ||
| 66488 | 11년 전 | 2312 | ||
| 66487 | 11년 전 | 3933 | ||
| 66486 | 11년 전 | 9922 | ||
| 66485 | 11년 전 | 3004 | ||
| 66484 | 11년 전 | 4444 | ||
| 66483 | 11년 전 | 2938 | ||
| 66482 |
jthree
|
11년 전 | 4102 | |
| 66481 | 11년 전 | 2559 | ||
| 66480 | 11년 전 | 2384 | ||
| 66479 | 11년 전 | 2910 | ||
| 66478 |
|
11년 전 | 3046 | |
| 66477 |
|
11년 전 | 3543 | |
| 66476 | 11년 전 | 2338 | ||
| 66475 |
JJins
|
11년 전 | 3626 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기