이코드만으로는 출력이 안되나요?
<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>
로 바꾸니 값은 찍히더라구요.
처음 값을 출력하는 쪽을 찾아 보시면 저렇게 안 해도 바로 출력 가능할거 같습니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 10년 전 | 454 | ||
| 7829 |
|
10년 전 | 641 | |
| 7828 | 10년 전 | 564 | ||
| 7827 | 10년 전 | 461 | ||
| 7826 | 10년 전 | 478 | ||
| 7825 | 10년 전 | 517 | ||
| 7824 | 10년 전 | 480 | ||
| 7823 | 10년 전 | 423 | ||
| 7822 | 10년 전 | 395 | ||
| 7821 | 10년 전 | 341 | ||
| 7820 | 10년 전 | 364 | ||
| 7819 |
|
10년 전 | 765 | |
| 7818 | 10년 전 | 419 | ||
| 7817 | 10년 전 | 584 | ||
| 7816 | 10년 전 | 439 | ||
| 7815 | 10년 전 | 632 | ||
| 7814 | 10년 전 | 472 | ||
| 7813 | 10년 전 | 430 | ||
| 7812 | 10년 전 | 437 | ||
| 7811 | 10년 전 | 417 | ||
| 7810 | 10년 전 | 613 | ||
| 7809 | 10년 전 | 547 | ||
| 7808 | 10년 전 | 422 | ||
| 7807 | 10년 전 | 438 | ||
| 7806 |
프로그래머7
|
10년 전 | 1362 | |
| 7805 | 10년 전 | 1303 | ||
| 7804 |
zahir1312
|
10년 전 | 802 | |
| 7803 |
|
10년 전 | 1401 | |
| 7802 | 10년 전 | 500 | ||
| 7801 | 10년 전 | 882 | ||
| 7800 | 10년 전 | 1109 | ||
| 7799 | 10년 전 | 587 | ||
| 7798 | 10년 전 | 539 | ||
| 7797 | 10년 전 | 559 | ||
| 7796 | 10년 전 | 391 | ||
| 7795 | 10년 전 | 544 | ||
| 7794 | 10년 전 | 586 | ||
| 7793 | 10년 전 | 1085 | ||
| 7792 | 10년 전 | 509 | ||
| 7791 | 10년 전 | 597 | ||
| 7790 | 10년 전 | 528 | ||
| 7789 |
fbastore
|
10년 전 | 1480 | |
| 7788 | 10년 전 | 582 | ||
| 7787 | 10년 전 | 438 | ||
| 7786 | 10년 전 | 648 | ||
| 7785 | 10년 전 | 620 | ||
| 7784 | 10년 전 | 682 | ||
| 7783 | 10년 전 | 502 | ||
| 7782 | 10년 전 | 527 | ||
| 7781 | 10년 전 | 934 | ||
| 7780 | 10년 전 | 845 | ||
| 7779 | 10년 전 | 798 | ||
| 7778 | 10년 전 | 384 | ||
| 7777 | 10년 전 | 498 | ||
| 7776 | 10년 전 | 491 | ||
| 7775 | 10년 전 | 431 | ||
| 7774 | 10년 전 | 646 | ||
| 7773 | 10년 전 | 400 | ||
| 7772 | 10년 전 | 771 | ||
| 7771 | 10년 전 | 428 | ||
| 7770 | 10년 전 | 670 | ||
| 7769 | 10년 전 | 430 | ||
| 7768 | 10년 전 | 649 | ||
| 7767 | 10년 전 | 1204 | ||
| 7766 | 10년 전 | 529 | ||
| 7765 | 10년 전 | 589 | ||
| 7764 |
잘살아보자
|
10년 전 | 438 | |
| 7763 |
|
10년 전 | 1492 | |
| 7762 |
Tosea
|
10년 전 | 1087 | |
| 7761 | 10년 전 | 686 | ||
| 7760 |
잘살아보자
|
10년 전 | 742 | |
| 7759 |
잘살아보자
|
10년 전 | 582 | |
| 7758 |
잘살아보자
|
10년 전 | 637 | |
| 7757 | 10년 전 | 1275 | ||
| 7756 |
ITBANK
|
10년 전 | 1285 | |
| 7755 | 10년 전 | 1942 | ||
| 7754 | 10년 전 | 1097 | ||
| 7753 | 10년 전 | 916 | ||
| 7752 | 10년 전 | 1418 | ||
| 7751 |
잘살아보자
|
10년 전 | 574 | |
| 7750 |
잘살아보자
|
10년 전 | 505 | |
| 7749 |
잘살아보자
|
10년 전 | 524 | |
| 7748 |
잘살아보자
|
10년 전 | 545 | |
| 7747 |
잘살아보자
|
10년 전 | 623 | |
| 7746 |
잘살아보자
|
10년 전 | 696 | |
| 7745 |
잘살아보자
|
10년 전 | 943 | |
| 7744 |
잘살아보자
|
10년 전 | 438 | |
| 7743 | 10년 전 | 966 | ||
| 7742 |
starbros
|
10년 전 | 862 | |
| 7741 |
잘살아보자
|
10년 전 | 701 | |
| 7740 |
잘살아보자
|
10년 전 | 591 | |
| 7739 |
잘살아보자
|
10년 전 | 485 | |
| 7738 |
잘살아보자
|
10년 전 | 561 | |
| 7737 |
잘살아보자
|
10년 전 | 540 | |
| 7736 |
잘살아보자
|
10년 전 | 560 | |
| 7735 |
잘살아보자
|
10년 전 | 892 | |
| 7734 |
잘살아보자
|
10년 전 | 452 | |
| 7733 |
잘살아보자
|
10년 전 | 564 | |
| 7732 |
잘살아보자
|
10년 전 | 728 | |
| 7731 |
잘살아보자
|
10년 전 | 651 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기