[ SOLVED ] Can't get this Slider to work on 1.9.4

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

[ SOLVED ] Can't get this Slider to work on 1.9.4

Post by fearmydesign »

Hello, I have a brand new 1.9.4 installation, and for some reason I can't get this standard JavaScript slider that I have used for other sites before... here is the code that I have inserted in my template

Code: Select all

<__script__ type="text/javascript" src="uploads/js/jquery142.js"></__script>
<__script__ type="text/javascript" src="uploads/js/jquery.cycle.all.min.js"></__script>
<__script__ type="text/javascript">{literal}
$(document).ready(function() {
    $('.shoeslide').cycle({
	fx: 'scrollRight',
        timeout:     4000,
        next:      '#next',
        prev:      '#prev',
        pagerEvent: 'click',
        fastOnEvent: false
	});
});{/literal}
</__script>
then I am calling my images by;

Code: Select all

<div id="header">{global_content name='shoeslide'}</div>
I have also uploaded both of these files to the site under /uploads/js/

jquery142.js
jquery.cycle.all.min.js


Anyone have any suggestions? here is the link http://limoservicesmaryland.com/index.php
Last edited by fearmydesign on Tue Mar 08, 2011 2:47 pm, edited 1 time in total.
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
uniqu3

Re: Can't get this Slider to work on 1.9.4

Post by uniqu3 »

Javascript like jQuery and it'S functions are recommended to be placed before <__body> just as a side note.
Why your slider doesn't work is that you call the cycle function for a class named "shoeslide" but in your template there is nothing with that class.

Try:

Code: Select all

<div id="header" class="shoeslide">{global_content name='shoeslide'}</div>
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Can't get this Slider to work on 1.9.4

Post by fearmydesign »

uniqu3 wrote:Javascript like jQuery and it'S functions are recommended to be placed before <__body> just as a side note.
Why your slider doesn't work is that you call the cycle function for a class named "shoeslide" but in your template there is nothing with that class.

Try:

Code: Select all

<div id="header" class="shoeslide">{global_content name='shoeslide'}</div>
Thank you... I can't believe that's what I was missing. Thanks again!!
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
Post Reply

Return to “Layout and Design (CSS & HTML)”