www.webdeveloper.com
Results 1 to 3 of 3

Thread: jquery cycle this

  1. #1
    Join Date
    Aug 2005
    Location
    México
    Posts
    88

    jquery cycle this

    Hi i am using jquery cycle

    My problem is i have multiple instances of slideshows with the NEXT and PREV buttons. And when i click on the next it changes all the intances.

    How can i make so it will only affect its own slideshow and not the others.

    HEres the js script:
    HTML Code:
    // slides products
    	  	$('.slide-products').cycle({ 
        		fx: 'scrollHorz', 
        		speed:  400, 
        		timeout: 6000, 
        		pause: 1,
        		next:   '.next', 
        		prev:   '.prev'
    		});

    i was wondering if theres a way to use a $this or something.

    thanks

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,653
    $('.slide-products').cycle - this is the problem. you must use id instead of classname

  3. #3
    Join Date
    Aug 2005
    Location
    México
    Posts
    88
    Thanks.

    I found a solution:

    http://stackoverflow.com/questions/2...s-on-same-page

    Cheers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles