English 中文(简体)
jcarousel 自动滚动无效, 没有错误
原标题:jCarousel Auto Scroll not working, no errors

我试图让jcarousel 自动滚动 通过我的一些幻灯片, 这是HTML:

  <div id="slider">
    <ul>
      <li><img src="img/slides/slide_1.jpg" width="939" height="476" alt="" /></li>
      <li><img src="img/slides/slide_2.jpg" width="939" height="476" alt="" /></li>
    </ul>
  </div><!-- #slider -->

这是笔记本:

<script>
jQuery(document).ready(function() {
    jQuery( #slider ).jcarousel({
        scroll: 1,
        auto: 2,
        wrap:  circular 
    });
});
</script>

任何帮助都感激不尽。

最佳回答

通过更新jcarousel和认真仿效他们的例子,将问题固定下来。

问题回答

我对上面的问题有麻烦,但我找了个解决办法。我在我的工作网站上用了这个滑板,我的问题和你前面描述的一样,我尝试了不同的方法来解决它。

我用了以下代码:

jQuery(document).ready(function() {
    $( #slider ).jcarousel({
        scroll: 1,
        auto: 2,
        wrap:  last ,
        initCallback: _init_carousel,
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签