Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Put the following code in your Userview's settings (i.e. Custom Javascript) and change the path to your 把下面的代码放在你的用户视图的设置(即自定义的Javascript),并相应地改变你的favicon.ico accordingly.的路径。

Code Block
languagejs
titleCode
// Set the Favicon as the page is loading
$("#favicon").attr("href","/jw/plugin/our.theme.Theme/images/favicon.ico");

$(document).ready(function() {
    // Set the Favicon after page load, in case the above doesn't set it properly
    $("head").append('<link rel="shortcut icon" href="/jw/plugin/our.theme.Theme/images/favicon.ico"/>');
    // This might be required as well in some browsers
    $('link[rel="shortcut icon"]').attr('href','/jw/plugin/our.theme.Theme/images/favicon.ico');
}

Credit: Solnet Solutions信用:Solnet解决方案