Little images in the adress bar

Need help with C, C++, perl, python, etc?

Little images in the adress bar

Postby Linlord » 2004-03-25 17:33

A lot of sites have little logos next to the url in the browser.
How can I add such a image to my site?
Linlord
 
Posts: 16
Joined: 2004-03-06 12:50
Location: 127.0.0.1

Postby lacek » 2004-03-29 15:41

First you have to create an image, preferably one of size 16x16. The papers say you need to convert it to .ico (window$ ico). It may pose a problem, tough, so head for http://jdraw.sourceforge.net/, where you can find a program which is capable of creating .ico files (kiconedit was able to do it, but recent versions seem to be "upgraded", so they can't save .ico format).
My experience is that you can leave it in .png, because all linux-based browsers can handle it, and Explorer can't handle icons at all (see below).

Now there are two things you can do:
1. Copy the resulted image to the webroot, and name it favicon.ico. Most browsers will find it.

2. Add this tag to the document you want to have the icon:
<LINK REL="SHORTCUT ICON" HREF="/your_icon">

Mozilla and Opera seems to handle these pretty well. Konqueror caches the icons, and can be very stubborn. Internet explorer seems to ignore these icons and do not display them, neither png or ico images...

Anyway, if you happen to figure out how to get IE to handle these icons, let me know...
lacek
Moderator Team Member
 
Posts: 769
Joined: 2004-03-11 18:49
Location: Budapest, Hungary

Postby Pintobean » 2005-01-21 01:18

lacek, thanks for the info. I was able to use irfanview to save my favicon as a *.ico file. You can download irfanview free. Check it out at http://www.irfanview.com/ if.
Pintobean
 

Postby Pintobean » 2005-01-21 01:32

I guess irfanview is only available for windows, so it may not be an option for the debian community. Sorry. I recently installed debian on a second computer (that's how I found my way to this forum), but I still use a windows desktop for my webpage design. Still, I was excited when I ran into lacek's post on how to put a favicon on a website.
Pintobean
 

Postby mikekgr » 2005-01-29 08:46

Dear Sirs,
just to info you that irfanview running perfevtlly on linux under wine.

Best Regards
Mike Kranidis
mikekgr
 
Posts: 56
Joined: 2004-12-24 18:25
Location: Greece


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable