简体   繁体   中英

Jquery: Cycle plugin abruptly stopped working

I had a Cycle plugin working well on my site until today when a client indicated it was not working. I checked the links to the plugin .js file and to jquery and all is well, but I get the error:

Uncaught TypeError: Object [object Object] has no method 'cycle'

in my console. I dont understand what could be causing the disconnect.

My code is:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="assets/js/jqcycle.js"></script>
<script type="text/javascript">
$(function() {

$('#frontimageswap') 
.before('<div id="nav">') 
.cycle({ 
    fx:     'turnDown', 
    speed:  'fast', 
    timeout: 5000, 
    pager:  '#nav' 
});
});
</script>

Does anyone know what could be causing this?

My fault for not looking properly. There was another jquery library link later on in the page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM