본문 바로가기

jquery소스

상하 스크롤 발생해주는 jquery vticker

http://richhollis.github.io/vticker/


상하스크롤_스크립트.zip






=============================================================================

<!doctype html>

<html lang="en">

 <head>

  <meta charset="UTF-8">

  <meta name="Generator" content="EditPlus®">

  <meta name="Author" content="">

  <meta name="Keywords" content="">

  <meta name="Description" content="">

  <title>Document</title>



<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script src="jquery.vticker.min.js"></script>


<script>

$(function() {

  $('.example').vTicker();

});

</script>

<script type="text/javascript">


$(function() {

 // pause

 $('#roll_list').vTicker({margin:10});

 $('#pause').click(function() { 

$this = $(this);

if($this.text() == 'Pause') {

 $('#roll_list').vTicker('pause', true);

 $this.text('Unpause');

}

else {

 $('#roll_list').vTicker('pause', false);

 $this.text('Pause');

}

 });


 // next

 $('#next-animate').click(function() { 

$('#roll_list').vTicker('next', {animate:true});

 });

 $('#next').click(function() { 

$('#roll_list').vTicker('next', {animate:false});

 });


 // prev

 $('#prev-animate').click(function() { 

$('#roll_list').vTicker('prev', {animate:true});

 });

 $('#prev').click(function() { 

$('#roll_list').vTicker('prev', {animate:false});

 });



});

</script>


 </head>

 <body>

  <div class="example" id="roll_list">

 <ul>

<li>1111Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</li>

<li>2222Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut</li>

<li>3333Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore</li>

 </ul>

</div>

  <button id="next-animate">Next</button>

  <button id="prev-animate">Prev</button>

  <button id="pause">Pause</button>

<style>

#example {}

</style>

 </body>

</html>




================================================