Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedding icon image

 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What way I could embed custom icon image in an "Address field" of IE when sending regular .jsp file?
 
Nico Krijnen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just put a windows .ico file with the name 'favicon.ico' in the root of your server. You can create .ico files with third party software (for instance Microangelo), see tucows.com.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly, be sure that your icon file follows all the "rules" of being a true Windows icon file. Then place it somewhere accessible on your server.
It doesn't matter what you name it.
Secondly, add the following tag to the <head> section of your html or JSP page:

For example, if bear.ico were in the same folder as the html file:

Note that this is not part of the W3C standard so browser support is spotty. IE6 only appears to show the icon when the page is saved as a bookmark. Mozilla shows the icon right away, but not in the bookmark.
I'm also assuming that this is Windows-only since the .ico format is a Windows format, but I'm not at my Mac to test it out at the moment.
hth,
bear
P.S. This should probably be moved to the HTML forum since it's not really JSP-related.
[ October 22, 2002: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic