开发者

Jquery Cycle Problem

开发者 https://www.devze.com 2022-12-10 13:39 出处:网络
Hey everyone, I\'m not the best at Jquery debugging, so I was hoping someone could let me know what this means, and hopefully how to fix it.

Hey everyone, I'm not the best at Jquery debugging, so I was hoping someone could let me know what this means, and hopefully how to fix it.

I am using jquery Cycle lite(hosted locally) & Jquery (hosted by google).

My Code is pretty simple:

    <div id="slid开发者_如何学Pythoneshow1" class="slider" > 
<img src="/images/slider1.jpg"  /> 
<img src="/images/slider2.jpg" /> 
<img src="/images/slider3.jpg"  /> 

And my Script:

        <script type="text/javascript">
    $(document).ready(function() {
LINE21-->         $('#slideshow1').cycle()
             });
    </script>

Firebug console gives me the following error:

$("#slideshow1") is null)

$('#slideshow1').cycle()\r\ncandypants.ca (line 21)

Any ideas?


Are you including the jQuery script library in your page? If not, you need to include it. If so, do you have any conflicts with the use of the $ sign?

jQuery.noConflict();
jQuery(document).ready(function($) {
    $('#slideshow1').cycle();
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号