var setFlash = false;
var setStop = false;
function stopFlash() { setStop = true; }
function contiuneFlash() { setStop = false; }
function deleteFlash() { clearInterval(setFlash); }
function createFlash(id) {
setFlash = setInterval(function(){
if (!setStop) {
$(id).animate({ opacity: '100' }, 300, function(){
$(id).css('background-color', '#FFFFFF').css('border','1px solid #CCCCCC').css('box-shadow','0 1px 1px rgba(0, 0, 0, 0.075) inset').css('transition','border 0.2s linear 0s, box-shadow 0.2s linear 0s');
});
$(id).animate({ opacity: '100' }, 300, function(){
$(id).css('border-color','rgba(82,168,236,.6)').css('outline',0).css ('box-shadow','inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)');
});
}
}, 1000);
}Başlatmak için createFlash, silmek için deleteFlash, durdurup devam ettirmek içinde stop ve contiune fonksiyonları var. Kolay gelsin.