Solved

jQuery Cycle2 Plugin

Posted on 2013-01-13
5
2,865 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a pageā€¦
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

830 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