Created
March 27, 2009 00:51
Revisions
-
guitsaru revised this gist
Mar 27, 2009 . 1 changed file with 33 additions and 29 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,32 +1,36 @@ $(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(); }); -
albatrocity revised this gist
Mar 27, 2009 . 1 changed file with 23 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,22 @@ $(document).ready(function() { $('#featured-location-0').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(); $("#ww_img").hover( function () { timer.stop(); @@ -7,4 +26,7 @@ var next = current + 1; if(next >= #{@featured.size}) { next = 0; }); }); # The rotator doesn't work with this. It doesn't even show up. -
albatrocity revised this gist
Mar 27, 2009 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,9 @@ 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; }); -
albatrocity created this gist
Mar 27, 2009 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ $("#ww_img").hover( function () { timer.stop(); }, function () { jQuery.timer(200, function(timer) { var current = parseInt($('.featured:visible').attr('id').split('-')[2]); var next = current + 1; if(next >= #{@featured.size}) { next = 0; } });