技術筆記: 利用jQuery動態轉換網站圖示

Script:
$('#favicon').remove();
$('<link id="favicon" type="image/x-icon" rel="shortcut icon" href="images/' + cName + '.ico" />').insertAfter('head');

Leave a comment

Your email address will not be published. Required fields are marked *