이 스크립트 함께 쓸 수 있는건가요? 채택완료

최신글 롤링되는 스킨을 2개 다운 받았는데요~ (어제 오늘 날짜를 뿌려주는 스킨, 두줄씩 롤링되는 스킨)

함께 쓸 수 있는건가요? 요리조리 해봐도... 실력이 없어서 안되네요...

마퀴태그로 롤링되는건... 아래부터 뜨는거라 안되고... 두개를 섞어야 할거 같은데...

 

스크립트로 롤링되면서 날짜도 같이 나왔음 합니다...답변 부탁드립니다. 

 

첫 번째 스크립트 ----------------

<script> 
<!--
var htmlstr = "", flag=true, imgflag=true, mouse=1, speed=4, wait=2000, temp=0, height=25, amount=25;
var ctnt=new Array(), ctnt2=new Array(), i=0, j=0, count=1;
 
ctnt[0]= "<table class='realtime'><tr><td width='60' class='sfont'>김*자</td><td width='90' class='sfont'>LG U+</td><td width='100' class='sfont'><font color='e2226a'>입금완료</font></td></tr></table>";
 
ctnt[1]= "<table class='realtime'><tr><td width='60' class='sfont'>장*고</td><td width='90' class='sfont'>SK브로드밴드</td><td width='100' class='sfont'><font color='e2226a'>입금완료</font></td></tr></table>";
 
ctnt[2]= "<table class='realtime'><tr><td width='60' class='sfont'>한*영</td><td width='90' class='sfont'>SK브로드밴드</td><td width='100' class='sfont'><font color='e2226a'>입금완료</font></td></tr></table>";
 
ctnt[3]= "<table class='realtime'><tr><td width='60' class='sfont'>정*유</td><td width='90' class='sfont'>Olleh KT</td><td width='100' class='sfont'><font color='ab46d0'>입금완료</font></td></tr></table>";
 
ctnt[4]= "<table class='realtime'><tr><td width='60' class='sfont'>정*유</td><td width='90' class='sfont'>Olleh KT</td><td width='100' class='sfont'><font color='ab46d0'>입금완료</font></td></tr></table>";
 

 
function startText(tmp){
for (i=0; i<ctnt.length; i++) insertText(i);
window.setTimeout('scroll()',wait);
}
function scroll(){
if (mouse && flag) {
for (i=0;i<ctnt.length;i++) {
temp++;
tmp = document.getElementById('scroll_area'+i).style;
tmp.top = parseInt(tmp.top)-speed;
if (parseInt(tmp.top) <= height*(-1)) {
tmp.top = height*(ctnt.length-1);
}
if (temp>(amount-1)*ctnt.length) {
flag=false;
temp=0;
window.setTimeout("flag=true;temp=0;imgflag=true;",wait);
}
}
}
window.setTimeout("scroll()",1);
}
 
function insertText(i) {
htmlstr='<div style="position: absolute; top: '+25*i+'px; left:0; width:330px; height:25px; overflow:hidden; display:block" id="scroll_area'+i+'">';
htmlstr+=ctnt[i]+''+'</div>';
document.write(htmlstr);
}
//-->
</script>

두 번째 스크립트 ----------------

     <script>
     var htmlstr = "", flag=true, imgflag=true, mouse=1, speed=4, wait=2000, temp=0, height=25, amount=25;
var ctnt=new Array(), ctnt2=new Array(), i=0, j=0, count=1;
today = new Date();
ty = today.getFullYear();
tm = today.getMonth()+1;
td = today.getDate();
 
if(tm<10)
 tm = "0" + tm;
if(td<10)
 td = "0" + td;
 
yesterday = new Date(today.valueOf()-(24*60*60*1000));
yy = yesterday.getFullYear();
ym = yesterday.getMonth()+1;
yd = yesterday.getDate();
 
if(ym<10)
 ym = "0" + ym;
if(yd<10)
 yd = "0" + yd;
 
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"김**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"정**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"유**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"입금대기"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"고**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"입금대기"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"변**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"이**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"입금대기"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"최**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"강**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"김**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
document.write 
("&nbsp;"+"&nbsp;"+"&nbsp;"+ yy + ym + yd +"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"정**"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"설치완료"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"&nbsp;"+"배송예정"+"</font>"+"<br>");
function startText(tmp){
  for (i=0; i<ctnt.length; i++) insertText(i);
  window.setTimeout('scroll()',wait);
}
function scroll(){
  if (mouse && flag) {
    for (i=0;i<ctnt.length;i++) {
      temp++;
      tmp = document.getElementById('scroll_area'+i).style;
      tmp.top = parseInt(tmp.top)-speed;
      if (parseInt(tmp.top) <= height*(-1)) {
        tmp.top = height*(ctnt.length-1);
      }
      if (temp>(amount-1)*ctnt.length) {
        flag=false;
        temp=0;
        window.setTimeout("flag=true;temp=0;imgflag=true;",wait);
      }
    }
  }
  window.setTimeout("scroll()",1);
}
 
function insertText(i) {
  htmlstr='<div style="position: absolute; top: '+25*i+'px; left:0; width:330px; height:25px; overflow:hidden; display:block" id="scroll_area'+i+'">';
  htmlstr+=ctnt[i]+''+'</div>';
  document.write(htmlstr);
}
//-->
</script>

 

 

 

 

답변 3개

채택된 답변
+20 포인트

이렇게만 스크립트만 봐서는 확인이 어렵습니다. 전체소스를 보아야할거같고

롤링대는곳에 날짜만 표시하는거라 조합을 하던지 php코드로도 날짜 표시가 가능할거 같습니다 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

그럼 제가 어떻게 해야하져? 많이 어려운걸까요 ... 제작의뢰를 하는게 좋을까요?
대충이라도 감이 오신다면 직접 작업해도 대구여
전혀 아니시라면 의뢰하는게 좋을거같네여

댓글을 작성하려면 로그인이 필요합니다.

의뢰 해겠네요^^ 답변 감사합니다~

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

제작의뢰를 하시는게 좋을것 같네요^^

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고