@
hemingcn 你这个动图实现的方法太凶残了吧
<script>
var favicon_images = [
'./assets/images/favicon/0.jpg',
'./assets/images/favicon/1.jpg',
'./assets/images/favicon/2.jpg',
'./assets/images/favicon/3.jpg',
'./assets/images/favicon/4.jpg',
'./assets/images/favicon/5.jpg'
],
image_counter = 0; // To keep track of the current image
setInterval(function() {
$("link[rel='icon']").remove();
$("link[rel='shortcut icon']").remove();
$("head").append('<link rel="icon" href="' + favicon_images[image_counter] + '" type="image/jpeg">');
// If last image then goto first image
// Else go to next image
if(image_counter == favicon_images.length -1)
image_counter = 0;
else
image_counter++;
}, 80);
</script>