소프트웨어/JavaScript • Dhtml

[jQuery] 간단한 텍스트 스크롤

falconer 2009. 11. 4. 11:45

jQuery 플러그인(Link1)으로도 존재합니다만...

간단한 스크롤 기능이면 되는데 굳이 플러그인을 쓸필요가 없다고는 하지만
플러그인에서 따로 분리해도 될테니... ㅡ_

여하튼...

function tested() {
  var tested = $('#tested');
  tested.animate({marginTop:'-25px'}, 200, null, function() {
    tested.css('marginTop', '0px').append(tested.find('> li:first'));
  });
}
setInterval('tested()', 3000);

결과 : 다운로드1

----    ----    ----    ----

이렇게 쓰면 또 jQuery 굇수분께서 "이게 더 간단한데요?" 라고 날려주시겠지요. '~'/

출처 : http://www.tested.co.kr/board/Study/view/wr_id/27