Solved

jQuery Cycle2 Plugin

Posted on 2013-01-13
5
2,859 Views
Last Modified: 2013-01-13
Hello Experts,

Can someone help me understand why its not working?
I am using jQuery Cycle2 plugin (http://jquery.malsup.com/cycle2/api/).
I use the "programatically" method and not the "Auto-Initialization".

Here is my code nothing works!

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script src="http://malsup.github.com/jquery.cycle2.js"></script>
<script src="http://malsup.github.com/jquery.cycle2.carousel.js"></script>

<style>
.slideshow { margin: auto }
.slideshow img { width: 100px; height: 100px; padding: 2px; }
div.responsive img { width: auto; height: auto }
.cycle-pager { position: static; margin-top: 5px }
div.vertical { width: 100px }
</style>

<script>
$(document).ready(function() {
		
	$('#myslider').cycle({
		fx: carousel,
        timeout: 0,
        next: "#next3",
        prev: "#prev3",
        pager: "#pager3",
        carouselVisible: 2,
		easing: 'easeInOutSine',
		speed: 200,
		allowWrap: false,
        carouselVertical: true			
	});	
});
</script>
</head>

<body>

<div id="myslider">
    <img src="http://malsup.github.com/images/beach1.jpg">
    <img src="http://malsup.github.com/images/beach2.jpg">
    <img src="http://malsup.github.com/images/beach3.jpg">
    <img src="http://malsup.github.com/images/beach4.jpg">
    <img src="http://malsup.github.com/images/beach5.jpg">
    <img src="http://malsup.github.com/images/beach6.jpg">
    <img src="http://malsup.github.com/images/beach7.jpg">
    <img src="http://malsup.github.com/images/beach8.jpg">
    <img src="http://malsup.github.com/images/beach9.jpg">
</div>
<div class=center>
    <a href=# id=prev3>&lt;&lt; Prev </a>
    <a href=# id=next3> Next &gt;&gt; </a>
</div>
<div class="cycle-pager" id=pager3></div>

</body>
</html>

Open in new window

0
Comment
Question by:Refael
  • 3
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38773151
replace your line 21 by : fx: "carousel",
if you want to use easeInOutSine ou need to download jquery UI effects

jQUery 1.8.3 : http://code.jquery.com/jquery-1.8.3.js
jQuery UI 1.9.2 with Effects : http://code.jquery.com/ui/1.9.2/jquery-ui.js

test page : http://jsfiddle.net/9rR6b/2/
0
 

Author Comment

by:Refael
ID: 38773183
Hi leakim971

So only the quotes were missing. is that the issue?
Thanks!
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38773186
Remove the easing too
0
 

Author Closing Comment

by:Refael
ID: 38773193
Great. Thank you!!
0
 

Author Comment

by:Refael
ID: 38773195
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question