我有一个简单的广告滚动条;] 需要帮助,在悬停时暂停它。
$(document).ready(function(mnmTicker){
var mnmAdsInterval = 2000;
/* Do not modify code below */
var mnmAdsLenght = m3ads_numberadverts;
function mnmSlideAds(){
hT = $('.someClass').find('a');
hT2 = hT;
slideMargin = document.getElementsByClassName('a')[0].offsetHeight;
$(".someClass .a:first").clone().appendTo(".someClass");
$(".someClass .a:first").animate({"marginTop":-+slideMargin,},1800, function(){
$(this).remove();
});
};
var interval = setInterval(mnmSlideAds, mnmAdsInterval); [/code]
顺便提一句。我正在测试这个:
$('.someClass .a').hover(function() {
clearInterval(interval);
}, function() {
interval = setInterval(mnmSlideAds, mnmAdsInterval);
});
但不工作;/