Created
March 27, 2009 00:51
-
-
Save guitsaru/86475 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('#featured-location-0').show(); | |
$("#ww_img").hover( | |
function () { | |
timer.stop(); | |
}, | |
jQuery.timer(200, function(timer) { | |
var current = parseInt($('.featured:visible').attr('id').split('-')[2]); | |
var next = current + 1; | |
if(next >= #{@featured.size}) { | |
next = 0; | |
} | |
$('.featured').hide(); | |
$('#featured-location-' + next).show(); | |
}); | |
); | |
}); | |
function show_featured(n) { | |
$('.featured').hide(); | |
$('#featured-location-' + n).show(); | |
} | |
jQuery.timer(200, function(timer) { | |
var current = parseInt($('.featured:visible').attr('id').split('-')[2]); | |
var next = current + 1; | |
if(next >= #{@featured.size}) { | |
next = 0; | |
} | |
$('.featured').hide(); | |
$('#featured-location-' + next).show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment