0
일부 요소를 다른 요소에서 2 초 초점에 표시 할 수 있습니까?jQuery - 2 초 초점에서 일부 요소 표시
$("#someDiv").focus(function(){
// 2 seconds focus??
$("#someOtherDiv").show();
});
많은 감사
일부 요소를 다른 요소에서 2 초 초점에 표시 할 수 있습니까?jQuery - 2 초 초점에서 일부 요소 표시
$("#someDiv").focus(function(){
// 2 seconds focus??
$("#someOtherDiv").show();
});
많은 감사
당신은 흐림에 초점을 cleatTimeout에의 setTimeout을 사용할 수 있습니다. 여기
var timer;
$(document).ready(function() {
$("#TextBox").focus(function() {
timer = setTimeout(function() {
$("#ShowMe").show();
}, 2000);
});
$("#TextBox").blur(function() {
clearTimeout(timer);
$("#ShowMe").hide();
});
});
이 잘 이벤트를 "클릭"에 의해 그렇게합니까? 그래서이를 확인하는 경우 :
$(document).ready(function(){
$('#someDiv').click(function(){
$('#someOtherDiv').show(300).delay(2000).hide(300);
});});
좋은, 감사합니다! –