Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. var slider = function(elem){
  2.         var self = this;
  3.         this.div=$(elem);
  4.        
  5.         this.next = function(){
  6.                 self.div.animate...
  7.                 self <- Don't rever to the slider object anymore but to the clicked element... a solution ?
  8.         }
  9.        
  10.         this.suiv.bind('click',this.next);
  11.  
  12. }