Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created May 22, 2011 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirpo/985044 to your computer and use it in GitHub Desktop.
Save cirpo/985044 to your computer and use it in GitHub Desktop.
var intervalKey;
var over = true;
$('#next').hover(
function(e)
{
over = true;
var move = function(){
if(over){
var p = '' + $('#event_block ul').position().left - 50 + '';
$('ul').css('left', p + 'px');
}
}
intervalKey = setInterval(move, 1500);
},
function(){
over = false;
clearInterval(intervalkey);
}
);
@cirpo
Copy link
Author

cirpo commented May 22, 2011

fuck! intervalkey != intervalKey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment