Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: JavaScript  |  size: 0.23 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         $('#buttn').click(function(){
  2.                 var leftval = $("feature").css("left");
  3.                 if (leftval==(panelWidth*2)){
  4.                         $("feature").animate({
  5.                                 "left":0
  6.                         });
  7.                 }else{
  8.                         $("feature").animate({
  9.                                 "left":-(panelWidth)
  10.                         });
  11.                 }
  12.         });