이코드만으로는 출력이 안되나요?
<script language="Javascript">
<!--
var y=0; //y축 좌표
var count=0; //y축 증가값 리셋
var contentArray = new Array(); //컨텐츠 내용 배열
var start=0; //0번부터
var end=0; //9번 까지 총 10개의 컨텐츠
var now=0; //현재 추가하는 번호
var newDiv;
var hover=1; //마우스 오버시 0이면 멈춤
var oTime;
function addContent() { //컨텐츠 2개 추가
if(now >= end) now=0;
var dom = document.getElementById("ssinnerBox");
newDiv = document.createElement("div");
newDiv.style.height = "18px";
var sub1 = document.createElement("div");
sub1.style.paddingBottom = "4px";
sub1.innerHTML = contentArray[now];
now++;
newDiv.appendChild(sub1);
dom.appendChild(newDiv);
}
contentArray[0]="<b>장안동점 / </b>";
contentArray[1]="<b>제기동점 / </b>";
contentArray[2]="<b>제기동점 / </b>";
contentArray[3]="<b>제기동점 / </b>";
contentArray[4]="<b>제기동점 / </b>";
end = 20
function status() { //롤링 처음 실행시에만 호출
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
addContent();
setTimeout("run()",1000);
}
function run() { //롤링 반복 작업
oTime = setInterval("rolling()",10);
}
function rolling() {
if(hover==1) {
y-=1;
count+=1;
var dom = document.getElementById("ssinnerBox");
dom.style.top= y + "px";
if(count==18) { //롤링을 멈추고 기다림
count=0;
addContent();
clearInterval(oTime); //롤링 멈춤
setTimeout("run()",1000); // 1초후 다시 롤링 시작
} else {
//oTime = setTimeout("rolling()",10);
}
}
}
function makeContent() {
var l = contentArray.length;
document.write(contentArray[eval(l-1)]);
}
//-->
</script>
<div id="ssbox">
<div id="ssinnerBox" onMouseOver="hover=0" onMouseOut="hover=1">
<script language="javascript">
addContent();
status();
</script>
</div>
</div></td>
</tr>
</table>
<!-- //대리점현황 리스트 추출 -->
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
댓글 1개
다케미카코
13년 전
<div id="ssinnerBox" onMouseOver="hover=0" onMouseOut="hover=1">
<script language="javascript">
addContent();
status();
</script>
코드를
<div id="ssinnerBox" onMouseOver="hover=0" onMouseOut="hover=1">
<script language="javascript">
addContent();
status();
</script>
로 바꾸니 값은 찍히더라구요.
처음 값을 출력하는 쪽을 찾아 보시면 저렇게 안 해도 바로 출력 가능할거 같습니다.
<script language="javascript">
addContent();
status();
</script>
코드를
<div id="ssinnerBox" onMouseOver="hover=0" onMouseOut="hover=1">
<script language="javascript">
addContent();
status();
</script>
로 바꾸니 값은 찍히더라구요.
처음 값을 출력하는 쪽을 찾아 보시면 저렇게 안 해도 바로 출력 가능할거 같습니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6430 | 12년 전 | 988 | ||
| 6429 | 12년 전 | 9114 | ||
| 6428 | 12년 전 | 609 | ||
| 6427 |
제이티37
|
12년 전 | 1576 | |
| 6426 |
프로프리랜서
|
12년 전 | 1160 | |
| 6425 |
프로프리랜서
|
12년 전 | 1618 | |
| 6424 |
프로프리랜서
|
12년 전 | 1820 | |
| 6423 | 12년 전 | 1008 | ||
| 6422 |
퍼블리셔지노군
|
12년 전 | 1583 | |
| 6421 | 12년 전 | 2214 | ||
| 6420 |
|
12년 전 | 1338 | |
| 6419 |
|
12년 전 | 1290 | |
| 6418 | 12년 전 | 1194 | ||
| 6417 |
senseme
|
12년 전 | 7435 | |
| 6416 |
senseme
|
12년 전 | 1334 | |
| 6415 |
senseme
|
12년 전 | 1201 | |
| 6414 |
senseme
|
12년 전 | 1975 | |
| 6413 |
senseme
|
12년 전 | 978 | |
| 6412 |
senseme
|
12년 전 | 1494 | |
| 6411 |
senseme
|
12년 전 | 1109 | |
| 6410 |
senseme
|
12년 전 | 1050 | |
| 6409 |
PASKRAN
|
12년 전 | 2822 | |
| 6408 | 12년 전 | 10808 | ||
| 6407 | 12년 전 | 2995 | ||
| 6406 |
프로프리랜서
|
12년 전 | 2843 | |
| 6405 |
프로프리랜서
|
12년 전 | 1380 | |
| 6404 |
프로프리랜서
|
12년 전 | 2728 | |
| 6403 |
프로프리랜서
|
12년 전 | 824 | |
| 6402 |
프로프리랜서
|
12년 전 | 1748 | |
| 6401 |
프로프리랜서
|
12년 전 | 1151 | |
| 6400 |
프로프리랜서
|
12년 전 | 1478 | |
| 6399 |
프로프리랜서
|
12년 전 | 1195 | |
| 6398 |
프로프리랜서
|
12년 전 | 1500 | |
| 6397 |
프로프리랜서
|
12년 전 | 3610 | |
| 6396 | 12년 전 | 1884 | ||
| 6395 | 12년 전 | 927 | ||
| 6394 |
|
12년 전 | 5244 | |
| 6393 |
제이티37
|
12년 전 | 1209 | |
| 6392 |
songsinica
|
12년 전 | 1220 | |
| 6391 |
|
12년 전 | 3402 | |
| 6390 |
|
12년 전 | 1635 | |
| 6389 | 12년 전 | 4866 | ||
| 6388 |
스누피사랑
|
12년 전 | 5440 | |
| 6387 | 12년 전 | 1844 | ||
| 6386 | 12년 전 | 3070 | ||
| 6385 |
희망과열정
|
12년 전 | 932 | |
| 6384 | 12년 전 | 3301 | ||
| 6383 | 12년 전 | 10608 | ||
| 6382 |
|
12년 전 | 5798 | |
| 6381 |
SugarSkull
|
12년 전 | 1037 | |
| 6380 | 12년 전 | 787 | ||
| 6379 |
|
12년 전 | 1995 | |
| 6378 | 12년 전 | 1578 | ||
| 6377 | 12년 전 | 506 | ||
| 6376 |
후라보노보노
|
12년 전 | 1344 | |
| 6375 | 12년 전 | 2876 | ||
| 6374 | 12년 전 | 844 | ||
| 6373 | 12년 전 | 2377 | ||
| 6372 |
takumi22
|
12년 전 | 1247 | |
| 6371 |
개초보제이
|
12년 전 | 783 | |
| 6370 |
고급자가되고
|
12년 전 | 1467 | |
| 6369 | 12년 전 | 892 | ||
| 6368 | 12년 전 | 3190 | ||
| 6367 | 12년 전 | 1884 | ||
| 6366 | 12년 전 | 2887 | ||
| 6365 |
lilyosia
|
12년 전 | 1803 | |
| 6364 | 12년 전 | 1064 | ||
| 6363 | 12년 전 | 1600 | ||
| 6362 | 12년 전 | 2745 | ||
| 6361 | 12년 전 | 2570 | ||
| 6360 | 12년 전 | 1016 | ||
| 6359 | 12년 전 | 2106 | ||
| 6358 |
|
12년 전 | 1795 | |
| 6357 |
에헤라디야자진방아를돌려라
|
12년 전 | 790 | |
| 6356 | 12년 전 | 2094 | ||
| 6355 | 12년 전 | 3798 | ||
| 6354 | 12년 전 | 3106 | ||
| 6353 | 12년 전 | 1556 | ||
| 6352 | 12년 전 | 7775 | ||
| 6351 | 12년 전 | 2545 | ||
| 6350 | 12년 전 | 2803 | ||
| 6349 | 12년 전 | 1889 | ||
| 6348 | 12년 전 | 3557 | ||
| 6347 | 12년 전 | 1455 | ||
| 6346 | 12년 전 | 1202 | ||
| 6345 | 12년 전 | 1842 | ||
| 6344 | 12년 전 | 1422 | ||
| 6343 |
프로프리랜서
|
12년 전 | 2064 | |
| 6342 |
프로프리랜서
|
12년 전 | 1395 | |
| 6341 |
프로프리랜서
|
12년 전 | 1825 | |
| 6340 |
프로프리랜서
|
12년 전 | 1914 | |
| 6339 |
프로프리랜서
|
12년 전 | 1358 | |
| 6338 |
프로프리랜서
|
12년 전 | 1620 | |
| 6337 | 12년 전 | 5284 | ||
| 6336 |
프로프리랜서
|
12년 전 | 1642 | |
| 6335 |
프로프리랜서
|
12년 전 | 958 | |
| 6334 |
프로프리랜서
|
12년 전 | 1339 | |
| 6333 |
프로프리랜서
|
12년 전 | 2447 | |
| 6332 | 12년 전 | 1104 | ||
| 6331 |
돗단배123
|
12년 전 | 1427 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기