메인 배너 스크립트 수정

This commit is contained in:
chicpro
2014-03-06 11:02:40 +09:00
parent ee961f6abb
commit 651d11a6fb

View File

@ -93,6 +93,14 @@ if ($i>0) echo '</ul>'.PHP_EOL.'</section>'.PHP_EOL;
this.find("ul").before(slide_button);
var $bnnr_btn = this.find(".sbn_btn_slide");
$bnnr_btn.on("focusin", function() {
clear_interval();
});
$bnnr_btn.on("focusout", function() {
set_interval();
});
}
set_interval();
@ -128,14 +136,6 @@ if ($i>0) echo '</ul>'.PHP_EOL.'</section>'.PHP_EOL;
set_interval();
});
$bnnr_btn.on("focusin", function() {
clear_interval();
});
$bnnr_btn.on("focusout", function() {
set_interval();
});
function left_rolling() {
$bnnr.each(function(index) {
if($(this).is(":visible")) {