Click to See Complete Forum and Search --> : icon


Seraph
12-03-2002, 04:20 PM
Hi!

While travelling through the internet I've seen many sites which have an icon. You can see this icon if you bookmark the site or when you see the adress in the adress line.

Can anybody tell me how i include such an icon on my website?

Here two examples:

http://www.sindarin.de
http://www.pocketmovies.net

ecross
12-03-2002, 04:43 PM
I will only work with Internet Explorer 5 or higher, but all you do is create a 16x16 icon and convert it into .ico format (eg. favicon.ico). You can save something in .ico format by going to http://www.favicon.com.

Then add the following code inside the HEAD tags.
<LINK REL="SHORTCUT ICON" HREF="/images/favicon.ico">

When somebody bookmarks your page, it will be listed.

Da Warriah
12-03-2002, 04:57 PM
ok, i have a question about that...i had a subdomain with several different sites on it...i wanted the favicon.ico to show up on the one site, and used that code, and it worked fine...but the only problem was, even the sites without the code on it still had the favicon show up!! is there some sort of built-in feature that automatically uses the favicon.ico when its that specific name or something?!

ecross
12-03-2002, 05:23 PM
Da Warriah, the favorites icon should only display on the pages you insert the code, not any other pages that don't have the code. Can you show me the page?

Robert Wellock
12-04-2002, 05:30 AM
Basically you create an *.ico file 16x16 pixels in dimension with 4-bit colour, and add the following:

<link rel="shortcut icon" href="http://www.yoursite.com/youricon.ico" type="image/x-icon" />

If you are using a technically superior browser like Mozilla you also have the option of using:

<link rel="icon" href="http://www.yoursite.com/youricon.png" type="image/png">

Micro$oft has bugs regarding displaying the icon when cache is cleared.

Stefan
12-04-2002, 08:05 AM
Originally posted by Da Warriah
the only problem was, even the sites without the code on it still had the favicon show up!! is there some sort of built-in feature that automatically uses the favicon.ico when its that specific name or something?!

Yes, if you place an .ico file in the root folder on your domain IE will use it for ALL sites on that domain.

The workaround is to simply move the file into a subfolder eg your.domian.com/img/youricon.ico

Stefan
12-04-2002, 08:10 AM
Originally posted by ecross
[B]I will only work with Internet Explorer 5 or higher, but all you do is create a 16x16 icon and convert it into .ico format (eg. favicon.ico).

I think you need to join the rest of us in the 21th century and download Mozilla/NS 7.

Not only does it have favicons, it will also take other image formats, even png with full 8-bit alpha transparency and animated images...
Of cource IE doesn't handle that yet :D

Take a peak at this favicon eg (in a gecko brower)
http://www.mozillanews.org/

ecross
12-04-2002, 08:47 AM
Originally posted by Stefan
Yes, if you place an .ico file in the root folder on your domain IE will use it for ALL sites on that domain.


Umm.. I didn't know that. I thought it only works on the pages you put them on. :)

Stefan
12-04-2002, 09:09 AM
Originally posted by ecross
Umm.. I didn't know that. I thought it only works on the pages you put them on. :)

Yeah, the IE way is a bit controversial.
It might be usefull for layzy webadmins of non databased sites.

But it also causes IE to spam every single webserver you visit with requests for an icon file that most likely is not there :rolleyes:
Kind of bad manners :D

There is some discussion for Mozilla in regard to if they should also implement the "spam request" too, becuse it breaks favicons on a few sites which take advantage of this method instead of properly adding the favicon to the webpage.

Seraph
12-04-2002, 11:48 AM
Thanks a lot for your help. What should I do without your knowledge?

charish2k1
07-01-2003, 01:25 PM
I'm doing the same thing, only problem is, I have no idea where to put it. I have 2 frames, Nav and my display one. Should I put the coding for it in the <head> of the actual page with the framesets or what?

Robert Wellock
07-02-2003, 12:09 PM
Within the main frameset, not the frames.