Favicons are small square images usually 16×16 pixels which are used by web browsers to show a graphical representation of the site being visited at the left side of the browser's address bar.

Copy and paste the following code into your Userview's settings (i.e. Custom Javascript) and change the path to your favicon.ico accordingly.


Favicons เป็นภาพสี่เหลี่ยมจัตุรัสขนาดเล็กโดยทั่วไปจะมีขนาด 16 × 16 พิกเซลซึ่งเว็บเบราว์เซอร์ใช้เพื่อแสดงภาพกราฟิกของเว็บไซต์ที่เข้าชมทางด้านซ้ายของแถบที่อยู่ของเบราว์เซอร์

คัดลอกและวางรหัสต่อไปนี้ลงในการตั้งค่า Userview ของคุณ (เช่นจาวาสคริปต์ที่กำหนดเอง) และเปลี่ยนเส้นทางไปยัง favicon.ico ของคุณตามลำดับ

// 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