Solved

jQuery Cycle2 Plugin

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
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

738 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