Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

jQuery Cycle2 Plugin

Posted on 2013-01-13
5
Medium Priority
?
2,896 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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)
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…
Suggested Courses

610 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