이코드만으로는 출력이 안되나요?
<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>
로 바꾸니 값은 찍히더라구요.
처음 값을 출력하는 쪽을 찾아 보시면 저렇게 안 해도 바로 출력 가능할거 같습니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7630 | 10년 전 | 677 | ||
| 7629 |
|
10년 전 | 2437 | |
| 7628 | 10년 전 | 815 | ||
| 7627 |
|
10년 전 | 1052 | |
| 7626 |
|
10년 전 | 1806 | |
| 7625 | 10년 전 | 741 | ||
| 7624 | 10년 전 | 750 | ||
| 7623 |
|
10년 전 | 3136 | |
| 7622 | 10년 전 | 752 | ||
| 7621 |
leeleeleelee
|
10년 전 | 608 | |
| 7620 | 10년 전 | 556 | ||
| 7619 | 10년 전 | 523 | ||
| 7618 | 10년 전 | 1060 | ||
| 7617 | 10년 전 | 740 | ||
| 7616 | 10년 전 | 680 | ||
| 7615 | 10년 전 | 741 | ||
| 7614 | 10년 전 | 1285 | ||
| 7613 |
|
10년 전 | 2100 | |
| 7612 | 10년 전 | 1184 | ||
| 7611 | 10년 전 | 1447 | ||
| 7610 |
|
10년 전 | 1925 | |
| 7609 |
|
10년 전 | 1379 | |
| 7608 |
mwdkim
|
10년 전 | 1154 | |
| 7607 |
|
10년 전 | 1083 | |
| 7606 |
mwdkim
|
10년 전 | 3959 | |
| 7605 | 10년 전 | 708 | ||
| 7604 | 10년 전 | 1045 | ||
| 7603 | 10년 전 | 1664 | ||
| 7602 |
|
10년 전 | 1097 | |
| 7601 |
AniNest
|
10년 전 | 2812 | |
| 7600 |
port443
|
10년 전 | 1056 | |
| 7599 | 10년 전 | 964 | ||
| 7598 | 10년 전 | 1042 | ||
| 7597 | 10년 전 | 4590 | ||
| 7596 |
SeungYeon
|
10년 전 | 912 | |
| 7595 |
untitled
|
10년 전 | 2459 | |
| 7594 |
프로그래머7
|
10년 전 | 1750 | |
| 7593 |
untitled
|
10년 전 | 2393 | |
| 7592 |
untitled
|
10년 전 | 1957 | |
| 7591 |
untitled
|
10년 전 | 2694 | |
| 7590 |
아리마2001
|
10년 전 | 872 | |
| 7589 | 10년 전 | 1125 | ||
| 7588 |
|
10년 전 | 2940 | |
| 7587 | 10년 전 | 1322 | ||
| 7586 | 10년 전 | 687 | ||
| 7585 | 10년 전 | 1724 | ||
| 7584 | 10년 전 | 1424 | ||
| 7583 |
leeleeleelee
|
10년 전 | 1193 | |
| 7582 |
|
10년 전 | 1151 | |
| 7581 | 10년 전 | 1382 | ||
| 7580 | 10년 전 | 1033 | ||
| 7579 |
|
10년 전 | 624 | |
| 7578 | 10년 전 | 1444 | ||
| 7577 |
|
10년 전 | 1891 | |
| 7576 | 10년 전 | 1402 | ||
| 7575 |
멋진남자임
|
10년 전 | 1483 | |
| 7574 | 10년 전 | 2147 | ||
| 7573 | 10년 전 | 3283 | ||
| 7572 | 10년 전 | 781 | ||
| 7571 |
|
10년 전 | 798 | |
| 7570 |
|
10년 전 | 1344 | |
| 7569 | 10년 전 | 1568 | ||
| 7568 |
this1mg
|
10년 전 | 1065 | |
| 7567 |
|
10년 전 | 785 | |
| 7566 | 10년 전 | 930 | ||
| 7565 |
Angel하늘
|
10년 전 | 1035 | |
| 7564 |
seoldi
|
10년 전 | 1279 | |
| 7563 |
|
10년 전 | 1418 | |
| 7562 |
멋진남자임
|
10년 전 | 2118 | |
| 7561 | 10년 전 | 739 | ||
| 7560 |
leeleeleelee
|
10년 전 | 934 | |
| 7559 | 10년 전 | 5072 | ||
| 7558 |
RinaP
|
10년 전 | 812 | |
| 7557 |
|
10년 전 | 1272 | |
| 7556 | 10년 전 | 1214 | ||
| 7555 |
hyohyojj1234
|
10년 전 | 1681 | |
| 7554 | 10년 전 | 1110 | ||
| 7553 |
senseme
|
10년 전 | 1360 | |
| 7552 |
ehdltdoit
|
10년 전 | 1457 | |
| 7551 |
|
10년 전 | 1846 | |
| 7550 |
leeleeleelee
|
10년 전 | 1617 | |
| 7549 | 10년 전 | 2448 | ||
| 7548 | 10년 전 | 1856 | ||
| 7547 |
멋진남자임
|
10년 전 | 1980 | |
| 7546 | 10년 전 | 1023 | ||
| 7545 |
ILMare1003
|
10년 전 | 1315 | |
| 7544 |
|
10년 전 | 1270 | |
| 7543 | 10년 전 | 903 | ||
| 7542 | 10년 전 | 682 | ||
| 7541 |
울라라라우
|
10년 전 | 885 | |
| 7540 | 10년 전 | 1609 | ||
| 7539 | 10년 전 | 958 | ||
| 7538 |
|
10년 전 | 1848 | |
| 7537 | 10년 전 | 3634 | ||
| 7536 |
Gaumi
|
10년 전 | 1444 | |
| 7535 |
프로그램은어려워
|
10년 전 | 1299 | |
| 7534 |
senseme
|
10년 전 | 1220 | |
| 7533 | 10년 전 | 1223 | ||
| 7532 | 10년 전 | 890 | ||
| 7531 | 10년 전 | 2081 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기