Jquery文本滚动条从下到上

时间:2014-11-11 10:35:52

标签: jquery

想要一个文本滚动条,它应该从下到上移动,在鼠标悬停时它应该停止。主要要求是它应该适用于IE7和IE8。请找到此网址

http://www.jqueryscript.net/animation/jQuery-Endless-Div-Scroll-Plugin.html

<script type="text/javascript">
$(window).load(function () {
$("#s2").endlessScroll({
width: '700px', // Desired div's width.
height: '26px', // Desired div's height.
steps: -2, // pixel step for the <a href="http://www.jqueryscript.net/tags.php?/Scroll/">scrolling</a>, also controls the direction, a negatif value (left), a positive value (right).
speed: 40, // animation speed, from 0 (quicker) to infinite (slower).
mousestop: false }); //if set to true the scrolling stops when the mouse is over the div.
});
</script>

1 个答案:

答案 0 :(得分:0)

也许您应该提供更多详细信息,也许还有一段代码,说明您目前所做的工作。我之前设法用一些选框做到了这一点。

<marquee behavior="slide" direction="left">Your slide-in text goes here</marquee>
鼠标悬停

告诉它“停止”