jsfiddle code not working in regular browser

前端 未结 4 365
轮回少年
轮回少年 2021-01-29 07:34

I am trying to create a simple slider for my website and found this example on jsfiddle: http://jsfiddle.net/AtFeF/79/

From that I created an html file containing all th

4条回答
  •  清酒与你
    2021-01-29 07:54

    It seems that you haven't included jquery file into your html document.

    Hence, the code :

    $(function () {
        setInterval(cycleImages, 1400);
    });
    

    wont work. Because $ belongs to jQuery.

    So you need to include jquery either by

    
    

    or download jquery file from jquery.com to your local drive and include with relative path as

    
    

提交回复
热议问题