新しいドキュメントがリストに追加されると、リンクの bg を 3 回フラッシュする以下の JavaScript 関数があります。
これは最初は正常に機能しますが、関数への後続の呼び出しにより、点滅が台無しになります。呼ばれれば呼ばれるほど、点滅動作は奇妙になります。
IE8 と最新バージョンの Chrome でも同じ効果が見られます。
var highlightNew = function (control) {
var item = $('li.new-document a.document-link', control);
if (item.length > 0) {
var highlightColor = '#ffa500';
item.stop()
.animate({ backgroundColor: highlightColor }, 'slow')
.animate({ backgroundColor: 'transparent' }, 'slow')
.animate({ backgroundColor: highlightColor }, 'slow')
.animate({ backgroundColor: 'transparent' }, 'slow')
.animate({ backgroundColor: highlightColor }, 'slow')
.animate({ backgroundColor: 'transparent' }, 'slow');
}
}