Hi
This is the first time i've ever used JQuery and my Javascript days are years and years behind me.
I'm trying to add a slideshow to a site that uses the CodeIgniter model-view-controller platform. The slideshow i'm adding is the malsup cycle plugin (
http://malsup.com/jquery/cycle/).
I have done the following:
1. I have downloaded the latest JQuery to my assets/js/ folder and renamed it to jquery.js
2. I have downloaded the latest cycle.js into the same folder.
3. In the controller file I have references to these js files in the page load info 'js_func' => array('assets/js/jquery.js', 'assets/js/cycle.js'),
4. At the end of my footer I have added the following code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src='<?php echo base_url();?>assets/js/jquery.js'>\x3C/script>")</script>
<script src="<?php echo base_url();?>assets/js/cycle.js"></script>
5. My slideshow is within a container and styled by a stylesheet and their are only 2 pics at the moment:
<div id="sldr_img"><div id="slideshow">
<img src="<?=base_url();?>assets/img/sitewide/slider/1.JPG" width="738" height="275" class="first" />
<img src="<?=base_url();?>assets/img/sitewide/slider/2.JPG" width="738" height="275" />
</div></div>
I thought that was all i needed. Jquery in my assets, loaded on page load through my controller. Cycle in my assets and loaded on page load through my controller.
Any ideas? I really don't know what i'm doing....
Thanks
Tom