I have a link on my site that is strictly JavaScript, that the users can optionally drag to their browser's link bar. Because there is no associated site with a Favicon, the link always gets a blank icon. Is there anyway to associate a Favicon with it at the time the user drags it? I am primarily interested in a Firefox solution, but IE would be nice, too.
我的网站上有一个严格的JavaScript链接,用户可以选择拖到他们浏览器的链接栏。由于没有与Favicon关联的网站,因此该链接始终会显示一个空白图标。无论如何在用户拖动时将Favicon与它相关联?我主要对Firefox解决方案感兴趣,但IE也会很好。
2 个解决方案
#1
AFAIK there is no way to do this. In Firefox for example all my bookmarklets are just blank pages.
AFAIK没有办法做到这一点。例如,在Firefox中,我的所有书签都只是空白页面。
The alternative would be to point to an HTML file (on a server with a favicon). that only contains the script
另一种方法是指向HTML文件(在带有favicon的服务器上)。只包含脚本
#2
Actually, there is a way to do this in Firefox using the Favicon Picker 2 addon. I have a couple of different bookmarklets that I have custom icons on my shortcut bar and bookmarks.
实际上,有一种方法可以使用Favicon Picker 2插件在Firefox中执行此操作。我有几个不同的书签,我在快捷栏和书签上有自定义图标。
#1
AFAIK there is no way to do this. In Firefox for example all my bookmarklets are just blank pages.
AFAIK没有办法做到这一点。例如,在Firefox中,我的所有书签都只是空白页面。
The alternative would be to point to an HTML file (on a server with a favicon). that only contains the script
另一种方法是指向HTML文件(在带有favicon的服务器上)。只包含脚本
#2
Actually, there is a way to do this in Firefox using the Favicon Picker 2 addon. I have a couple of different bookmarklets that I have custom icons on my shortcut bar and bookmarks.
实际上,有一种方法可以使用Favicon Picker 2插件在Firefox中执行此操作。我有几个不同的书签,我在快捷栏和书签上有自定义图标。