这是我的代码,
$(function() {
$('#news-carousel').cycle({
fx: 'scrollRight',
next: '#next',
prev: '#prev',
});
});
我已经包含了最新的jquery库,所以肯定不能这样做吗?
这是我的HTML,希望这很有意义
<div id="news-carousel">
<div class="slide">
<div id="video">
<img src="/images/video.png" width="380" height="230" alt="youtube video" />
</div>
<div id="video-content">
<h2>UK Insight</h2>
<h1>Are you making the most of breakfast & snacking?</h1>
<p>
Lorem Ipsum arcu sit amet dolor sit amet, con sectetur adipiscing elit.
Lorem Ipsum arcu sit amet dolor sit amet, con sectetur adipiscing elit.
</p>
<a href=""><img src="/images/discover.png" width="150" height="30" alt="discover" /></a>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>