我有一个这样的html片段:
<div>
<div> </div>
<div class="news">
<ul id="listticker">
<li><b>"Lorem Ipsum is a dummy text used by designers from all over the world. While writing Lorem ipsum you dont need worry grammar about and splleing mistkae. You get complete freedome of writing anything you want. I love Lorem Ipsum so much. .</li>
<li><b>"Lorem Ipsum is a dummy text used by designers from all over the world. While writing Lorem ipsum you dont need worry grammar about and splleing mistkae. You get complete freedome of writing anything you want. I love Lorem Ipsum so much. </li>
<li><b>"Lorem Ipsum is a dummy text used by designers from all over the world. While writing Lorem ipsum you dont need worry grammar about and splleing mistkae. You get complete freedome of writing anything you want. I love Lorem Ipsum so much. . </li>
</ul>
</div>
</div>
我在哪里调用了这样的news_ticker脚本
<script src="js/news_ticker.js" type="text/javascript"></script>
代码如下
$(document).ready(function () {
var first = 0;
var speed = 800;
var pause = 3500;
function removeFirst() {
first = $('ul#listticker li:first').html();
$('ul#listticker li:first')
.animate({ opacity: 0, height: "0px" }, speed, 'linear', function () { $(this).remove(); });
addLast(first);
}
function addLast(first) {
last = '<li style="display:none">' + first + '</li>';
$('ul#listticker').append(last)
$('ul#listticker li:last')
.animate({ opacity: 1, height: "auto" }, speed)
.fadeIn('slow')
}
interval = setInterval(removeFirst, pause);
});
为什么我的股票代码根本不滚动?