Created
May 23, 2012 08:39
-
-
Save htom78/2773943 to your computer and use it in GitHub Desktop.
疯狂的js 来自http://top.43gz.com/fkbq/main
This file contains 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
var subscribeInfoIndex = 14; | |
function infoScroll(){ | |
if(subscribeInfoIndex >= 0){ | |
$($(".subscribeInfo")[subscribeInfoIndex]).slideDown(); | |
$($(".subscribeInfoText")[subscribeInfoIndex]).fadeTo(1, 0).fadeTo(1500, 1); | |
subscribeInfoIndex --; | |
}else{ | |
subscribeInfoIndex = 15; | |
$(".subscribeInfo").each(function(i){ | |
if(i < 16) | |
$($(".subscribeInfo")[i]).hide(); | |
}); | |
$($(".subscribeInfo")[subscribeInfoIndex]).slideDown(); | |
$($(".subscribeInfoText")[subscribeInfoIndex]).fadeTo(1, 0).fadeTo(1500, 1); | |
subscribeInfoIndex --; | |
} | |
} | |
$(document).ready(function(){ | |
if (subscribeInfoIndex >= 0) | |
setInterval(infoScroll,3500); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment